Focal Point
[SOLVED] About Drop Down List with store procedure

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

October 17, 2009, 04:36 AM
Yangyang
[SOLVED] About Drop Down List with store procedure
this is my code :

in main fex :


SQL SQLMSS SET SERVER &CONNECTION
SQL SQLMSS EX wftest.dbo.store ProcedureDropDown;
TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS test1
END
TABLE FILE test1
PRINT down1 NOPRINT
COMPUTE CARRNM/A100 = '';
ON TABLE HOLD AS test2 FORMAT ALPHA
END
-RUN


SQL SQLMSS SET SERVER &CONNECTION
SQLMSS EX wftest.dbo.otherProced ;
TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS XSQLOUT
END
-RUN

DEFINE FILE XSQLOUT

SELECT/A300 = '<_DIV><_SELECT NAME=DR1 >!IBI.FIL.test2';

END

GRAPH FILE XSQLOUT
SUM *

HEADING
"ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRXAXIS 0
ON GRAPH SET HAXIS &HAX
ON GRAPH SET VAXIS &VAX
ON GRAPH SET UNITS PIXELS
..............................



!IBI.FIL.test2 , i think it's not work ,

if i modify the code like below ,

-HTMLFORM BEGIN
<_body style="margin: 0; padding: 0;">
<_SELECT id=RD >
<_OPTION value=NONE selected>ALL
!IBI.FIL.test2;


-HTMLFORM END

error :
-HTMLFORM BEGIN
(FOC36232) UNABLE TO LOCATE END OF !IBI ESCAPE SEQUENCE.


i want use the first method . i didn't where is wrong ...

_select and _option are modfeid.

Thanks,
Yang

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


WebFOCUS 7.6.8
WebFOCUS 7.6.10
BI
FLEX
.NET
October 17, 2009, 05:31 PM
Doug
the elaborated messgae fo FOC36232 states: "Each !IBI escape sequence must be terminated by a semi-colon." Perhaps you can start with concatenating a semi-colon to the end of each row in "test2", that just may do the trick for you...
October 19, 2009, 08:13 AM
<JG>
quote:
!IBI.FIL.test2';

Firstly as Doug says should be !IBI.FIL.test2;';

However that is totally incorrect

as !IBI.anything only works when embedded in an HTML page it does not work in WebFOCUS
processes such as DEFINE, COMPUTE, PRINT etc.

Secondly If you wish to use that technique then you must construct valid HTML select/option syntax

I assume

 <_body, <_select <_body  


are substitutions because you forgot to wrap the code in code tags

There are many examples available on the forum do a search for DEFINE SELECT OPTION
You'll find exactly what you need.
October 19, 2009, 10:56 PM
Yangyang
thank you Doug
thank you JG


i fixed it ,
i changed the 'test2' to 't2' , it's worked..
i don't know the reason...

Thanks,
Yang


WebFOCUS 7.6.8
WebFOCUS 7.6.10
BI
FLEX
.NET