Focal Point
[CLOSED] Dashboard Login Message & Client Site Profile

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

October 13, 2009, 11:56 AM
Rick Man
[CLOSED] Dashboard Login Message & Client Site Profile
In the Webconsole, workspace configuation, general tab there is a place for a login message. However when I add that it appears to only apply to when logging into the webconsole, maybe the admin console too. What I want is a message during the BI Dashboard login, that asks if the user is running a report in production or in test and then run a fex that would set the APP PATH to point to the test application if they selected test. I do not have a sperate test server to point to.
Any ideas on how to accomplish this would be appreciated.

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


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
October 13, 2009, 03:33 PM
Waz
We have a similar setup. Dev, and multiple testing servers.

We have a custom login page that sets a cookie with the selected path.

The cookie value can then be passed to the fex.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 14, 2009, 11:20 AM
Rick Man
Hmmm. Here is what I was hoping for:
Create a login URL to point to a different directory that would contain whatever files necessary to set the APP PATH TEST; like a different EDASPROF, but the user is none the wiser and still runs their reports 'as normal'. The only difference is that the MFDs are coming from the TEST app.


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
October 14, 2009, 11:29 AM
Francis Mariani
I was hoping that this was as easy as adding a hidden input form object to a custom login page which would be passed as a Dialogue manager variable that could be detected by a fex that sets the APP PATH, but I haven't been able to make it work - the form object does not get passed with a Dashboard login. As Waz suggests, yYou could easily set a cookie with the dev/prod value and that could be passed as a variable.


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
October 14, 2009, 11:37 AM
Rick Man
I hear you, but I'm looking at 300+ reports at least, that owuld need to have the DM code put in, at a minumum a -INCLUDE . I guess the ideal is to have a separate test instance.


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
October 14, 2009, 12:14 PM
Francis Mariani
You could put the include in site.wfs or edasprof.prf, writing it in such a way that it would only affect programs run via Dashboard - default the variable to blank - if it's blank go to exit else do the APP PATH command. Adding it to site.wfs or edasprof.prf would mean no changes to the fexes.


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
October 14, 2009, 04:38 PM
Waz
We have a generic fex that is run than preps the environment, it then calls the appropriate fex after setting the APP PATH, and DB connection.

A single point of change.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 14, 2009, 04:48 PM
Francis Mariani
Funnily enough, an EX pgm-name I put in EDASPROF.PRF just doesn't execute - I don't know what's going on Frowner


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
October 14, 2009, 05:20 PM
Waz
What happens in the EDASPROF isn't what you would expect. Thing happen very early in the execution sequence. I think this was explained in the forum somewhere.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 16, 2009, 09:58 AM
Rick Man
Thanks for the responses. My problem is I have been given the admin responsibilty but don't know my way around very much. Could I impose on you to give me a little more direction. When I login into MRE the URL is //.../bid-login?
I am assuming that is the login page I need to add a radio button/check box/drop down list to indicate whether this is a test or prod run. Then I would pass that data in a variable to a fex that would run in site.wfs to set the APP PATH. If you could help fill in the blanks; i.e. code, I need to accomplish I would appreciate it.
I'll even read documentation if it is specific enough. I've looked at the MRE Admin and Security admin manuals but it is not clicking. Thanks


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
October 19, 2009, 08:11 AM
dlogan
Rick Man,
I think they're talking about doing the following:

1) Modifying the login page for Dashboard to pass another variable (E.G. ENV=PROD or ENV=DEV)
\ibi\WebFOCUS76\webapps\webfocus76\worp\jsp\WORP_Login.jsp

2) Add something like the following under:
WF Admin Console -> Configuration -> Custom Settings

<IF> ENV.upper EQ "PROD"
_site_profile=&_site_profile\n-INCLUDE PRODFEXNAME
<ELSE>
_site_profile=&_site_profile\n-INCLUDE DEVFEXNAME
<ENDIF>


Alternately, you could do an IF statement for each environment if you wish.

Since the ENV variable is going to be set on logon, it should be stored in WF_USER and therefore be available for all requests. However, if you wanted to be extra sure the value stuck around, you could put something like this in there as well:

<IFDEF> ENV
httpsession=_ENV
<call> CopyWFVarToSessionVar(ENV,httpsession)
<ELSE>
wfvar=ENV
httpsession=_ENV
<call> CopySessionVarToWFVar(httpsession,wfvar)
<endif>



WF 71.x, 76.x, 7701, 8.0 Beta OS: Linux, Win2k3, Win2k, Win2k8, WinXP


October 20, 2009, 04:44 PM
Rick Man
Thanks. I'll look into it.


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
October 21, 2009, 09:16 AM
Francis Mariani
I have to say that, even though stuff like CopyWFVarToSessionVar is documented, the documentation does not describe any practical uses for it - we need an Information Builders Security expert to let us in on the secrets...


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
October 21, 2009, 09:41 AM
GinnyJakes
You are correct, Francis. A practical example: We use it in a special client profile to save and restore credential variables so that drill downs work for our special security scheme. This was set up by IBI Consulting.


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
October 21, 2009, 09:50 AM
dlogan
Francis,
I ran a lab at Summit on WFServlet Scripting where I used quite a few examples on how to use this stuff. All the examples in the labs were based on real implementations that I helped customers with in different cases when they called Techsupport.
I believe the labs are out there somewhere, I'll see if I can track down where they ended up. If not, I could always e-mail you a copy if you wanted.
There is a lot of cool stuff you can do with WFServlet scripting with a little bit of imagination. Since all of the WFS scripting commands are now documented in the Security and Administration manual, its pretty powerful (Prior to Summit, the Copy***** routines were documented, but a lot of the other commands were not).

Thanks,
Doug Logan


WF 71.x, 76.x, 7701, 8.0 Beta OS: Linux, Win2k3, Win2k, Win2k8, WinXP


October 21, 2009, 10:16 AM
Francis Mariani
I love documentation and would appreciate receiving a copy of the labs if you can track them down.

Thank you,


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
October 21, 2009, 10:43 AM
dlogan
Ok, here are the 2009 labs

The lab I put together is:
"WebFOCUS Core From the Inside Out: Use Scripting to Customize Your Environment"

And the presentation is here .

Thanks,
Doug Logan


WF 71.x, 76.x, 7701, 8.0 Beta OS: Linux, Win2k3, Win2k, Win2k8, WinXP


July 31, 2012, 10:20 AM
vaayu
Doug,

Looks like its redirecting to the summit default page. Do you by chance have it stored else where?

We are trying to find a way to put a custom header on the WORP_Login.jsp page. I am able to put some static html txt but, would like to put a dynamic variable pulled from a table. Its more like "Message of the day" after you login but only dynamic and before login.

Gurus, Please help!!


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
July 31, 2012, 11:16 AM
Francis Mariani
Here's a good question for Kerry - how does one get access to presentations from prior summits?

Also, because I "not currently registered for any events" in the 2012 summit, I cannot see any presentations.

When the presentation itself has information that is not available in the documentation, in my opinion it ought to be made public.

Thanks,


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
November 02, 2012, 06:51 PM
kmarshba
I'll second Francis' statement regarding access to former presentations, etc.


Server: 8009; Client: 8009 Refresh; OS: Windows Server 2008 R2 64-bit; Web Server: Tomcat; Output Formats: All