cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Voltes
Helper V
Helper V

Search edit form

Hi guys,

 

In Canvas app, if I put an Edit Form, and then I have a Data table, can I display the 1st item of the Data Table ?

and can Data Table be selected, then my Edit Form will change its records to the selected one ?

 

Any guidance is appreciated.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@Voltes 

You have to have the same datasource for both the edit form and the datatable and for the edit form it cannot be a collection or a variable.  It has to be an actual datasource.   The Item property of the edit form should be Lookup(datasource, ID = Datatable1.Selected.ID).

View solution in original post

3 REPLIES 3
Drrickryp
Super User
Super User

@Voltes 

You have to have the same datasource for both the edit form and the datatable and for the edit form it cannot be a collection or a variable.  It has to be an actual datasource.   The Item property of the edit form should be Lookup(datasource, ID = Datatable1.Selected.ID).

Hi @Drrickryp ,

 

Forgive me for a quick question, can I use the standard "Unique Identifier" column for the search key ? As this is CDS table, each table has a column (usually with the same column name as the table name) which the data type is "Unique Identifier".

 

Reason is I don't have a unique column that I created for this table, but even so, when I'm in the formula editor, could not see the "unique identifier" column in options that usually appeared as we type, unless because it is same as the table, I actually had choose it, but there is an error saying I should revise like this :

Voltes_0-1626106664907.png

 

Please let me know if I should create new topic for this ? 

 

Many thanks in advance.

Drrickryp
Super User
Super User

@Voltes 

That should work. You could also just use Datatable1.Selected as long as you don't reshape the datasource in the gallery.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,229)