cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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)

 

Highlighted

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
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 (7,129)