Focal Point
[SOLVED] HTML frontend calling drilldown fex, querystring error.

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

May 18, 2010, 02:39 PM
ABT
[SOLVED] HTML frontend calling drilldown fex, querystring error.
I have an HTML front-end that calls a fex to display a simple PDF report. The PDF report is drill-through enabled by calling another fex. The WebFocus components work fine together, but when the HTML is in front, everything breaks down. The process runs perfect when called from MRE.

I have ironed out most of the issues, but I am still having problems with 2 drop-down variables. In the first fex, if I put a -TYPE on these variables and EXIT at the beginning, they display fine with the correct values. If I don't do that, they display the appropriate values in the Fex at the appropriate times. When it gets to the querystring portion, it doesn't display the variable values. No error, just no variable displayed. The variable I am using in the query string display is the same as I am -TYPE ing above.

Does anything jump out at you?

-ABT

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


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
May 18, 2010, 02:47 PM
GinnyJakes
I'm confused. Are you talking about controls not being populated on an HTML launch page? If yes, is the master you are looking at to populate the boxes in the application path?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
May 18, 2010, 02:54 PM
ABT
No, the HTML page works fine all controls are displayed, populated and send appropriate values to the destination FEX file.

Once in the destination FEX file, I can -TYPE the variables passed to see they made it and what their values are. All is fine in this step also. At the bottom of this FEX, I structure my output as a drill-through. In setting up the destination and it's QueryString parameters, several of the variables are acting as if they are empty.

  
TYPE=SUBFOOT, HEADALIGN=BODY, JUSTIFY=RIGHT, STYLE=BOLD, $
TYPE=TABFOOTING, HEADALIGN=BODY, JUSTIFY=RIGHT, STYLE=BOLD, $
TYPE=DATA, COLUMN=N1,
     FOCEXEC=app/DDDRLPRC.fex(REPORTTYPE='ORDERTYPE' PROVNAME=&PHYSID BEG1=&BEGDATE END1=&ENDDATE PROVSTAT=&PROVSTAT PROVROLE=&PROVROLE ORDERTYPE=HSZC_ORDER_TYPE.NAME PROCNAME=PROC_NAME),TARGET='_blank',$
TYPE=DATA, COLUMN=N2,
     FOCEXEC=app/DDDRLPRC.fex(REPORTTYPE='PROCNAME'  PROVNAME=&PHYSID BEG1=&BEGDATE END1=&ENDDATE PROVSTAT=&PROVSTAT PROVROLE=&PROVROLE ORDERTYPE=HSZC_ORDER_TYPE.NAME PROCNAME=PROC_NAME),TARGET='_blank',$
ENDSTYLE


&PROVSTAT and &PROVROLE are represented as drop-down items on the HTML page. Again, when I -TYPE the vars above, they show the correct data. When looking at the output of the PDF (hovering over the links), I can see the values are not listed.

-ABT

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


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
May 18, 2010, 03:24 PM
ABT
Well, it was supposed to bold that piece of text, but it looks like you can't do that within the CODE block. I'll remove it to avoid confusion.

I was calling attention to those being the variables that were breaking.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
May 18, 2010, 03:34 PM
Francis Mariani
I just realized that! Yes, unfortunately, you cannot embed other tags within the code tags.

The styling line may be too long, try breaking it into multiple lines using the \ continuation character. Also, all alpha strings passed as values in the drill-down link must be within quotes:

TYPE=DATA, COLUMN=N1,
     FOCEXEC=app/DDDRLPRC.fex(\
     REPORTTYPE='ORDERTYPE' \
     PROVNAME='&PHYSID' \
     BEG1=&BEGDATE \
     END1=&ENDDATE \
     PROVSTAT='&PROVSTAT' \
     PROVROLE='&PROVROLE' \
     ORDERTYPE=HSZC_ORDER_TYPE.NAME \
     PROCNAME=PROC_NAME \
     ),TARGET='_blank',$



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
May 18, 2010, 04:15 PM
ABT
Francis,
Quoting the variables did it. It's working just perfectly.

Thanks!
- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro