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.
I'd like to automate some jobs that requires some jsp coding. Is there a way to retrieve the MRE user ID (&IBIMR_User in webfocus) in JSP?
I know I can pass it through a form or URL from a webfocus page, but that doesn't seem secure enough. Is there a server variable (Tomcat) that can do this?
Thanks.This message has been edited. Last edited by: bug,
7.66 and 7.704 System: Windows / AIX / Linux Output: Mostly HTML, with some PDF, Excel and Lotus(!)
Posts: 147 | Location: Toronto (GTA) | Registered: May 25, 2005
So, there's no JavaScript way of retrieving a value from the encrypted MRE cookie?
You have to write and compile a Java program?
I have a case open with Tech Support. They claim
quote:
IBIMR_user is one of the values in the MR cookie. It is not really encrypted. It is encoded in base64 and there are functions you can call to decode it from Javascipt
Well, I tried several JavaScript functions found on the web and none of them decrypt the MR cookie string to something recognizable.
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
Originally posted by Francis Mariani: So, there's no JavaScript way of retrieving a value from the encrypted MRE cookie?
You have to write and compile a Java program?
I have a case open with Tech Support. They claim
quote:
IBIMR_user is one of the values in the MR cookie. It is not really encrypted. It is encoded in base64 and there are functions you can call to decode it from Javascipt
Well, I tried several JavaScript functions found on the web and none of them decrypt the MR cookie string to something recognizable.
Francis, I opened a case back in 2012 too. But the kid answered my case was not aware that they had such a java library at all.
Anyway I abandoned the case after a few helpless calls. Then a few months later I found this code buried in some old reports:
-SET &UID=EDIT(GETUSER(USERID),'9999999$$$$$');
It worked for me. Hope this helps...
7.66 and 7.704 System: Windows / AIX / Linux Output: Mostly HTML, with some PDF, Excel and Lotus(!)
Posts: 147 | Location: Toronto (GTA) | Registered: May 25, 2005
dhagen, what about in an HTML file? It appears I cannot use JavaScript to decrypt the cookie value - I get different results from three different base 64 decryption functions...
bug, I can't use -SET &UID=EDIT(GETUSER(USERID),'9999999$$$$$'); - I have an HTML file, not a fex.
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
Francis, you may have to use xmlhttp functionality to call a fex and get the user from the HTML page. You could have it as part of the onload event of th page.
Originally posted by Francis Mariani: dhagen, what about in an HTML file? It appears I cannot use JavaScript to decrypt the cookie value - I get different results from three different base 64 decryption functions...
bug, I can't use -SET &UID=EDIT(GETUSER(USERID),'9999999$$$$$'); - I have an HTML file, not a fex.
The decrypt is implemented in the web app, and cannot be extended to JS. You would have to do what Waz suggested.
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
1) The JS solution is what IBI Tech Support suggested I use 2) I don't want to add another fex to an HTML Composer web page - it performs poorly in our cluster environment - nine different fexes to populate controls seems to choke the cluster server
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