Hello,
I am using the following code on the OnSelect property of the Save button in the screenshot below - this is saving data to two SharePoint lists.
Patch(
SubtopicArgEvi_1,
Defaults(SubtopicArgEvi_1),
{
Building: DataCardValue1.Text,
Topic: DataCardValue2.Text,
Subtopic: SubtopicDD_1.Selected.Value,
RAGStatus: SubtopicRAGStatusDD_1.Selected.Result,
'Subtopic Breakdown': SubtopicBreakDownDD_1.Selected.Value,
Argument: ArgumentText2.HtmlText,
Evidence: EvidenceText2.HtmlText
}
);
Patch(
SubtopicArgEvi_ChangeReq,
Defaults(SubtopicArgEvi_ChangeReq),
{
Building: DataCardValue1.Text,
Topic: DataCardValue2.Text,
Subtopic: SubtopicDD_1.Selected.Value,
RAGStatus: SubtopicRAGStatusDD_1.Selected.Result,
SubtopicBreakdown: SubtopicBreakDownDD_1.Selected.Value,
Argument: ArgumentText2.HtmlText,
Evidence: EvidenceText2.HtmlText
}
);
Notify("Suptopic successfully saved!");
The SharePoint list 'SubtopicArgEvi_1' is associated with this gallery. When a row is selected, you can select the Edit button to open the form control in a modal dialog (as above).
In the initial patch statement at the top of this post, it also patches the same edit form data to the list 'SubtopicArgEvi_ChangeReq' - this is where end users in the business will make their changes, submit for approval and once approved, the data in the the 'SubtopicArgEvi_1' will get updated by a power automate flow.
I just need some help with getting the patch statement for this to work to update the text data in the above Argument and Evidence boxes once they've been edited.
I've tried using the 'SubmitForm' command on the SAVE button. however it didn't want that - it wanted to use patch.
I've tried using the following but something seems amiss:
Patch(
SubtopicArgEvi_ChangeReq,
LookUp(
SubtopicArgEvi_ChangeReq,
),
{
Building: DataCardValue1.Text,
Topic: DataCardValue2.Text,
Subtopic: SubtopicDD_1.Selected.Value,
RAGStatus: SubtopicRAGStatusDD_1.Selected.Result,
SubtopicBreakdown: SubtopicBreakDownDD_1.Selected.Value,
Argument: ArgumentText2.HtmlText,
Evidence: EvidenceText2.HtmlText
}
);
Notify("Subtopic Change Request information updated");
Any help or ideas on what to do would be really helpful! :)