Focal Point
[SOLVED] Double list control webfocus values

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

May 20, 2013, 10:09 AM
Trilochan
[SOLVED] Double list control webfocus values
I have used a double list control in webfocus version 7.6.1.

I am getting the value in the below format
'PP Test TR' OR 'PP Test TR' OR 'PP SMS Level' OR 'PP SMS Level'.

I need the value in the below format to pass in a oracle procedure.

'PP Test TR','PP Test TR','PP SMS Level','PP SMS Level'.

Please help.

Thanks in advance!

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6.1
Windows, All Outputs
May 20, 2013, 10:27 AM
nd
I use 7.7.03, and the only way I know this is to edit the source of the htm file, find the operation="" attribute of the tag that refers to the control, and make it
 operation=",". 



WF: WebFocus 7.7.03
Data: Oracle, MSSQL, DB2
OS: Windows
Output: HTML/AHTML,PDF,EXL2K FORMULA, COMT
May 20, 2013, 10:30 AM
MattC
You can use STRREP to replace hte OR with ,

 
-SET &ValueLength   = &Value.LENGTH;
-SET &ValueAdj      = IF &Value CONTAINS ' OR ' THEN STRREP (&Value.LENGTH, &Value, 3, ' OR ', 1, ',', &Value.LENGTH, 'A&ValueLength.EVAL') ELSE &Value;
 



WebFOCUS 8.1.05
May 20, 2013, 10:58 AM
Trilochan
Thanks MattC.

Its working and usefull.


WebFOCUS 7.6.1
Windows, All Outputs
May 20, 2013, 11:04 AM
MattC
Very Good!

I had to do a lot of that in one of my programs as I had a lot of multi-select parameters being passed to SQL in Oracle.


WebFOCUS 8.1.05