
Announcements
Hi there,
I am building an app for 'internal audits' connected to a single SharePoint List.
One item on the list = one audit record.
The list supports four types of audits using content types.
So far, the app consists of:
My question is: how do I get the form on the set up page to open the correct item whether the use has chosen to create a new item from SharePoint, edit an existing item from SharePoint or edit an existing item by selecting it from the gallery page gallery?
App: On start: Set(SELECTED_AUDIT_ID,SharePointIntegration.Selected.ID)
Gallery screen: select arrow: OnSelect: Set(SELECTED_EXISTING_AUDIT, Label_ID_Hidden); Navigate(Welcome_Screen)
SharePoint integration: OnNew: Set(SharePointFormMode, "CreateForm"); NewForm(Form_1); Navigate(Welcome_Screen, ScreenTransition.None)
SharePoint integration: OnEdit: Set(SharePointFormMode, "EditForm"); EditForm(Form_1); Navigate(Welcome_Screen, ScreenTransition.None)
Set Up Screen: Form_1: Item: ???
Thoughts?
Hi @Anonymous ,
The Item of your Form is
LookUp(
YourListName,
ID=SELECTED_AUDIT_ID
)
or simply
LookUp(
YourListName,
ID=SharePointIntegration.SelectedListItemID
)
If selected from a Gallery (I cannot see your model)
Lookup(
YourListName,
ID=GalleryName.Selected.ID
)
I am not sure why you have all the complexity with the Variables.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.