I have loaded up some sample apps and they use 'Data Cards' to fix different layouts with 'sections' of the screen. I like this approach as you can group controls, but in my own app I can't find the option anywhere to 'add' a data card. What am I missing?
Thanks @leyburn19 - does that mean if I have no compatible data source to use with a view or edit form, I am unable to use DataCards as a means to control the layout of my screen / help define different areas of the screen to group controls under? That's a shame.
Not sure what you mean about compatable datasource. Datacards are designed to be bound to any source or a collection.
Are you wanting to create a number of unbound fields and then patch them to a source or something like that?
My understanding of Forms, (View / Edit) is that they can only work with specific table resources (SQL Server, Sharepoint list, Excel file). None of my data sources are like this. They are generally Collections or Table variables from custom connector(s). You're saying that Data Cards only become available when you add a Form to the screen, however as I have no compatible data sources to suit a form, I'm guessing I can't use Data Cards? Hope that makes sense.
Forms can work with collections. In the Advanced section of the property window, set the Items property to the name of your collection (rather than use the data source dropdown). You can find the option to add a card through the Fields > Add a custom card menu item.
As @leyburn19 says, if you let us know what you want to achieve, I'm sure someone here can give you some good advice on laying out screen sections.
You can do as stated above where you tie to a collection instead of a typical data source or you can also put in a scrollable screen which will allow you to put stuff in the Canvas instead of Cards which works pretty much the same from a design stand point.
Could you please share a bit more about your issue?
Do you want to add a Collection or Variable as a data source within a Edit form?
In default, when you connect a Edit form to a Table data source (e.g. SQL Server, SharePoint list, Excel table, etc), the Predefined cards would be shown up within right-hand panel. Please check the following article for more details:
If you connect your Edit form to a Collection or a Variable directly, the Predefined cards would not be shown up. But you could consider take a try to add a custom Data card within your Edit form, then add corresponding controls within the custom Data Card to display the data.
More details about adding a custom Data card within a Edit form, please check the following article:
Set the Item property of the Edit form control to a specific record within your Collection. e.g. Set the Item property of the Edit form control to following:
Note: The EDIT form could only be used to display one record.
So I've finally gotten around to testing this, and still can't get it to work.
In the OnVisible of the screen I have the following
I have added an Edit Form and a Data Table (the table is to demonstrate that i do get data for my collection).
The data table Items is set to:
The DataSource for the edit form is set to:
I then have two custom data cards. An example of one of the cards, it is set to
I can see that the field itself shows the data in designer (See bottom of screenshot)
However, when run - the form is empty? (The data table however is OK)
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
Check out the winners of the recent 'Can You Solve These?' community challenge!
Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.
Featuring samples like Return to the Workplace and Emergency Response Applications
Features releasing from October 2020 through March 2021