
Announcements
if Param "recordID" I want to jump to the form screen and edit that record (recordID) of Sharepoint list ConcreteRequest. I have a button (for testing) on the Main screen with gallery of records. The Button is "Set(varRecordID,19); Navigate(ConcreteFormScreen,ScreenTransition.None)" in the form Item is LookUp(ConcreteRequest, ID=varRecordID). It shows the record values but if I submit form then I get errors. So, how do I pass a record from the sharepoint list ConcreteRequest to the form?
Hi @Anonymous,
Could you please share more details about the error message within your app?
I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:
Within the first screen, set the OnSelect property of the "Navigate" button to following:
Set(varRecordID, 6);Navigate(Screen2,ScreenTransition.Fade)
Within the second screen, set the Item property of the Edit form to following:
LookUp('20181217_case14',ID = varRecordID) /*<- '20181217_case14' represents my SP list data source */
Set the DataSource property of the Edit form to following:
'20181217_case14'
Please check the attached GIF screenshot for more details:
In addition, you could also consider take a try to submit your form data using Patch function instead of SubmitForm function. Please set the OnSelect property of the "Submit" button to following:
Patch(
'YourSPList',
LookUp('YourSPList', ID = varRecordID),
{
Title: DataCardValue1.Text,
Column2: DataCardValue2.Text,
...
}
)
Note: The Title, Column2, etc represents the columns in your SP list.
More details about the Patch function, please check the following article:
Best regards,
Kris