Hi all,
As the title states, I am looking for a way to grab a line of text out of a Combo box. In an app I have developed, a collection is used to gather data like an employee's name, email, the number of vacation hours they have available, and the number of sick hours they have available. Below is the formula I am currently using:
ClearCollect(ManagerTimeAdjustment,
{MEmployeeEmail: DataCardValue2.Text,
MEmployeeName: DataCardValue1.Text,
MYear: Text(Year(Now())),
MVacationUsed2: Sum(Filter(Vacation_Request,vacationRequester = DataCardValue2.Text,vacationStatus.Value = "Approved", Vacation_x0020_Type.Value = "Vacation"), totalRequestedTime),
MVacationAvailable1: DataCardValue8.Text,
MSickLeaveUsed2: Sum(Filter(Vacation_Request,vacationRequester = DataCardValue2.Text,vacationStatus.Value = "Approved", Vacation_x0020_Type.Value = "Sick Leave"), totalRequestedTime),
MSickLeaveAvailable1: DataCardValue13.Text});
I would like to replace "DataCardValue2" with the value stored in ComboBox1, the combobox contains the emails of every employee at my company, so a manager can make view data for any employee they select. I haven't been able to figure out how to do this yet, I know that the combobox contains "values" and not text, but so far, I can't seem to figure out how to convert that value to text.
I can provide more info if needed.
I appreciate any help!