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]wf8- getting the parent html background color

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]wf8- getting the parent html background color
 Login/Join
 
Guru
posted
I have a wf8 composer html form calling another composer html page and putting it into a frame. When I create both of them in dev studio, they are using the default background color. When the first composer form is ran in the portal, the background color is the theme color. When it calls the second composer html page, it uses the default dev studio color instead of the theme color. This also happens when you call a new composer html page and you open a new window. The theme color is not used in the new window.

How do I get the parent html page color so that I can pass it to the child page?

This message has been edited. Last edited by: Jay Potter,


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Member
posted Hide Post
Check the status of "Dynamic Report Styling" in the Portal Designer. If it is selected it will override colors established in the HTML Composer with those established in the applied Portal Stylesheet.


Robert Bright

Owner, Sr. Business Intelligence Consultant
Bright Ideas Consulting
brightideasbiconsulting@gmail.com
513.265.7235
 
Posts: 14 | Location: Greenwood, IN | Registered: June 27, 2006Report This Post
Guru
posted Hide Post
Thanks for trying!

That is already checked. It seems to work th e parent forms but not for the children of the parent form


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Member
posted Hide Post
You could add the following to the second composer page to the window_onload function.

   var heads = document.getElementsByTagName('head');
   var styleArray = parent.document.getElementsByTagName('style');
	var linkArray = parent.document.getElementsByTagName('link');
   for(var i=0; i<heads.length; i++) {
     for(var j=0; j<styleArray.length; j++)
	    heads[i].appendChild(styleArray[j].cloneNode(true));
     for(var j=0; j<linkArray.length; j++)
       heads[i].appendChild(linkArray[j].cloneNode(true));
   }


WebFOCUS 8.1.04; SQL Server 2012; Windows 7; Windows Server 2012 R2;
 
Posts: 26 | Registered: November 21, 2005Report This Post
Guru
posted Hide Post
That worked!!!! You just made my morning.

Thank You


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report 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]wf8- getting the parent html background color

Copyright © 1996-2020 Information Builders