Focal Point
Dialogue manager commands in HTML Form...
January 17, 2008, 03:01 AM
focuzsambitDialogue manager commands in HTML Form...
Can we use dialogue manager commands within -HTML forms ??
I tried, no error but no output too.
tks/sam
January 17, 2008, 04:49 AM
GamPDepends on where and when you try to run the code.
If the html-code is within a fex you're running then you start the htm form with
-HTMLFORM BEGIN
and end it with -HTMLFORM END
In between you can use DM commands and &variables.
If you're calling up the form from a browser, then you can't use DM commands or &vars because the webserver does not understand what they are.
And, if you running the htm file from within a fex, not embedded but as an external htm (called with -HTMLFORM filename) then you also cannot use DM commands, but you can use &variables, provided you code then as !IBI.AMP.something; or as !IBI.GLB.something; and also use the content of holdfiles with !IBI.FIL.filename; (note: the ! and the ; are mandatory).
GamP
- Using AS 8.2.01 on Windows 10 - IE11. |
| in Focus since 1988 |
January 17, 2008, 05:13 AM
focuzsambitNo Sir...Its not working.
I can acess &variables but dialogue manager statements (If else) are not working.
btw have u tried ya just...
WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
January 17, 2008, 05:38 AM
GamPYep, just ran an example of this, and for me it works fine.
Exactly what is your code?
Below a simplified example of my code:
TABLE FILE CAR
print somefields
where some condition
ON TABLE HOLD FORMAT HTMTABLE
END
-RUN
-SET &LINS = &LINES;
-HTMLFORM BEGIN
<HTML>
<BODY>
!IBI.FILE.HOLD;
-IF &LINS EQ 8 THEN GOTO 8LINES;
There are &LINS lines in the report.
-GOTO ENDLINES
-8LINES
There are exactly 8 lines in your report.
-ENDLINES
</BODY>
</HTML>
-HTMLFORM END
And if the report contains exactly 8 lines I get the special line, if not I get the normal line displayed.
Hope this helps...
GamP
- Using AS 8.2.01 on Windows 10 - IE11. |
| in Focus since 1988 |
January 17, 2008, 05:53 AM
focuzsambiti am on 714...that might be the issue, otherwise code is simple.......
thanks a ton.
WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
January 18, 2008, 11:42 AM
PBrightwellThe code that GamP provided should work regardless of your version. Post your code and maybe we can help you find the problem.
Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
January 21, 2008, 10:57 AM
susannahagree w/ Gamp and PB,
the use of dialog manager between HTMLFORM tags works like a charm
and has since at least 4.3.1, which was around the time of noah's ark, as i recall
| In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID |
January 21, 2008, 10:58 PM
focuzsambithmm...Thanks....Might be some slippage from my end......
WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI