Focal Point
[SOLVED] Multi select listbox

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2647049706

August 04, 2011, 06:58 PM
Enigma006
[SOLVED] Multi select listbox
Hi all

I am working on a user interface and having an issue. there is a multi select listbox which sends its values in this format to the report

  
'Value1' OR 'Valu2' OR 'Value3'


I am trying to write dialog manager commands to append % symbl at the end of each value to get it like this.

  
'Value1%' OR 'Value2%' OR 'Value3%'


Can someone help on this?

thank you

This message has been edited. Last edited by: Kerry,


8.1.05
HTML,PDF,EXL2K, Active, All
August 04, 2011, 07:50 PM
Waz
Perhaps something like this:

-SET &Rep1 = STRREP (&Var.LENGHT,&Var,4,''' OR',5,'%'' OR',100,'A100') ;
-SET &Rep1 = TRUNCATE(&Rep1);
-SET &Len1 = &Rep1.LENGTH - 1 ;
-SET &Rep2 = SUBSTR(&Rep1.LENGTH,&Rep1,1,&Len1,&Len1,'A&Len1.EVAL') | '%''' ;



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

August 05, 2011, 11:41 AM
Enigma006
thanks waz...this worked..
i was able to get first 2 steps but been struggling for 3rd and 4th..


8.1.05
HTML,PDF,EXL2K, Active, All
August 07, 2011, 05:38 PM
Waz
3rd and 4th steps ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!