Hi Team,
When I try to open and edit an item (database is SharePoint list) listed in a Gallery, I am facing slow loading issue or else "No items to display" error or get stuck in "Getting your data..."
Below are the codes I have written in my application.
I have edit icon in Gallery control, for which OnSelect code is
Patch(AllocationList,ThisItem,{ApprovalID:EditAlloRef.Text});Refresh(AllocationList);
ResetForm(AllocationForm);EditForm(AllocationForm);UpdateContext({EditAllocationForm:true});UpdateContext({AlloList:false})
where EditAlloRef is label hidden, for which the Text prperty is set as below
"APP"&Value(Mid(Last(AllocationsApproval).Title,4,Len(Last(Sort(AllocationsApproval,Title)).Title)))+1
When selected it opens a pop up having Allocation Form in edit mode, for which below code is the Item property
LookUp(AllocationList,ApprovalID="APP"&Value(Mid(Last(AllocationsApproval).Title,4,Len(Last(Sort(AllocationsApproval,Title)).Title)))+1)
Where Datasource is AllocationList.
Please help in getting this issue solved.
Thanks,
Harisha