cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nagestiada
Post Partisan
Post Partisan

When button is clicked in gallery the specific ThisItem dropdown will only be visble

Hello guys,

Is it possible that when I click the edit button only the dropdown inline will be visible

I have this onselect: UpdateContext({Dropdown:true})

 

and dropdown visible: Dropdown=true 
nagestiada_0-1624423207655.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @nagestiada ,

 

The easiest way is to create a column in your data source.

For example:

Create a Yes/No column.

vxiaochenmsft_0-1624525573537.png

Add add a button control to set its onselect property to:

If(IsBlank(ThisItem.Test),Patch(LIST4,ThisItem,{Test:true}),Patch(LIST4,ThisItem,{Test:!(LookUp(LIST4,ID=ThisItem.ID).Test)}))

vxiaochenmsft_1-1624525593376.png

 

Set the DisplayMode property of control to:

If(ThisItem.Test=true,DisplayMode.Edit,DisplayMode.View)

vxiaochenmsft_2-1624525644529.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

 

View solution in original post

3 REPLIES 3
v-xiaochen-msft
Community Support
Community Support

Hi @nagestiada ,

 

I don't quite understand your needs.

Could you provide more information to explain your requirement?

 

Best Regards,

Wearsky

@v-xiaochen-msft 

I am trying to create an editable table but I want the user to have the power to choose what rows he/she wants to edit, so I will be having a button on each row of the gallery and when the user click the button it will enable the edit of the dropdown and when the button is clicked again it will be disabled. 

I also whant if ThisItem.Category = Remarks then textinput will appear and ThisItem.Category ="Suggestion" then   dropdown will show on new value column when the edit button is clicked

nagestiada_1-1624521495376.png

 

 

v-xiaochen-msft
Community Support
Community Support

Hi @nagestiada ,

 

The easiest way is to create a column in your data source.

For example:

Create a Yes/No column.

vxiaochenmsft_0-1624525573537.png

Add add a button control to set its onselect property to:

If(IsBlank(ThisItem.Test),Patch(LIST4,ThisItem,{Test:true}),Patch(LIST4,ThisItem,{Test:!(LookUp(LIST4,ID=ThisItem.ID).Test)}))

vxiaochenmsft_1-1624525593376.png

 

Set the DisplayMode property of control to:

If(ThisItem.Test=true,DisplayMode.Edit,DisplayMode.View)

vxiaochenmsft_2-1624525644529.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

 

Helpful resources

Announcements
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,909)