cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SkiDK
Level 8

App stops pulling data after a while

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.

 Capture.PNG

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.

efz.PNG

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):

efzefze.PNG

 

Thanks very much

1 ACCEPTED SOLUTION

Accepted Solutions
SkiDK
Level 8

Re: App stops pulling data after a while

@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

2 REPLIES 2
Community Support Team
Community Support Team

Re: App stops pulling data after a while

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

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
SkiDK
Level 8

Re: App stops pulling data after a while

@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

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 26 members 4,558 guests
Please welcome our newest community members: