Hi folks,
i have an issue with one of my apps and i can't find a solution.
I'm using a gallery to display items from a SharePoint list.
My gallery allows the user with text input and combo boxes to change different entries on the list and a save button to change the changes of the item in the row.
I have this in several apps but one makes me headaches.
In this app the patch on the save button seam to glich around, when change one combo box in one row to one item and excellently click the save button in a different row to a different item the item in the row where the save button was clicked gets the value from the row where something was changed.
As said I have the same functionality in multiple other apps where the same behaviour can't be reproduced.
I've check the item source for the gallery, didn't change something.
I've recreated the combo boxes, didn't change something.
I've added Select(Parent) before patch().
I've changed ThisItem to lookup with ID, didn't change something.
Dose anyone maybe knows how this can happen?
Do you need some more details? Below my patch function
This is my patch:
Patch(
source1,
ThisItem,
{
Title: ti_main_list_SalesOrder.Text & "," & If(
IsBlank(First(cb_main_list_Customer.SelectedItems).CustomerName),
LookUp(
source2,
ID = ThisItem.CUSTOMER_ID,
CustomerName
),
First(cb_main_list_Customer.SelectedItems).CustomerName
),
SALES_ORDER: ti_main_list_SalesOrder.Text,
CUSTOMER_ID: If(
IsBlank(First(cb_main_list_Customer.SelectedItems).ID),
ThisItem.CUSTOMER_ID,
First(cb_main_list_Customer.SelectedItems).ID
),
C_M_ID: If(
IsBlank(First(cb_main_list_CM.SelectedItems).ID),
ThisItem.C_M_ID,
First(cb_main_list_CM.SelectedItems).ID
),
UKN_NUMBER: ti_main_list_UKNNumber.Text,
JOB_TYPE_ID: If(
IsBlank(First(cb_main_list_JobType.SelectedItems).ID),
ThisItem.JOB_TYPE_ID,
First(cb_main_list_JobType.SelectedItems).ID
),
TASK_TYPE_ID: If(
IsBlank(First(cb_main_list_TaskType.SelectedItems).ID),
ThisItem.JOB_TYPE_ID,
First(cb_main_list_TaskType.SelectedItems).ID
)
}
)

Report
All responses (
Answers (