I am making an app where I have a form which pulls its data out of a collection. This collection is created by by a SQL table.
At my last screen, I have a Gallery and a form. Whenever I select an item in the gallery, the form shows the detail from that selected item.
When I click an item, the form pulls data from the collection where Gallery.Selected.Id matches an Id in the collection table. Everything like this works fine.
The weird thing is that after a few moments, it just doesn't show anything anymore. It says that there is no item to list.
On other screens where I basically have exactly the same structure and code (just other collections and conditions), it does keep working. So why only after a little while does it not work as it did? And why does this only happen on this screen, and not others? I can't really figure it out where to look for. Or is it maybe Powerapps itself?
Item property code for form:
LookUp(colTasks, Survey_Inspection_Id = galINSInspections.Selected.Id && Task_Id = galTSKTasks.Selected.Id)
Could this have anything to do with (its items property for gallery):
Thanks very much
Solved! Go to Solution.
@v-monli-msft thanks for the reply.
In my database I have a table and I need to get the row of the record where
Survey_Inspection_Id = galINSInspections.Selected.Id && Task_Id = galTSKTasks.Selected.Id
If I would do OR then I'd get all the data through of which one of both matches which are a lot.
The problem was very simple: the table to pull the items from was not completely filled, thus on some Survey_Inspection_Id && Task_Id was literally no item to display. The message was pretty straightforward haha.
My solution was to autogenerate the table where it would be needed. The only thing now is that all items get autogenerated at the same time, and not only per item when necessary. I've got a topic going on which it goes more in depth: https://powerusers.microsoft.com/t5/General-Discussion/Display-form-even-wen-no-item-to-display/m-p/...
Thank you very much
Hi @SkiDK ,
Are galINSInspections and galTSKTasks 2 different galleries with different data sources? If so, then your condition is that both Survey_Inspection_Id and Task_Id column need to equals to the Id field you selected in both galleries. I think what you want to use should be "Or" function. If so, try to use below formula instead:
LookUp(colTasks, Survey_Inspection_Id = galINSInspections.Selected.Id || Task_Id = galTSKTasks.Selected.Id)
Regards,
Mona
@v-monli-msft thanks for the reply.
In my database I have a table and I need to get the row of the record where
Survey_Inspection_Id = galINSInspections.Selected.Id && Task_Id = galTSKTasks.Selected.Id
If I would do OR then I'd get all the data through of which one of both matches which are a lot.
The problem was very simple: the table to pull the items from was not completely filled, thus on some Survey_Inspection_Id && Task_Id was literally no item to display. The message was pretty straightforward haha.
My solution was to autogenerate the table where it would be needed. The only thing now is that all items get autogenerated at the same time, and not only per item when necessary. I've got a topic going on which it goes more in depth: https://powerusers.microsoft.com/t5/General-Discussion/Display-form-even-wen-no-item-to-display/m-p/...
Thank you very much
User | Count |
---|---|
132 | |
132 | |
78 | |
75 | |
71 |
User | Count |
---|---|
210 | |
199 | |
64 | |
63 | |
53 |