Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] About Drop Down List with store procedure

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] About Drop Down List with store procedure
 Login/Join
 
Gold member
posted
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
 
Posts: 97 | Registered: August 18, 2009Report This Post
Expert
posted Hide Post
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...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
<JG>
posted
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.
 
Report This Post
Gold member
posted Hide Post
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
 
Posts: 97 | Registered: August 18, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] About Drop Down List with store procedure

Copyright © 1996-2020 Information Builders