Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Executing an MRE fex from an external HTML page

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Executing an MRE fex from an external HTML page
 Login/Join
 
Platinum Member
posted
Can someone please advise on how I can Call a parameter driven MRE fex when a user clicks on a Java generated web page link ?


After searching around, I tried a couple of variations of IBI's code below to build a call string with all the necessary MRE variables like Domain/folder/fex/parms/userid/password, etc. But this is only taking me to a "you have to log-in to the server" credentials page. The call should authenticate behind the scenes and execute the fex without prompting the user.

   
 <html>
 <head>
 <script language="javascript">
 function runMRProcedure(domain,fex,folder)
 {
   var url  = "/ibi_apps/WFServlet?";
       url += "IBIMR_domain=" + domain;
       url += "&IBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT";
       url += "&IBIMR_fex=" + fex;
       url += "&IBIF_ex=" + fex;
       url += "&IBIMR_flags=&IBIMR_drill=RUNNID";
       url += "&IBIMR_folder=" + folder;
       url += "&IBIMR_user=USERID";
       url += "&IBIMR_pass=PASSW";
       url += "&IBIC_user=USERID";
       url += "&IBIC_pass=PASSW";
       url += "&IBIMR_random=" + Math.random();
       location.href = url;
 }
 </script>
 </head>
 <body>
 <a href="javascript:runMRProcedure('untitled/untitled.htm','app/fex1.fex',
 '#casesht5bmnc');">Run</a>
 </body>
 </html>


Thank you all in advance.

Sandeep Mamidenna

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


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
It might be easier to take your existing MR procedure, publish it, and add the &IBIC_user=USERID
&IBIC_pass=PASSW

following to the HTML and see if that makes it easier.
 
Posts: 140 | Registered: May 02, 2007Report This Post
Expert
posted Hide Post
FortuneCookie is right, the best way is to publish, and use the page to submit, you can them post the form and protect the values of the submission from being seen.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
The trick in the URL format above, is to have the log-in parameters towards the front of the list. This works -

  
<html> <head>
 <script language="javascript">
 function runMRProcedure()
 {
   var url  = "http://(your-server)/ibi_apps/WFServlet?";
	   url += "&IBIC_user=USERXX";
	   url += "&IBIC_pass=PWXXX";
       url += "&IBIMR_random=" + Math.random();
	   url += "&VAR1=AAAA";
	   url += "&VAR2=BBBBBB";
	   url += "&VAR3=ccc";
       url += "&IBIMR_domain=dmnnme/dmnnme.htm";
       url += "&IBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT";
       url += "&IBIMR_fex=app/fexname.fex";
       url += "&IBIF_ex=app/fexname.fex";
       url += "&IBIMR_flags=&IBIMR_drill=RUNNID";
       url += "&IBIMR_folder=#foldername";
	   alert(url);
       location.href = url;
 }
 </script>
 </head>
 <body>
   <a href="javascript:runMRProcedure();">
  Run</a>
 </body> </html>



-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
BlueZone, are you sure you want to make an open call, the user id and password will be visible and be in your browsers history.

A published report does not need a user id and password to run, I beleive this is a far safer way to run the report, all you have to do is call the html page and have it run the report.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
BLUE, when everyone says 'publish', doyou know what they mean?
there is a way to create a launch page other than via devstu.
in mre, click right on your fex, and select PUBLISH. you get an html launch page.
edit that page, heavily, taking out tons of gibberish, and look at the bottom...there are all the tags needed for a FORM ACTION. an acceptable uid and pw can be passed as hidden tags.
If launched from an IIS launch location, outside of mre, many of the input parameters listed in that form aren't needed.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
Thank you for your extended suggestions Waz & Susannah. I would sure prefer to have the id/pw being hidden from the page.

I have never tried the 'Publish' before. But will try now and see how I can make it work in our situation.


Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Executing an MRE fex from an external HTML page

Copyright © 1996-2020 Information Builders