Focal Point
[CLOSED] SQL Query While Chaining Select

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

December 10, 2010, 02:28 AM
Ramkumar - Webfous
[CLOSED] SQL Query While Chaining Select
I am chaining Two multiple Select boxes, whose values are populated dynamicaly from a FEX in XML Format.


It is wokring perfect whenever I have in Table File.

For Eg:

TABLE FILE ACTUAL
PRINT
DST.BRANCH_NUMBER
BY BRANCH_NUMBER
WHERE AREA_CODE='&SEL_AREA';
ON TABLE PCHOLD FORMAT XML
END

&SEL_AREA is previous select box value. The Second Select box value changes perfect according to the previous selection.



Where In If i Try Like

SQL DB2 PREPARE SQLOUT FOR
SELECT DISTINCT BRANCH_NUMBER FROM ACTUAL WHERE AREA_CODE='&SEL_AREA';
END

TABLE FILE SQLOUT
PRINT
BRANCH_NUMBER
BY BRANCH_NUMBER
ON TABLE PCHOLD FORMAT XML
END

The values are populated perfectly for the first time. But Chaining doesnt happen according to the Selection.

Any Suggestions ?

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


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
December 10, 2010, 09:10 AM
dbeagan
SQL doesn't support:
 WHERE AREA_CODE = 'value OR value OR value'  


but that is what the first list box would try to pass when you select more than one value.


WebFOCUS 8.2.06