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

Edit only one line at a time

How do I only get to edit one line when I click on the edit icon? Now I get to edit the whole table when I click on it. 

 

I use Set(readOnlyFields,false); on the OnSetting property of the edit icon, Set(readOnlyFields,true); to the screen and If(readOnlyFields=false,Edit,View) on the single text input.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi@Janni29,

Based on the issue you mentioned, you want to edit one row when clicking on the edit icon.

If you want to edit one row, you should set a variable which makes you achieve this.

I have a test on my side, please take a try the following:

  • Set Icon OnSelect property like: 

 

Select(Parent);Set(ItemId,ThisItem.ID)​

 

  • Set TextInput DisplayMode like: 

 

If(ItemId=ThisItem.ID,DisplayMode.Edit,View)​

 

 

  • My datasource is a SP list that has a default ID: ThisItem.ID. You can replace ID with any unique field in your datasource. Find your primary key in your datasource, you can set it, just like “ID” in my datasource.
  • Please select all the TextInput when you set the DisplayMode property.

final.gif

Best Regards,

Qi Qiao

View solution in original post

3 REPLIES 3
Super User III
Super User III

Is this same as the other post.

At the beginning of the OnSelect of the Icon put:

Collect(DisableIcon,Thisitem.ID)

 

Then in the Displaymode of the Icon put:

If(Thisitem.ID in DisableIcon, DisplayMode.Edit,Displaymode.Disabled)

 

You can replace ID with any unique field in your table or Datasource.

Super User III
Super User III

I wanted to test but am not on my machine. This video from Chris address that

https://youtu.be/41Mpgn7svLs

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Community Support
Community Support

Hi@Janni29,

Based on the issue you mentioned, you want to edit one row when clicking on the edit icon.

If you want to edit one row, you should set a variable which makes you achieve this.

I have a test on my side, please take a try the following:

  • Set Icon OnSelect property like: 

 

Select(Parent);Set(ItemId,ThisItem.ID)​

 

  • Set TextInput DisplayMode like: 

 

If(ItemId=ThisItem.ID,DisplayMode.Edit,View)​

 

 

  • My datasource is a SP list that has a default ID: ThisItem.ID. You can replace ID with any unique field in your datasource. Find your primary key in your datasource, you can set it, just like “ID” in my datasource.
  • Please select all the TextInput when you set the DisplayMode property.

final.gif

Best Regards,

Qi Qiao

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (22,660)