N
nborshukov
Guest
Ho goo! For label part the only choice is to lookup list-item-pairs attribute. But, for value part is better to use combo-box lookup method. If you setup combo-box as follows: cmbInteger
elimiter = "|". cmbInteger:list-item-pairs = "Test (AA)|230|Test (BB)|340|Test (CC)|2333". Then, for current selection: SelectedPairIndex = cmbInteger:lookup(cmbInteger:screen-value) . For pair "Test (BB)|340" this returns 2 - i.e. second label-value pair. SelectedPairLabel = entry(SelectedPairIndex * 2 - 1,cmbInteger:list-item-pairs,cmbInteger:delimiter). This returns "Test (BB)". If you want to get value for given label: PairIndex = (lookup(GivenLabel,cmbInteger:list-item-pairs,cmbInteger
elimiter) + 1) / 2. PairValue = cmbInteger:entry(PairIndex).. Regards!
Continue reading...


Continue reading...