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

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.