IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Invoking Javascript fun to change browser Title.
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  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
 
Reply With QuoteEdit or Delete MessageReport 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.
 
Reply With QuoteEdit or Delete MessageReport 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: 164 | Location: Madrid, Spain | Registered: May 09, 2003Reply With QuoteEdit or Delete MessageReport 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
 
Reply With QuoteEdit or Delete MessageReport 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.
 
Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Invoking Javascript fun to change browser Title.

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.