Hi, I have the following code in the 'OnSelect' property of a button;
Patch(
'Master List',
{
Column1: ComboBox4.Selected,
Column2: ComboBox5.Selected,
ComponentName: TextInput_ComponentName.Text
}
);
Patch(
'Lookup List',
{
Column1: Label1.Text,
Column2: {Value: "TestValue"},
Column3: TextInput1.Text,
ComponentName: TextInput_ComponentName.Text
}
)
So I am patching (new item) in a list called 'Master List' and all columns are updated successfully.
Then I patch (new item) the second list 'Lookup List'. This list has a lookup column called 'ComponentName' that is related to the column 'ComponentName' in the Master List. The ComponentName in the Look Up list is the only column that is not updated and I think this is because the 2 Patches are run at the same time and the Look Up list ComponentName can't find its corresponding value in the Master List as it thinks it hasn't been created yet. Hope that makes sense.
Would anyone have an idea on how to correct this?
Thanks