[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Combi-box issue

  • Thread starter Thread starter nborshukov
  • Start date Start date
Status
Not open for further replies.
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:Delimiter = "|". 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:Delimiter) + 1) / 2. PairValue = cmbInteger:entry(PairIndex).. Regards!

Continue reading...
 
Status
Not open for further replies.
Back
Top