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 am using HTML layer painter in Developer Studio (version 716) to build a user interface, and want to show the user id on the HTML page. Is there a way to use javascript to get the user id? Thanks in advance for your help.
WebFOCUS 7.1.6 on Win 2K/IIS 6/ISAPI HTML
Posts: 77 | Location: San Ramon, CA | Registered: May 17, 2007
I don't think it can be done that way. I believe that the username is something that gets passed on by the webserver to the server, not to the client, and so it is not available to the javascript that runs on the client side. I think the only way to do this is to code it in such a way that the server is being polled to provide the username. In other words, create a html page that will do nothing but fire off a fex which will collect the username and send it back in a new html page to the client. Your webserver and application server will have to be secure to accomplish this.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Yep, that'll do it. Or php, or jsp or ... doesn't really matter as long as it comes from the server. And our good old fine html painter just can't cope with that.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
The HTML Painter can code with it. Here is a logical example:
Create an iframe, have it call a url to the fex,php,asp what every you want. the results should create some javascript the when loaded talks to the parent document setting the variable to the value you want. The iframe should be invisible so the user will not see it.
Hope this gives you an idea on how to accomplish it in the HTML Layout Painter.
Hi Tony, i did not know i could use asp in developer studio... could you tell me more about that? btw, did you go to the summit? are you from London? We might have met in summit.
WebFOCUS 7.1.6 on Win 2K/IIS 6/ISAPI HTML
Posts: 77 | Location: San Ramon, CA | Registered: May 17, 2007
I never said you could use ASP in Dev Studio, but what you wanted to achieve could be done in ASP. You read more than I wrote
You would have to write the ASP yourself and then reference it as per TS above, or you could create your HTML in the painter and then convert it to ASP, or you could ........ utilise so many other methods, you only have to know what you want and how to do it using that language.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
sorry i misinterrupted your meaning. You said "you could create your HTML in the painter and then convert it to ASP", I know how to create HTML in the painter in Dev Studio but don't know hwo to convert it to ASP. I have written ASP before so have some idea how that works. Could you kindly show that?
WebFOCUS 7.1.6 on Win 2K/IIS 6/ISAPI HTML
Posts: 77 | Location: San Ramon, CA | Registered: May 17, 2007