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

Copy value

Hi Everyone

This is the app on which I'm working:

 

PowerApps.png

 

So I used this app to gather the ressource needed of my team

But to win some time. I'd like to add a button copy, if I select something in my datable (on the left) and then I click on the copy button, the values will be added in my fields (on the right)

And I have another question, would it be possible in my datatable to replace billable False/True by No/yes ?

 

Any idea of how could I do that?For the first one, I tought about the function Button.pressed; but it"s not existing anymore

 

Many thanks for your help

 

 

 

2 REPLIES 2
cyarbrough
Helper III
Helper III

for the true/false field, you can change the label or text box's .Text property to this:

 

 

If(BillableColumnName=true, "Yes","No")

 

 

here's one way you could implement the copy button you described:

 

add your "copy" button and set its .OnSelect property to this:

 

 

UpdateContext({copy:1})

 

 

 

add the following to:

  • your gallery's .OnSelect property, if you want the copied values to clear each time you select a new record
  • your "clear" button for the form
  • your "submit" button for the form, at the very end

 

UpdateContext({copy:0})

 

 

change the .Default property of every data input field in your form to this (add in your control/data names and remove brackets):

 

 

If(copy=1,[YourGalleryName].Selected.[NameOfDataColumn],Parent.Default)

 

 

 

 

if you want to show which record in the gallery is currently selected, you can use conditional formatting like this:

 

.Fill or .Color on some or all labels in the gallery:

 

If([YourGalleryName].Selected.ID =ThisItem.ID,["Selected" color],[Normal color])

or

 

.Visible on some kind of indicator icon:

 

If([YourGalleryName].Selected.ID =ThisItem.ID,true,false)

 

Thank for your help

Concerning the color; you have SelectedFill and SelectedColor propreties

But I'm not able to change my true/false to Yes/no, I don't have text proprtey

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,692)