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     Invoking Javascript fun to change browser Title.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Invoking Javascript fun to change browser Title.
 Login/Join
 
<Vipul>
posted
Help Pls.

I have a combined fex for six different but very similar reports. I need to display Title for the browser specific to the report invoked. I wrote a javascript function in my HTMLFORM wherein I am assigning the title passed to the function to document.title. But my problem is from where to call this function so that it is invoked the moment the report is run.


Thanks,

Vipul
 
Report This Post
<Vipul>
posted
I figured it out. I embedded javascript in a defined field and used it to set the title depending upon the report executed.
 
Report This Post
Platinum Member
posted Hide Post
Try also these examples:

Example 1:

HTMLFORM BEGIN
<script type="text/javascript">
document.title = 'My title' ;

-HTMLFORM END
Example 2:

-SET &TITLE = 'my title';
-HTMLFORM BEGIN
<script type="text/javascript">
document.title = '!IBI.AMP.TITLE;' ;

-HTMLFORM END

Example 3

SET &TITLE = 'my title';
-HTMLFORM BEGIN


!IBI.AMP.TITLE;
-HTMLFORM END

But, still, I think it's better to solve your case html title post ensuring you are using HTMTABLE (without L) instead of HTMLTABLE.

Regards,
Mikel

This message has been edited. Last edited by: <Mabel>,
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
<Vipul>
posted
Thanks Mike, thanks for the help I feel like a rookie in front of all you guys. There is so much to learn.... Smiler

Vipul
 
Report This Post
<Kyle>
posted
Try using the TITLETEXT option that was introduced in 5.2. See below:

TABLE FILE CAR
SUM RCOST
BY COUNTRY
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Car Report for &DATE', $
ENDSTYLE
END

This also translates to the worksheet name in EXL2K format.
 
Report 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     Invoking Javascript fun to change browser Title.

Copyright © 1996-2020 Information Builders