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

Fill datacard value based on other datacard

Hi peers,

 

I have two datacards 1. having text 2. having combobox

Text value should be filled from comboBox when combox is modified

ex: TextDatacard value = comboBox value

I tried using onselect,Onchange of combox box - below function, but not working.

DataCardValue93.Text = comboBox3.Selected.'Item number'

ItemDataCard_ComboBox.pngItemDataCard_Text.png

2 REPLIES 2
krishnapwa
Level: Powered On

Re: Fill datacard value based on other datacard

Thank you so much  

 

emh
Level 8

Re: Fill datacard value based on other datacard

Hello,

 

One way to achieve your desired result is to use a Context Variable.

 

In the OnChange property of the combo box: UpdateContext({ComboBoxChanged: true})

 

In TextDataCard: If(ComboBoxChanged, comboBox3.Selected.'ItemNumber', ThisItem.columnName)

 

The Context Variable, ComboBoxChanged, needs to be initialized and reset accordingly. The OnVisible property of a screen is a good place to initialize Context Variables to false. 

 

 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 29 members 3,828 guests
Please welcome our newest community members: