cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RodrigoCastelli
Helper IV
Helper IV

Edit Screen - DropDown

Hello,

 

I have a gallery that when clicking on the "Arrow" it takes me to an edit screen.

 

This edit screen has a few dropdowns where i get options to be selected from a Sharepoint List.

 

For example, my function Item has the formula:

Distinct('SharePointList';Collumn)

 

My Default Function is empty.

 

My problem is that every time i go to edit screen there are some fixed values in the dropdowns that are not the ones from the Item i have select. So imagine that my Item has a field value equals "MyField2", but in my edit screen it shows always "MyField1", then if the user saves the edit screen it changes this value incorrectly.

 

What i need is to be able to go to edit screen and in the dropdown the data displayed is from the select item. Besides i need the dropdowns options in case the user changes this value.

 

If someone could help me i would appreciate.

 

Best regards,

2 ACCEPTED SOLUTIONS

Accepted Solutions
Krishna98
Helper V
Helper V

Hi, try doing this

 

onselect property of arrow give => select(parent)

then in the item property of form give => gallery. selected  

View solution in original post

RandyHayes
Super User
Super User

@RodrigoCastelli 

You will need to set the default property on your control to do this.  If it is empty, then it will just show what was there before.

 

IF these are truly Dropdown controls (and not CobmoBoxes), then you can first make sure that the Default property of your DataCard is still set to ThisItem.yourColumnName and then set the Default property of the Dropdown to Parent.Default

 

This assumes that your column is a Text column.  If it is some other type of column like a choice column, then there is more to do, but since you mentioned Dropdowns, I will assume they are text based dropdowns.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
Krishna98
Helper V
Helper V

Hi, try doing this

 

onselect property of arrow give => select(parent)

then in the item property of form give => gallery. selected  

RandyHayes
Super User
Super User

@RodrigoCastelli 

You will need to set the default property on your control to do this.  If it is empty, then it will just show what was there before.

 

IF these are truly Dropdown controls (and not CobmoBoxes), then you can first make sure that the Default property of your DataCard is still set to ThisItem.yourColumnName and then set the Default property of the Dropdown to Parent.Default

 

This assumes that your column is a Text column.  If it is some other type of column like a choice column, then there is more to do, but since you mentioned Dropdowns, I will assume they are text based dropdowns.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
RodrigoCastelli
Helper IV
Helper IV

Hi @RandyHayes  and @Krishna98 ,

 

My problem was in the SharePoint List.

 

It was not set as text. After solving it the dropdown is working perfectly setting his Default Property as mentioned.

 

Thanks!

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 (1,489)