cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Help with a Quick Code for Editing Gallery Dropdown Item

Hi All - Need help with a quick code line:

 

when editing details from a collection... the coding used for a text input item is:  Gallery1.Selected.@#$#@ (name of the list-item in the collection).   I'm trying to find the coding for a Dropdown Box that i have in building my collection.

The Collection colum title is  Managed  and the name of the drop down box is called  Managed_YN . 

her is what i'm using to add the dropdown item to the collection:   {Managed: Managed_YN.Selected.Value}   

 

How do I pull this to the Edit Screen??    I tried    Gallery1.Selected.Manged  isn't working I know its something simple... LOL.. 

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @MichaelSmith,

 

Not sure if I have understood your scenario correctly but here is my understanding:

You have a collection created by values from a dropdown control. Now you have put this collection as the data source of a Gallery control. You want to know how to set to edit the records of this collection in an EditForm.

 

If my understanding is correct, please follow below steps to achieve this:

1. When selecting a record inside the gallery, you should first view the record details and then decide to edit the record or not.

In 1st screen, you have the dropdown to create the collection and the gallery control to show the collection. In the template part(first part) of Gallery control, set the OnSelect property of the > icon to:

 

Navigate(Screen2,None)

 

2. In the Screen2, insert a DisplayForm, set its DataSource to CollectionName. Set its Item property to:

Gallery1.Selected

3. If you do not see any pickable data cards under the data source of DisplayForm, then just select the ellipsis under it and select "Add a custom data card". In this new data card, insert a Label control, and set its Text property to:

ThisItem.Managed

Capture.JPG

Insert a > button, and set the OnSelect property to:

Navigate(Screen3,None)

4. Then add the Screen3 and insert an EditForm. Except for inserting TextInput/Dropdown control instead of Label control, other steps are pretty the same as step3. 

 

This is a typical app which has the same architecture as the app that created with Start with your data. You can first try to create an auto-generated app with Start with your data using other connections and test around to see how to create your own one.

 

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.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Hi @MichaelSmith,

 

Not sure if I have understood your scenario correctly but here is my understanding:

You have a collection created by values from a dropdown control. Now you have put this collection as the data source of a Gallery control. You want to know how to set to edit the records of this collection in an EditForm.

 

If my understanding is correct, please follow below steps to achieve this:

1. When selecting a record inside the gallery, you should first view the record details and then decide to edit the record or not.

In 1st screen, you have the dropdown to create the collection and the gallery control to show the collection. In the template part(first part) of Gallery control, set the OnSelect property of the > icon to:

 

Navigate(Screen2,None)

 

2. In the Screen2, insert a DisplayForm, set its DataSource to CollectionName. Set its Item property to:

Gallery1.Selected

3. If you do not see any pickable data cards under the data source of DisplayForm, then just select the ellipsis under it and select "Add a custom data card". In this new data card, insert a Label control, and set its Text property to:

ThisItem.Managed

Capture.JPG

Insert a > button, and set the OnSelect property to:

Navigate(Screen3,None)

4. Then add the Screen3 and insert an EditForm. Except for inserting TextInput/Dropdown control instead of Label control, other steps are pretty the same as step3. 

 

This is a typical app which has the same architecture as the app that created with Start with your data. You can first try to create an auto-generated app with Start with your data using other connections and test around to see how to create your own one.

 

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.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (13,964)