hi @anujkhator ,
Set the OnSelect Property of Each Button:
- For each button, set the OnSelect property to navigate to the next screen and pass the table name as a parameter. Here’s how you can do it:
Navigate(EditScreen, ScreenTransition.None, {selectedTable: "Cement"})
Replace "Cement" with the respective table name for each button.
Switch(
selectedTable,
"Cement", CementList,
"Tile", TileList,
"WhiteCement", WhiteCementList,
"Admixture", AdmixtureList,
"Paint", PaintList,
DefaultList
)
Replace CementList, TileList, etc., with the actual names of your SharePoint lists or data sources.
Set the Item property of the form to a blank item or a default new item. For example:
Add Form Fields:
- Add the necessary fields to the form based on the data sources. The form fields will automatically update based on the selected data source.
Save Changes:
- Finally, add a submit button to save changes. Set the OnSelect property of the submit button to:
SubmitForm(EditForm1);
If(
Form1.Error,
Notify("Error saving data", NotificationType.Error),
Notify("Data saved successfully", NotificationType.Success)
)
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.