Hello community.
I hope someone could help me with this. I have been in circles for days.
I have a text column in my share point list to save the value selected in my Form2. The submission of the form is basically SubmitForm(Form2).
I have a collection with all the dropdowns required in the app for the admin to add new values to any of the combobox.
//Generate Collection for all the dropdowns
ClearCollect(
Coll_Choices,
Filter(Tbl_Choices, IsActive = "Yes")
);
In Each dropdown I have the items property as follow:
Table(
{Value: "-"},
SortByColumns(
Filter(
Distinct(
Filter(Coll_Choices, Category = "JobStatus"),
Description
),
!IsBlank(Value)
),
"Value"
)
)
In here I am basically adding "-" to all dropdows. And filtering the dropdown to the values required in that field.
I have the form divided in TABS and making each section visible depending of this condition:
OnChange TabList = UpdateContext({currentTab: TabList1.Selected.TabValue});
Visible property per DataCard = currentTab = 2
For each ComboBox I have tried
DefaultSelectedItems = [Parent.Default] Or
DefaultSelectedItem = LookUp(Coll_Choices, Title = "JobStatus" && Description = Parent.Default)
The problem is: If I add values to my combobox or other fields text, date, etc. And save it. It saves OK in the datasource without no issue.
If I return to the form and change a value and save the form the values form my combobox dissapeard and it saves a black value in my database.
I guess it is not holding the value in the combobox. IDK.
Please note. When I am selecting a record from my gallery to navigate to my form I am setting var_CurrentRecord. And when I Submit the form I am navigating back to my gallery.
Thanks in advance for any help.
BR