Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [solved]&FOCSECUSER changes to public when drilling down using excel
Go
New
Search
Notify
Tools
Reply
  
[solved]&FOCSECUSER changes to public when drilling down using excel
 Login/Join
 
Silver Member
posted
If I display the user_id on the first report it shows the correct id, but if I drilldown using xlsx then it changes to public and it doesn't know what &&FOCEXURL is. If I run the report in pdf or html I have no issues.

here is the code I am using

-SET &IBIMR_user = &FOCSECUSER;
-SET &USR = LOCASE(&IBIMR_user.LENGTH, &IBIMR_user, 'A&IBIMR_user.LENGTH');
-SET &USR=RTRIM(&USR);
-IF &USR CONTAINS 'ldap' GOTO STRIPLDAP;
-GOTO STARTTBL
-STRIPLDAP
-SET &USRA = LOCASE(40, &USR, 'A40');
-SET &USRB= GETTOK(&USRA, 40, -1, '\', 40, 'A40') ;
-SET &USR=RTRIM(&USRB);
-STARTTBL
-SET &IBIMR_user = &USR;
SET FOCEXURL='&&FOCEXURL';
-RUN

this is in WebFocus 8105m

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


WebFOCUS 8105m
as well as 7.6.11
Windows 10
 
Posts: 33 | Registered: October 23, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
Are you still logged in when you drill from? xlsx ?

Is it in the same browser ?

Can you repro what you are doing with sample files like CAR


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6131 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Silver Member
posted Hide Post
Hi,
yes I am still logged in

I will attach the code from 2 files the first one is carinst.fex

-*-------------------------------------------------------------------
-DEFAULTS &COUNTRY='$*';
-RUN
-SET &OUTFMT ='XLSX';
-DEFAULTH &DIR_NAME = '';
-SET &IBIMR_user = &FOCSECUSER;
-SET &USR = LOCASE(&IBIMR_user.LENGTH, &IBIMR_user, 'A&IBIMR_user.LENGTH');
-SET &USR=RTRIM(&USR);
-IF &USR CONTAINS 'ldap' GOTO STRIPLDAP;
-GOTO STARTTBL
-STRIPLDAP
-SET &USRA = LOCASE(40, &USR, 'A40');
-SET &USRB= GETTOK(&USRA, 40, -1, '\', 40, 'A40') ;
-SET &USR=RTRIM(&USRB);
-STARTTBL
-SET &IBIMR_user = &USR;
SET FOCEXURL='&&FOCEXURL';
-RUN

TABLE FILE CAR
HEADING
"Sample Report"
"Run by &IBIMR_user"
PRINT CAR MODEL SEATS
BY COUNTRY
IF COUNTRY EQ '&COUNTRY'
ON TABLE PCHOLD FORMAT &OUTFMT
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=COUNTRY,COLOR=RED,STYLE=BOLD+ITALIC,$
TYPE=DATA,COLUMN=CAR,COLOR=CYAN,STYLE=BOLD,$
TYPE=DATA,COLUMN=MODEL,COLOR=PURPLE,STYLE=BOLD,WHEN=SEATS GT 4,
FOCEXEC=IBFS:/EDA/EDASERVE/ibisamp/carinst2.fex(MODEL=N3 OUTFMT='&OUTFMT' ),$
TYPE=DATA,COLUMN=SEATS,STYLE=BOLD,$
END

-********************************************************
the second file is carinst2.fex

-SET &ECHO=ALL;
-SET &IBIMR_user = &FOCSECUSER;
-SET &USR = LOCASE(&IBIMR_user.LENGTH, &IBIMR_user, 'A&IBIMR_user.LENGTH');
-SET &USR=RTRIM(&USR);
-IF &USR CONTAINS 'ldap' GOTO STRIPLDAP;
-GOTO STARTTBL
-STRIPLDAP
-SET &USRA = LOCASE(40, &USR, 'A40');
-SET &USRB= GETTOK(&USRA, 40, -1, '\', 40, 'A40') ;
-SET &USR=RTRIM(&USRB);
-STARTTBL
-SET &IBIMR_user = &USR;
SET FOCEXURL='&&FOCEXURL';
-RUN

TABLE FILE CAR
HEADING CENTER
"Sample Drilldown Report"
"Run by &IBIMR_user "
"for Car MODEL: PRINT COUNTRY CAR MODEL
IF MODEL EQ '&MODEL'
ON TABLE PCHOLD FORMAT &OUTFMT
END

-***************************************************

if I change the outfmt to be PDF it works and the id stays the same , but if I have OUTFMT = 'XLSX'
then the id changes to public and it can't pickup the value for "&&FOXEXURL


WebFOCUS 8105m
as well as 7.6.11
Windows 10
 
Posts: 33 | Registered: October 23, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
For me with the below points, all work in either PDF or Excel

1- When commenting out in both fex the below line (since it refer to a global variable which I don't know what it refer to)
SET FOCEXURL='&&FOCEXURL';

2- Having both fex saved in a Domain and not in server (EDASERVE)

3- Having the below in the Client - Custom Settings
<set> IBIMR_user (pass)


-* Fex 1
-*-DEFAULTH &COUNTRY='$*';
-RUN
-SET &OUTFMT ='XLSX';
-DEFAULTH &DIR_NAME = '';
-SET &IBIMR_user = &FOCSECUSER;
-SET &USR = LOCASE(&IBIMR_user.LENGTH, &IBIMR_user, 'A&IBIMR_user.LENGTH');
-SET &USR=RTRIM(&USR);
-IF &USR CONTAINS 'ldap' GOTO STRIPLDAP;
-GOTO STARTTBL
-STRIPLDAP
-SET &USRA = LOCASE(40, &USR, 'A40');
-SET &USRB= GETTOK(&USRA, 40, -1, '\', 40, 'A40') ;
-SET &USR=RTRIM(&USRB);
-STARTTBL
-SET &IBIMR_user = &USR;
-*SET FOCEXURL='&&FOCEXURL';
-RUN

TABLE FILE CAR
HEADING
"Sample Report"
"Run by &IBIMR_user"
PRINT CAR MODEL SEATS
BY COUNTRY
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE PCHOLD FORMAT &OUTFMT
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=COUNTRY,COLOR=RED,STYLE=BOLD+ITALIC,$
TYPE=DATA,COLUMN=CAR,COLOR=CYAN,STYLE=BOLD,$
TYPE=DATA,COLUMN=MODEL,COLOR=PURPLE,STYLE=BOLD,WHEN=SEATS GT 4,
-*FOCEXEC=IBFS:/EDA/EDASERVE/ibisamp/carinst2.fex(MODEL=N3 OUTFMT='&OUTFMT' ),$
FOCEXEC=IBFS:/WFC/Repository/IT/carinst2.fex(MODEL=N3 OUTFMT='&OUTFMT' ),$
TYPE=DATA,COLUMN=SEATS,STYLE=BOLD,$
END

-* Fex 2
-SET &ECHO=ALL;
-SET &IBIMR_user = &FOCSECUSER;
-SET &USR = LOCASE(&IBIMR_user.LENGTH, &IBIMR_user, 'A&IBIMR_user.LENGTH');
-SET &USR=RTRIM(&USR);
-IF &USR CONTAINS 'ldap' GOTO STRIPLDAP;
-GOTO STARTTBL
-STRIPLDAP
-SET &USRA = LOCASE(40, &USR, 'A40');
-SET &USRB= GETTOK(&USRA, 40, -1, '\', 40, 'A40') ;
-SET &USR=RTRIM(&USRB);
-STARTTBL
-SET &IBIMR_user = &USR;
-*SET FOCEXURL='&&FOCEXURL';
-RUN

TABLE FILE CAR 
BY COUNTRY
BY CAR
BY MODEL
HEADING CENTER 
"Sample Drilldown Report" 
"Run by &IBIMR_user " 
"for Car MODEL: PRINT COUNTRY CAR MODEL"
WHERE MODEL EQ '&MODEL';
ON TABLE PCHOLD FORMAT &OUTFMT 
END


WF versions : Prod 8.2.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2223 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Expert
posted Hide Post
Yes, is there a reason for the fexes to be on the reporting server ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6131 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Silver Member
posted Hide Post
the reason the fexes are on the reporting server is that is where I could access the CAR database.

When I comment out the line as you suggested I get the following error

WebFOCUS was called with an invalid request.


WebFOCUS 8105m
as well as 7.6.11
Windows 10
 
Posts: 33 | Registered: October 23, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
The car file will be accessible if you add ibisamp to the path or reference the master file with ibisamp/car.

Also the drilldown is going to generate a link that the may not as the link is from the perspective of the web client, and when it is executing the reporting server will not know what to do with it.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6131 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Silver Member
posted Hide Post
I don't believe the issue is with the code. I believe it is in the setup of my server. I can run the same code successfully in 2 other environments but not on the one that is intended to be production.

I don't know what setting to check to look for differences between the 3 environments.


WebFOCUS 8105m
as well as 7.6.11
Windows 10
 
Posts: 33 | Registered: October 23, 2007Reply With QuoteReport This Post
Silver Member
posted Hide Post
I found a difference in the configuration for Report Caster.
SMTP Password was blank in my soon to be production setting and it had a period in the QA environment.

thanks for looking into this for me.

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


WebFOCUS 8105m
as well as 7.6.11
Windows 10
 
Posts: 33 | Registered: October 23, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
Glad you spotted the issue.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6131 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [solved]&FOCSECUSER changes to public when drilling down using excel

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.