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] Images not displaying at runtime

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Images not displaying at runtime
 Login/Join
 
Guru
posted
Hello all,

When I put an image in my html file in Composer, I can see it. When I run the file, the image no longer appears.

Where would the configuration settings be so that I can show images that are in the same app directory?

This message has been edited. Last edited by: J,


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
Expert
posted Hide Post
there shouldn't be an issue. your images are in the same app dir as the fex?
put an image in the ibisamp directory and write something using the car file.
then put your code in here. we'll look.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Guru
posted Hide Post
Ok, I created a new html page in ibisamp using a simple car report and an image already in ibisamp. The image shows up in the html composer tool. When I go to run the page, the report runs fine. The image does not show up. Here is the code:
 <HTML>
<HEAD>
<META id=mycharsetmeta content="text/html; charset=ISO-8859-1" http-equiv=Content-Type>
<META id=Generation content="Created in release 7703, Generation 3.0">
<SCRIPT id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>

<SCRIPT id=IBI_OptionsScript type=text/javascript>
var cgipath = "cgipath";
var ibirls = "ibirls3";

var rltdyncalendar = "rltdyncalendar";
var gmap = "ibigmap";
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_nlsVars type=text/javascript src="/ibi_html/javaassist/nlsvars.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);
addIntlTranslatedJS("composertrans.js");
</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
//add onInitialUpdate() function to make changes before initial run of the reports
}
//End function window_onload
</SCRIPT>

<SCRIPT for=window type=text/javascript eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>
</HEAD>
<BODY style="OVERFLOW: auto" thumbnailscale="4" elementtype="21" edaconnectionrequired="true">
<IMG style="Z-INDEX: 1; POSITION: absolute; TOP: 30px; LEFT: 70px" id=image1 tabIndex=1 border=0 originalHeight="755" originalWidth="1031" rtFileName="smpbkg1.jpg" name="image1"> 
<IFRAME style="Z-INDEX: 2; POSITION: absolute; WIDTH: 710px; HEIGHT: 130px; TOP: 790px; LEFT: 60px" id=report1 tabIndex=2 src="" elementtype="2" requests_list="0" autoExecute="True" name="report1"></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=ibisamp type=hidden name="ibiapp_app">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibic_server value=EDASERVE type=hidden isdataserversarea="1" name="ibic_server">
<xml id=focus_xmlelement>
<script type="text/xml">
	
<rootxmlnode focoption="_FOC_NULL">
		
<variables></variables>
		
<input_controls></input_controls>
		
<other_bound_objects></other_bound_objects>
		
<requests nextrequestsid="0">
			
<request requestid="0" targetname="report1" ibif_ex="report1" targettype="iframe" sourcetype="typeAdhocfex" activereport="0" compoundreport="0">
				
<![CDATA[-*focexectool
TABLE FILE CAR
PRINT 
     CAR.ORIGIN.COUNTRY
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
ENDSTYLE
END]]></request></requests></rootxmlnode></script>
</xml></BODY>
<SCRIPT id=IBI_loader type=text/javascript>
doBeforeLoad();
</SCRIPT>
</HTML> 


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
Expert
posted Hide Post
I'm not in 77 but from what i see, there is no image in your report.
there is a reference to an image in the launch page
at line 55 you have rtFileName="smpbkg1.jpg"
is that the image you are looking for?
if so, i'ld suggest putting an app reference in there, so your browser can find it.
/approot/ibisamp/smpbkg1.jpg;
but again, i'm not in 77.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Guru
posted Hide Post
Thank you susannah. I could put that reference in, but this was not a problem before.

I changed the file a bit and put in the user format for the report that automatically shows 8 different display outputs. Before this error started occuring, I didn't have to put in any app references and the supplied pictures for each of the outputs (excel, pdf, etc.) aren't showing up. I think some kind of setting changed between before and now and I'm not sure where to look. Here is the new code:
  
<HTML>
<HEAD>
<META id=mycharsetmeta content="text/html; charset=ISO-8859-1" http-equiv=Content-Type>
<META id=Generation content="Created in release 7703, Generation 3.0">
<SCRIPT id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>

<SCRIPT id=IBI_OptionsScript type=text/javascript>
var cgipath = "cgipath";
var ibirls = "ibirls3";

var rltdyncalendar = "rltdyncalendar";
var gmap = "ibigmap";
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_nlsVars type=text/javascript src="/ibi_html/javaassist/nlsvars.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);
addIntlTranslatedJS("composertrans.js");
</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
//add onInitialUpdate() function to make changes before initial run of the reports
}
//End function window_onload
</SCRIPT>

<SCRIPT for=window type=text/javascript eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>
</HEAD>
<BODY style="OVERFLOW: auto" nextelementuniquenumber="1" thumbnailscale="4" elementtype="21" edaconnectionrequired="true">
<IMG style="Z-INDEX: 1; POSITION: absolute; TOP: 30px; LEFT: 80px" id=image1 tabIndex=1 border=0 originalHeight="58" originalWidth="189" rtFileName="smplogo1.gif" name="image1"> 
<IFRAME style="Z-INDEX: 2; POSITION: absolute; WIDTH: 380px; HEIGHT: 80px; TOP: 306px; LEFT: 80px" id=report1 tabIndex=2 src="" elementtype="2" requests_list="0" autoExecute="false" name="report1"></IFRAME>
<FORM style="Z-INDEX: 3; POSITION: absolute; WIDTH: 566px; HEIGHT: 216px; TOP: 90px; LEFT: 80px" id=form1 onsubmit="OnExecute(this);return false;" method=post requests_list="0" tempheight="216" tempwidth="566" fexlist_list="report1" form_newline_chain="1" default_slider_type="4" form_type="1" form_prompt_location="1" form_number_of_visible_rows="4" form_number_of_columns="4" vert_dist_between_controls="10" form_hor_dist_between_controls="10" form_dist_between_desc_and_input="10" name="form1">
<LABEL style="Z-INDEX: 6; POSITION: absolute; WIDTH: 188px; HEIGHT: 19px; CURSOR: default; TOP: 5px; LEFT: 5px" id=label1 tabIndex=5 for=radio1 name>Select type of display output</LABEL> 
<SPAN style="Z-INDEX: 7; POSITION: absolute; OVERFLOW-Y: visible; WIDTH: 529px; HEIGHT: 128px; OVERFLOW: visible; TOP: 34px; LEFT: 5px" id=radio1 tabIndex=6 contentEditable=false elementtype="12" defaultlocation="0,0,128,509" boundtovariable="1" requiredfield="1" groupChildren="1" persistentuniqueid="compUid_1" columns="2">
<TABLE style="WIDTH: 100%; HEIGHT: 100%" contentEditable=false cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD>
<IMG id=image9 border=0 alt=format_browser_32.png rtFileName="cgipathsub/dhtml/images/qb/format_browser_32.png" UserSuppliedFullPath="1" name="image9"></TD>
<TD noWrap>
<LABEL style="CURSOR: default" id=radio1_LABEL_0 for=radio1_0>
<INPUT id=radio1_0 tabIndex=6 value=HTML CHECKED type=radio noinput="0" displaytext="<format_browser_32.png>HTML" name="radio1">HTML</LABEL></TD>
<TD>     </TD>
<TD>
<IMG id=image10 border=0 alt=format_pdf_32.png rtFileName="cgipathsub/dhtml/images/qb/format_pdf_32.png" UserSuppliedFullPath="1" name="image10"></TD>
<TD noWrap>
<LABEL style="CURSOR: default" id=radio1_LABEL_1 for=radio1_1>
<INPUT id=radio1_1 tabIndex=6 value=PDF type=radio noinput="0" displaytext="<format_pdf_32.png>PDF" name="radio1">PDF</LABEL></TD></TR>
<TR>
<TD>
<IMG id=image11 border=0 alt=format_excel_32.png rtFileName="cgipathsub/dhtml/images/qb/format_excel_32.png" UserSuppliedFullPath="1" name="image11"></TD>
<TD noWrap>
<LABEL style="CURSOR: default" id=radio1_LABEL_2 for=radio1_2>
<INPUT id=radio1_2 tabIndex=6 value=EXL2K type=radio noinput="0" displaytext="<format_excel_32.png>Excel 2000" name="radio1">Excel 2000</LABEL></TD>
<TD>     </TD>
<TD>
<IMG id=image12 border=0 alt=format_excel_32.png rtFileName="cgipathsub/dhtml/images/qb/format_excel_32.png" UserSuppliedFullPath="1" name="image12"></TD>
<TD noWrap>
<LABEL style="CURSOR: default" id=radio1_LABEL_3 for=radio1_3>
<INPUT id=radio1_3 tabIndex=6 value="EXL2K FORMULA" type=radio noinput="0" displaytext="<format_excel_32.png>Excel Formula" name="radio1">Excel Formula</LABEL></TD></TR>
<TR>
<TD>
<IMG id=image13 border=0 alt=active_reports_32.png rtFileName="cgipathsub/dhtml/images/qb/active_reports_32.png" UserSuppliedFullPath="1" name="image13"></TD>
<TD noWrap>
<LABEL style="CURSOR: default" id=radio1_LABEL_4 for=radio1_4>
<INPUT id=radio1_4 tabIndex=6 value=AHTML type=radio noinput="0" displaytext="<active_reports_32.png>HTML Active Report" name="radio1">HTML Active Report</LABEL></TD>
<TD>     </TD>
<TD>
<IMG id=image14 border=0 alt=format_flex_32.png rtFileName="cgipathsub/dhtml/images/qb/format_flex_32.png" UserSuppliedFullPath="1" name="image14"></TD>
<TD noWrap>
<LABEL style="CURSOR: default" id=radio1_LABEL_5 for=radio1_5>
<INPUT id=radio1_5 tabIndex=6 value=FLEX type=radio noinput="0" displaytext="<format_flex_32.png>Active Report for Adobe Flash Player" name="radio1">Active Report for Adobe Flash Player</LABEL></TD></TR>
<TR>
<TD>
<IMG id=image15 border=0 alt=embed_flexinpdf_32.png rtFileName="cgipathsub/dhtml/images/qb/embed_flexinpdf_32.png" UserSuppliedFullPath="1" name="image15"></TD>
<TD noWrap>
<LABEL style="CURSOR: default" id=radio1_LABEL_6 for=radio1_6>
<INPUT id=radio1_6 tabIndex=6 value=APDF type=radio noinput="0" displaytext="<embed_flexinpdf_32.png>Active Report for PDF" name="radio1">Active Report for PDF</LABEL></TD>
<TD>     </TD>
<TD>
<IMG id=image16 border=0 alt=format_ppt_32.png rtFileName="cgipathsub/dhtml/images/qb/format_ppt_32.png" UserSuppliedFullPath="1" name="image16"></TD>
<TD noWrap>
<LABEL style="CURSOR: default" id=radio1_LABEL_7 for=radio1_7>
<INPUT id=radio1_7 tabIndex=6 value=PPT type=radio noinput="0" displaytext="<format_ppt_32.png>PowerPoint" name="radio1">PowerPoint</LABEL></TD></TR></TBODY></TABLE></SPAN>
<INPUT style="Z-INDEX: 4; POSITION: absolute; BACKGROUND-COLOR: lavender; WIDTH: 38px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 22px; TOP: 189px; LEFT: 5px" id=form1Submit tabIndex=3 value=" " type=submit StyleBack_rtFileName="htmlpathsub/javaassist/ibi/html/describe/run16.gif" name="submit1"> 
<INPUT style="Z-INDEX: 5; POSITION: absolute; BACKGROUND-COLOR: lavender; WIDTH: 38px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 22px; TOP: 189px; LEFT: 48px" id=form1Reset tabIndex=4 value=" " type=reset StyleBack_rtFileName="htmlpathsub/javaassist/ibi/html/describe/reset.gif" name="reset1"></FORM>   
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=layoutinfo type=hidden resourcectrlids="image9;image10;image11;image12;image13;image14;image15;image16">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibiapp_app value=ibisamp type=hidden name="ibiapp_app">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibic_server value=EDASERVE type=hidden isdataserversarea="1" name="ibic_server">
<xml id=focus_xmlelement>
<script type="text/xml">
	
<rootxmlnode focoption="_FOC_NULL">
		
<variables>
			
<variable controltype="12" parametercreatedinreslay="0" type="unresolved" desc="Select type of display output" name="WFFMT" default="" textvarname="" accept="0" select="0" create="1">
				
<link linktype="default" from="compUid_1">
					
<condition default="1" name="Default" whattodowithcontrol="4" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info checkForDuplicateValues="0" displayfield="WFFMT" datafield="WFFMT" datasource="car.mas" datatype="0" selectedvalue="" operation="" slider_range_from="" slider_range_to="" previewvalue="HTML" sourcetype="typeMaster">
							
<static_values>
								
<static value="HTML" display="HTML" selected="1" noinput="0"></static>
								
<static value="PDF" display="PDF" selected="0" noinput="0"></static>
								
<static value="EXL2K" display="Excel 2000" selected="0" noinput="0"></static>
								
<static value="EXL2K FORMULA" display="Excel Formula" selected="0" noinput="0"></static>
								
<static value="AHTML" display="HTML Active Report" selected="0" noinput="0"></static>
								
<static value="FLEX" display="Active Report for Adobe Flash Player" selected="0" noinput="0"></static>
								
<static value="APDF" display="Active Report for PDF" selected="0" noinput="0"></static>
								
<static value="PPT" display="PowerPoint" selected="0" noinput="0"></static></static_values></data_info></condition></link>
				
<requestid id="0"></requestid></variable></variables>
		
<input_controls>
			
<input_control bindcontrolid="compUid_1" elementtype="12" name="radio1" id="radio1" multiple="0" onetimepopulated="1">
				
<link linktype="default">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info checkForDuplicateValues="0" datatype="0" datasource="car.mas" addalloption="0" sourcetype="typeMaster" cacheruntimedata="0" accept="0" operation="NONE" useimagevalue="1">
							
<static_values>
								
<static value="HTML" display="<format_browser_32.png>HTML" selected="1" noinput="0"></static>
								
<static value="PDF" display="<format_pdf_32.png>PDF" selected="0" noinput="0"></static>
								
<static value="EXL2K" display="<format_excel_32.png>Excel 2000" selected="0" noinput="0"></static>
								
<static value="EXL2K FORMULA" display="<format_excel_32.png>Excel Formula" selected="0" noinput="0"></static>
								
<static value="AHTML" display="<active_reports_32.png>HTML Active Report" selected="0" noinput="0"></static>
								
<static value="FLEX" display="<format_flex_32.png>Active Report for Adobe Flash Player" selected="0" noinput="0"></static>
								
<static value="APDF" display="<embed_flexinpdf_32.png>Active Report for PDF" selected="0" noinput="0"></static>
								
<static value="PPT" display="<format_ppt_32.png>PowerPoint" selected="0" noinput="0"></static></static_values></data_info></condition></link></input_control></input_controls>
		
<other_bound_objects></other_bound_objects>
		
<requests nextrequestsid="0">
			
<request requestid="0" targetname="report1" ibif_ex="report1" targettype="iframe" sourcetype="typeAdhocfex" activereport="0" compoundreport="0" reportcolumns="" reportrealcolumns="" ibiapp_app="">
				
<![CDATA[-*focexectool
TABLE FILE CAR
PRINT 
     CAR.ORIGIN.COUNTRY
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &WFFMT.(<HTML,HTML>,<PDF,PDF>,<Excel 2000,EXL2K>,<Excel Formula,EXL2K FORMULA>,<HTML Active Report,AHTML>,<Active Report for Adobe Flash Player,FLEX>,<Active Report for PDF,APDF>,<PowerPoint,PPT>).Select type of display output.
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
ENDSTYLE
END]]></request></requests></rootxmlnode></script>
</xml></BODY>
<SCRIPT id=IBI_loader type=text/javascript>
doBeforeLoad();
</SCRIPT>
</HTML>


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
Guru
posted Hide Post
FYI This is a global problem that affects another user and an administrative account in both production and development servers.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
Expert
posted Hide Post
so, does it work now?
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Guru
posted Hide Post
Sorry... it still doesn't work. But like I said, it worked before without putting in any approot statements in it. I will put it in and see what happens.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
Guru
posted Hide Post
In the HTML, I put the full path (right click image, copy and paste properties path, add image name at end) and it still didn't work. I'm at a lost.

If I am adding the full path, should it go in that rtFileName attribute, a src attribute, or something else. Thanks for the help.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report This Post
Guru
posted Hide Post
I think I figured out the problem. I installed HF5 for Dev Studio and later uninstalled it. I am having some of the same issues I was having then. It must have been an improper uninstall, I will confirm later. Sorry for the bother and thanks for the help


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report 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] Images not displaying at runtime

Copyright © 1996-2020 Information Builders