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 have a very simple html page, main.htm. I am using HTML layout painter. I have a frame that contains a menu.htm page. When I open main.htm, the frame at first appears to be loading the menu.htm correctly but when the main.htm page has fully loaded, i only see the alt tags of the images in the frame.Same code in plain html(without webfocus request tags) works fine. Not sure what I am doing wrong here.
What I'm missing here is the javascript modules that come with the html painter and that take care of populating the various controls (like ibigbls.js). Did you take them out by any chance? Without these modules nothing will ever get populated or even executed.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Hi gamp, No, I didn't take out any js modules. I just created a fresh htm file and i don't see anything new.Can you post a sample of what you are referring to?
WF 7.1.1, WF Developer studio 7.1.1, Windows & Mainframe, HTML
The following example is generated using WebFOCUS DevStudio 762 (don't have any older version any more), but would be similar to what should have been generated in 711. In your example I miss the stuff that belongs in the HEAD section.
<!-- Generated by Report Layout Painter -->
<HTML>
<HEAD>
<SCRIPT id=IBI_OptionsScript type=text/javascript>
var rltVersion = "76";
var cgipath = "cgipath";
var ibirls = "ibirls2";
var rltdyncalendar = "rltdyncalendar";
var olap="olap";
var olappanebase="olappanebase";
var olapdrill="olapdrill";
var ibixmltree="ibixmltree";
var ibiOptions = new Array(cgipath,ibirls);
</SCRIPT>
<SCRIPT id=IBI_nls type=text/javascript src="/ibi_html/javaassist/nls.js"></SCRIPT>
<SCRIPT id=IBI_ibigbl type=text/javascript src="/ibi_html/javaassist/ibi/html/js/ibigbl.js"></SCRIPT>
<SCRIPT id=IBI_ibigblloadCss type=text/javascript>
ibigblloadCss(null);</SCRIPT>
<SCRIPT id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>
<TITLE>HtmlPage</TITLE>
<SCRIPT id=clientEventHandlersJS type=text/javascript>
//Begin function window_onload
function window_onload() {
UpdateData();
// TODO: Add your event handler code here
}
//End function window_onload
</SCRIPT>
<SCRIPT for=window eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>
</HEAD>
<BODY style="OVERFLOW: auto" edaconnectionrequired="true">
<IFRAME style="Z-INDEX: 1; POSITION: absolute; WIDTH: 670px; HEIGHT: 200px; TOP: 190px; LEFT: 60px"
id=iframe1 tabIndex=1 name=iframe1 requests_list="0" autoExecute="True"></IFRAME>
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=layoutinfo type=hidden>
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibiapp_app value="baseapp"
type=hidden name=ibiapp_app>
<xml id=ibi_requests>
<requests>
<request requestid="0" sourcetype="typeFex" targettype="0" targetname="iframe1" ibif_ex="something.fex"
ibic_server="" ibiapp_app="baseapp"></request></requests>
</xml></BODY></HTML>
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Hi, Strange! None of the htm files I have created using the HTML layout painter has the stuff in the head section that you have provided. I wonder why is that? Would that be something to do with an incorrect installation of webfocus? I don't see any JavaScript modules at all!
For now, i'll try to manually code it and see what happens.
Thanks!
quote:
Originally posted by GamP: The following example is generated using WebFOCUS DevStudio 762 (don't have any older version any more), but would be similar to what should have been generated in 711. In your example I miss the stuff that belongs in the HEAD section.
<!-- Generated by Report Layout Painter -->
<HTML>
<HEAD>
<SCRIPT id=IBI_OptionsScript type=text/javascript>
var rltVersion = "76";
var cgipath = "cgipath";
var ibirls = "ibirls2";
var rltdyncalendar = "rltdyncalendar";
var olap="olap";
var olappanebase="olappanebase";
var olapdrill="olapdrill";
var ibixmltree="ibixmltree";
var ibiOptions = new Array(cgipath,ibirls);
</SCRIPT>
<SCRIPT id=IBI_nls type=text/javascript src="/ibi_html/javaassist/nls.js"></SCRIPT>
<SCRIPT id=IBI_ibigbl type=text/javascript src="/ibi_html/javaassist/ibi/html/js/ibigbl.js"></SCRIPT>
<SCRIPT id=IBI_ibigblloadCss type=text/javascript>
ibigblloadCss(null);</SCRIPT>
<SCRIPT id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>
<TITLE>HtmlPage</TITLE>
<SCRIPT id=clientEventHandlersJS type=text/javascript>
//Begin function window_onload
function window_onload() {
UpdateData();
// TODO: Add your event handler code here
}
//End function window_onload
</SCRIPT>
<SCRIPT for=window eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>
</HEAD>
<BODY style="OVERFLOW: auto" edaconnectionrequired="true">
<IFRAME style="Z-INDEX: 1; POSITION: absolute; WIDTH: 670px; HEIGHT: 200px; TOP: 190px; LEFT: 60px"
id=iframe1 tabIndex=1 name=iframe1 requests_list="0" autoExecute="True"></IFRAME>
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=layoutinfo type=hidden>
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibiapp_app value="baseapp"
type=hidden name=ibiapp_app>
<xml id=ibi_requests>
<requests>
<request requestid="0" sourcetype="typeFex" targettype="0" targetname="iframe1" ibif_ex="something.fex"
ibic_server="" ibiapp_app="baseapp"></request></requests>
</xml></BODY></HTML>
Hope this helps ...
WF 7.1.1, WF Developer studio 7.1.1, Windows & Mainframe, HTML
The reason that you do not see the JavaScript code to which Gamp is refering is that you are viewing the HTML code via the RLP and not through the text editor (well that's the normal reason). Try closing the file and then using the editor to open view it and then see what code you have.
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
Tony, you are right. Those modules that gamp mentions are all there when i looked it up in text editor. Yet, my program doesn't work. I am unable to figure out why.
Here is a simple code. I have a 'test.htm' (also tried it with 'test.fex'using -HTMLFORM BEGIN) both of which simply say 'Hello' and nothing else. The Design view in HTML layout painter shows that the frame loads fine.I can see the contents in the frame but when i run the program it shows nothing. Also, When i use the exact same code in notepad and try to view it on the browser, it works fine. Appreciate your help!
<!-- Generated by Report Layout Painter -->
<HTML>
<HEAD>
<SCRIPT id=IBI_OptionsScript type=text/javascript>
var rltVersion = "714";
var cgipath = "cgipath";
var ibirls = "ibirls2";
var multidrill = "multidrill";
var mntFormValidate = "mntFormValidate";
var dyncalendar = "dyncalendar";
var olap="olap";
var olappanebase="olappanebase";
var ibixmltree="ibixmltree";
var ibilangtrans="ibilangtrans";
var olapdrill="olapdrill";
var ibiOptions = new Array(cgipath,ibirls,mntFormValidate,ibilangtrans,dyncalendar,olap,olappanebase,olapdrill,multidrill);
</SCRIPT>
<SCRIPT id=IBI_nls src="/ibi_html/javaassist/nls.js" type=text/javascript></SCRIPT>
<SCRIPT id=IBI_ibigbl src="/ibi_html/javaassist/ibi/html/js/ibigbl.js" type=text/javascript></SCRIPT>
<SCRIPT id=IBI_ibigblloadCss type=text/javascript>
ibigblloadCss(null);</SCRIPT>
<SCRIPT id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>
<SCRIPT id=clientEventHandlersJS type=text/javascript>
function window_onload() {
UpdateData();// TODO: Add your event handler code here
}
</SCRIPT>
<SCRIPT for=window eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>
</HEAD>
<BODY style="OVERFLOW: auto">
<IFRAME id=iframe1 style="Z-INDEX: 3; LEFT: 20px; WIDTH: 900px; POSITION: absolute; TOP: 10px; HEIGHT: 130px" tabIndex=3 name=iframe1 src="test.fex" frameBorder=no scrolling=no autoExecute="True" requests_list="3">>
</IFRAME>
<INPUT id=ibiapp_app style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value="SESSION baseapp" name=ibiapp_app>
</BODY>
</HTML>
WF 7.1.1, WF Developer studio 7.1.1, Windows & Mainframe, HTML
The only way I could make this work is to do some really crazy trickery ... I set RIGHTGAP=0 and had to add two D_DUMMY fields to the HEADING.
The 2nd D_DUMMY is needed to color the portion to the left of Section 1. But I needed to add the first D_DUMMY or it assumed the entire HEADING was navy, and the colored portion extended too far to the right, ignoring the width. If you comment out the first D_DUMMY in the HEADING, you will see why I mean.
I wish we had better control over the HEADING. We need it to span multiple columns.
First thing that strikes me as odd is that the src element has a value of test.fex and also that requests_list has a value. But, if I run this code as you provide it, I get the contents of my test.fex in the frame. This fex has to be in the same app directory as where the htm resides. When I add a request to be executed in the frame, it adds a bit of xml code to the page that will take care of running the request and storing the output in the frame. That also works fine for me. If I have both I see the source of my fex for as long as it takes the fex to produce results. What are you using to run the fex, WFServlet or ibiweb.exe? There may be difference - my cgi results in an invalid session cookie, while my servlet runs fine with this code.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007