Focal Point
IBIC_user cookie and Maintain

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

September 14, 2006, 01:42 PM
K Mann
IBIC_user cookie and Maintain
I'm looking for a way to pass the &IBIC_user cookie value to a maintain application as an input parameter. Using self serve WF applications as a starting point.

WF 7.1.4


K Mann
WF 7.1.4 Win
September 14, 2006, 03:14 PM
Maintain Wizard
Kim
From inside a Maintain procedure, all you need to do to get the IBIC_user value is:

Compute User/A8 = IWC.GetAppCGIValue("IBIC_user");

Of course, your variable name and format may vary. You can get any WebFOCUS System variable, that is stored in the cookie, that way.

Mark Derwin
September 15, 2006, 10:20 AM
K Mann
Thanks, that worked.

Another question relating to launching a maintain app from a WF launch page (html).

I'm using this link:

**Test** Edit Submitted Forms )

Which works. When I exit the maintain using a
button click event:

Case OnButtonExit_Click
self.WinClose();
self.WinExit();
EndCase

I get a WF error mesasge when I try to go back to the maintain app:
(FOC03847) RESUME: Application previously closed (no context).

Is there a configuration issue on our reporting server or am I missing something in launching and exiting the maintain app?

Thanks.


K Mann
WF 7.1.4 Win
September 15, 2006, 11:11 AM
Maintain Wizard
This is due to a caching issue that can be fixed in two ways. The first is to add a time stamp to the HTML code:
var today = new Date();
and then add: + today.getTime();
to the end of your HTML.

Another way is to set “EXPIRE_REPORTS=1” in CGIVARS.WFS.

Mark Derwin
September 15, 2006, 03:00 PM
K Mann
Mark,

Thanks, that solved a part of my problem. I'm back at the launch page, start the maintain app again, maintain window opens at the last session. Have to refresh the page using browser refresh to get the maintain app to load with fresh data. I've closed and re-opened the browser, same effect. Is this a WF Server/Client issue where it is not releasing the maintain session?

Using IE 6.0
WF on win 2000


K Mann
WF 7.1.4 Win
September 18, 2006, 09:04 AM
Maintain Wizard
How are you exiting the Maintain application? Do you have an Exit button with either Self.WinExit() or Goto Exit, or are you just click on the X? It is always good to exit out of a Maintain application. Running the Maintain application with the Time Stamp should stop all caching. Make sure you are seeing the time stamp in the URL.

Mark
September 18, 2006, 10:34 AM
K Mann
Using an exit button with "self.WinExit();" on the button click event.
I'm not sure what you mean by running the maintain app with the time stamp?

This is the url for calling the maintain app:

webserver/ibi_apps/WFServlet?IBIF_cmd=MNTCON%20EX%20FSEForm%20IBIS_passthru=on&IBIS_connect=on&IBIAPP_app=form_scan_maintain%20maintain%20baseapp&IBIC_server=EDASERVE


K Mann
WF 7.1.4 Win
September 19, 2006, 10:11 AM
Maintain Wizard
In order to get around caching issues when we perform the Maintain procedure, we include a timestamp or random number. This ensures that the page is always displayed refreshed. Instead of using a URL, use the following code to launch the application:

  
<html>
<script language="JavaScript">
function Launch()
{
   randomNum = Math.random();
   sURL = "/ibi_apps/WFServlet?IBIF_cmd=MNTCON+EX+FSEForm&IBIS_passthru=on&IBIS_connect=on&IBIAPP_app=form_scan_maintain%20maintain%20baseapp&IBIC_server=EDASERVE&num=" + randomNum;
   window.open(sURL, "_self");

</script>

<form action="/ibi_apps/WFServlet" method="POST" name="starter">
<a href = "java_script:Launch[);" > Update Data</a>
</form>
</html>



Also, upon EXIT, if you want to return to your launch page, place the following line of code in the Maintain application:

compute document.referer = 'http://servername/approot/apppath/href.htm';

Where servername is the name of the server and apppath is the name of the application.

Mark

This message has been edited. Last edited by: Maintain Wizard,