Hello,
I've posted about this twice before over the past month with no answer from anyone from Microsoft, and now my project is way behind.
I have a PowerApp Canvas App I'm developing with the new CDS for Apps.
One of my custom entities has six lookup columns which I'm trying to load into a form from a Gallery.
When I open an item from the Gallery in a Form, most of the time it WILL NOT load LookUp data.
When I try to display the lookup information in the "DefaultSelectedItems" function, it is blank because the lookup data is blank.
When I compare the data of the Entity Row to what's in the database, it shows values for the lookups.
However, in the app it is 'blank'.
This issue comes and goes (sometimes it works, usually it does not) and I can't make heads or tails of it.
How can I query for a specific entity row and ensure that ALL the columns, including the lookup columns, have data in them? Is this an issue that is Microsoft is aware of, or is it possibly something I'm doing wrong?
Hi @AccuFloDev
I'm new with powerapps, thats why i need to reanimate this thread..
@AccuFloDev wrote:
In regards to my issue, I'm trying to improve performance of an app by making it work mostly offline until the user initiates a sync on demand.
Could you please share me the formula for this part please?
Thanks,
BR.
pytbyt
@PytByt wrote:Hi @AccuFloDev
I'm new with powerapps, thats why i need to reanimate this thread..
@AccuFloDev wrote:
In regards to my issue, I'm trying to improve performance of an app by making it work mostly offline until the user initiates a sync on demand.Could you please share me the formula for this part please?
Thanks,
BR.
pytbyt
Hey @PytByt ,
The functionality I was describing isn't all in a single formula - could you be more specific as to the information you're looking for? I'll try to provide what I can.
Hey @KelvinBox ,
I was unable to get the lookups to show using labels on a page prior to the call to Collect().
I was however able to get the lookups working using a slightly different method;
I may also have found an alternative to using First() that may have less of a hit on the device storage:
Here's a basic outline of the steps I used:
LookUp( 'My Entity', //CDS Entity Not(IsBlank('My Entity Id')) //Get an item where the ID column isn't blank (This guarantees you get a result, if one exists - ID can't be blank) )
This has worked to get the lookups showing consistently. I am running into another issue now with having to Refresh() data sources twice before data comes in, but at least it's bringing in the Lookup values now.
(I will be creating a separate thread on the Refresh issue)
Anyway, if you have any questions on my methodology above please let me know.
Hi @AccuFloDev
I need to know what formula is use to make the offline features.
I mean, i already use the collection, and i also know about the SaveData and LoadData function. But i haven't really know how to use it and where to put it.
That's is why i'm interest in your solution which make the app work mostly offline until the user initiates a sync on demand.
I also need to know to automatically sync when Connection is connected.
Hope you could help.
Thank,
BR.
pytbyt
@PytByt wrote:Hi @AccuFloDev
I need to know what formula is use to make the offline features.I mean, i already use the collection, and i also know about the SaveData and LoadData function. But i haven't really know how to use it and where to put it.
That's is why i'm interest in your solution which make the app work mostly offline until the user initiates a sync on demand.
I also need to know to automatically sync when Connection is connected.
Hope you could help.
Thank,
BR.
pytbyt
Hey @PytByt ,
That's a bit of a loaded question, I'm not sure if I can provide you enough info here in the forums to cover that broad topic, but I can point you in the right direction to some blog articles on the subject take a look at these and let me know if you have any specific questions that aren't covered in the articles:
In regards to:
I also need to know to automatically sync when Connection is connected.
There are probably a lot of ways to do this, but my preferred method is to have a button on the apps 'main' screen which runs the 'sync' code. You could trigger this in a couple of ways:
//Screens OnVisible Property If( Connection.Connected, Select('Sync Button'); );
//Toggle Control 'Default' Property Connection.Connected
//Toggle Control 'OnCheck' Property //This code will run only when the connection state changes from false to true Select('Sync Button');You can then set the Visible property of the toggle to false to the users can't manually change the toggle.
I'm facing the same issue here.
It's the first time I use the CDS and I just spent the day trying to figure out why it does not work.
I tried the First(Filter()) solution but it does not work better.
I can't use the Gallery control solution so I don't really know what to do from here.
Any updates from Microsoft on when the issue would be resolved ?
Thanks
I think the response from @AccuFloDev to me above is still relevant and hasn’t changed unfortunately.
if you provide specific examples of what you’re doing we can probably help 🙂
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
16 | |
5 | |
4 | |
4 | |
3 |