cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Domiowa
Level: Powered On

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
cyarbrough
Level: Powered On

Re: Copy value

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)

 

Domiowa
Level: Powered On

Re: Copy value

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (3,790)