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     [CLOSED] HTML composer handling errors

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] HTML composer handling errors
 Login/Join
 
Member
posted
Hi,

I am attempting to create a few pages using HTML composer and I am trying to figure out how to handle error cases.
From time to time a session can become invalid (timeout or they have bookmarked a link and attempted to use it without going through single sign-on).
Another cases is that the user may not have access to the fex they are calling.

The behavior in these two cases are somewhat different in the first I would like the user to be taken to the login screen while in the second I need a pop-up window with a message.
However, I can't seem to distinguish these cases from the javascript perspective.
When I inspect the elements in both cases the elements aren't populated in the onInitialUpdate function.

Is there a way to distinguish between these cases?
BTW, in both cases we will prob be returning HTML, code is below.


  
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" id="mycharsetmeta">
<meta content="Created in release 7703, Generation 3.0" id="Generation">
<script type="text/javascript" id="IBI_RelCallBack">function AdjustChildrenPosition(){
}
</script>
 
<script type="text/javascript" id="IBI_OptionsScript">
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 src="/ibi_html/javaassist/nls.js" type="text/javascript" id="IBI_nls"></script>
 
<script src="/ibi_html/javaassist/nlsvars.js" type="text/javascript" id="IBI_nlsVars"></script>
 
<script src="/ibi_html/javaassist/ibi/html/js/ibigbl.js" type="text/javascript" id="IBI_ibigbl"></script>
<script src="/ibi_html/javaassist/ibi/html/js/ibijsdbg.js" type="text/javascript"></script>
<script src="/ibi_html/javaassist/ibi/html/js/ibicookie.js" type="text/javascript"></script>
<script src="/ibi_html/javaassist/ibi/html/js/ibihash.js" type="text/javascript"></script>
<script src="/ibi_html/javaassist/cgipath.js" type="text/javascript"></script>
<script src="/ibi_html/javaassist/ibi/html/js/ibirls3.js" type="text/javascript"></script>
<script src="/ibi_html/javaassist/ibi/html/olap/olapdefaults.js" type="text/javascript"></script>
<script src="/ibi_html/javaassist/intl/EN/olapctltrans.js" type="text/javascript"></script>
<script src="/ibi_html/javaassist/intl/ibimultilanguage.js" type="text/javascript"></script>
<script src="/ibi_html/javaassist/ibi/html/js/ibilangtrans.js" type="text/javascript"></script>
 
<script type="text/javascript" id="IBI_ibigblloadCss">
ibigblloadCss(null);
addIntlTranslatedJS("composertrans.js");
</script><script src="/ibi_html/javaassist/intl/EN/composertrans.js" type="text/javascript"></script>
<title>HtmlPage</title>
<link rtfilename="htmlpathsub/javaassist/ibi/html/composer/themes/nonBindows/IBI-Themes/default.css" usersuppliedfullpath="1" type="text/css" rel="stylesheet" id="ITEM1" 
href="/ibi_html/javaassist/ibi/html/composer/themes/nonBindows/IBI-Themes/default.css">
<link rtfilename="htmlpathsub/javaassist/ibi/html/composer/themes/nonBindows/IBI-Themes/tabbedtemplate.css" usersuppliedfullpath="1" type="text/css" rel="stylesheet" disabled="" id="IBI_TABBED_CSS" href="/ibi_html/javaassist/ibi/html/composer/themes/nonBindows/IBI-Themes/tabbedtemplate.css">
<link rtfilename="htmlpathsub/javaassist/ibi/html/composer/themes/nonBindows/" desc="Plain" usersuppliedfullpath="1" type="text/css" rel="stylesheet" id="IBI_THEME_CSS" 
href="/ibi_html/javaassist/ibi/html/composer/themes/nonBindows/">
<script type="text/javascript" id="clientEventHandlersJS">
//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
function onInitialUpdate(){
 alert(document.getElementById("combobox1").innerHTML);
}
</script>
  
<script eventname="onload" type="text/javascript" for="window">window.onload = function() { window_onload(); }</script>
</head>
<body edaconnectionrequired="true" guideddocument="0" layoutid="ibi_layout_1" templatedoclocked="1" layoutcssfiles="/ibi_html/javaassist/ibi/html/composer/themes/nonBindows/" nextelementuniquenumber="2" tabfolderstrip="compUid_1" elementtype="21" thumbnailscale="4" class="IBI_PageBg" style="overflow: auto; cursor: auto;">
<div elementtype="34" tabindex="1" title="" class="IBIfield IBI_PageBg" id="Template page1">
<div elementtype="34" tabindex="2" title="" class="IBIfield IBI_Topbar" id="Top bar1">
<div elementtype="1" tabindex="3" title="" class="IBIfield IBI_TopbarColumn1" id="Logo1"></div></div>
<div childid="Tab #%d" persistentuniqueid="compUid_1" nexttabnumber="2" elementtype="4" tabindex="4" title="" class="IBIfield IBI_TabfolderStrip" id="Tabs strip1">
<div tabsreportset="Report set1" elementtype="39" tabindex="7" title="" class="IBIfield IBI_tabItem IBI_tabItem-selected" id="tabitem1">Tab #1</div></div>
<div elementtype="63" tabindex="5" title="" class="IBIfield IBI_ReportSet" id="Report set1">
<div elementtype="4" tabindex="6" title="" class="IBIfield IBI_ReportTitle" id="Report set title1">Report set title</div>
<form name="form1" 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" requests_list="0" fexlist_list="report2" elementtype="31" method="post" title="" onsubmit="OnExecute(this);return false;" class="IBIfield IBI_ReportControlPanel" id="form1">
<table contenteditable="false">
<tbody>
<tr valign="middle">
<td>
<label name="combobox1" for="combobox1" tabindex="19" class="IBIfield IBI_ReportControlLabel" id="label1">Country</label></td></tr>
<tr valign="top">
<td>
<select name="combobox1" requiredfield="1" boundtovariable="1" defaultlocation="0,0,25,30" defaultselection="1" persistentuniqueid="compUid_2" size="1" tabindex="20" class="IBIfield IBI_ReportControlTarget" id="combobox1" style="WIDTH: 219px"></select></td></tr></tbody></table>
<table>
<tbody>
<tr groupchildren="1">
<td valign="middle">
<input type="submit" name="submit1" elementtype="19" value=" " tabindex="14" title="Click to Run" class="IBIfield IBI_button IBI_btn-run" id="submit1"></td>
<td valign="middle">
<input type="reset" name="reset1" elementtype="20" value=" " tabindex="15" title="Click to Reset" class="IBIfield IBI_button IBI_btn-reset" id="reset1"></td></tr></tbody></table></form>
<div rgcontainer="1" elementtype="34" tabindex="16" title="" class="IBIfield IBI_ReportDisplay" id="Reports-Charts display1">
<iframe frameborder="no" name="report2" autoexecute="false" requests_list="0" elementtype="2" tabindex="18" class="IBIfield IBI_Report-iFrame" id="report2" style="WIDTH: 100%; HEIGHT: 350px"></iframe></div></div></div>
<input type="hidden" resourcectrlids="ITEM1;IBI_TABBED_CSS;IBI_THEME_CSS" templatetabs="tabitem1" id="layoutinfo" style="POSITION: absolute; TOP: -100px; LEFT: -100px">
<input type="hidden" name="ibiapp_app" value="session-integration" id="ibiapp_app" style="POSITION: absolute; TOP: -100px; LEFT: -100px">
<input type="hidden" name="ibic_server" isdataserversarea="1" value="EDASERVE" id="ibic_server" style="POSITION: absolute; TOP: -100px; LEFT: -100px">
<xml id="focus_xmlelement">
<script nextelementuniquenumber="2" type="text/xml">
<rootxmlnode focoption="_FOC_NULL">
<variables>
<variable controltype="8" parametercreatedinreslay="0" type="unresolved" desc="Country" name="COUNTRY" default="" textvarname="" accept="0" select="0" create="1">
<link linktype="default" from="compUid_2">
<condition default="1" name="Default" whattodowithcontrol="4" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
<data_info checkForDuplicateValues="0" displayfield="COUNTRY" ibiformat="A10" datafield="COUNTRY" datasource="car.mas" datatype="0" selectedvalue="" operation="" slider_range_from="" slider_range_to="" previewvalue="" sourcetype="typeMaster"></data_info></condition></link>
<requestid id="0"></requestid></variable></variables>
<input_controls>
<input_control bindcontrolid="compUid_2" elementtype="8" name="combobox1" id="combobox1" multiple="0" onetimepopulated="0">
<link linktype="default" persistentuniqueid="compUid_1">
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
<data_info checkForDuplicateValues="0" datatype="1" datasource="car.mas" datafield="CAR.ORIGIN.COUNTRY" displayfield="CAR.ORIGIN.COUNTRY" addalloption="0" sourcetype="typeMaster" cacheruntimedata="0" ibiformat="A10" dfformat="A10" accept="0" operation="NONE" modifiedrequest="0">
<![CDATA[TABLE FILE car
SUM FST.CAR.ORIGIN.COUNTRY
 BY CAR.ORIGIN.COUNTRY
-*insert_filters_here
ON TABLE PCHOLD FORMAT XML
END
]]></data_info></condition></link></input_control></input_controls>
<other_bound_objects></other_bound_objects>
<requests nextrequestsid="0">
<request requestid="0" targetname="report2" ibif_ex="report2" targettype="iframe" sourcetype="typeAdhocfex" activereport="0" compoundreport="0" reportcolumns="" reportrealcolumns="" ibiapp_app="">
<![CDATA[-*focexectool
TABLE FILE CAR
PRINT 
     CAR.ORIGIN.COUNTRY
     CAR.COMP.CAR
WHERE CAR.ORIGIN.COUNTRY EQ '&COUNTRY.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,
$
TYPE=REPORT,
     GRAPHCOLOR='GREEN',
$
TYPE=REPORT,
     OBJECT=MENU,
     COLOR='WHITE',
     HOVER-COLOR=RGB(66 70 73),
     BACKCOLOR=RGB(102 102 102),
     HOVER-BACKCOLOR=RGB(218 225 232),
     BORDER-COLOR='WHITE',
$
TYPE=REPORT,
     OBJECT=STATUS-AREA,
     COLOR='WHITE',
     BACKCOLOR=RGB(102 102 102),
$
TYPE=REPORT,
     OBJECT=CURRENT-ROW,
     HOVER-BACKCOLOR=RGB(218 225 232),
     BACKCOLOR=RGB(200 200 200),
$
TYPE=REPORT,
     OBJECT=CALC-AREA,
     COLOR='WHITE',
     BACKCOLOR=RGB(102 102 102),
$
ENDSTYLE
END]]></request></requests></rootxmlnode></script>
</xml>
<script type="text/javascript" id="IBI_loader">
doBeforeLoad();
</script><iframe frameborder="no" style="z-index: 200000; position: absolute; left: 0px; display: none; width: 1680px; height: 555px;" src="/ibi_html/javaassist/composerloading.html" name="loadingiframe" id="loadingiframe"></iframe><iframe style="position: absolute; top: 0px; left: 0px; display: none; width: 0px; height: 0px; z-index: 10000" src="/ibi_html/javaassist/blank.html" name="hiddenlayoutframe" id="hiddenlayoutframe"></iframe><script type="text/javascript" src="/ibi_html/javaassist/ibi/html/js/ib_composer_api.js">
</script>

 
<div style="cursor: default; position: absolute; border: 1px solid red; display: none; z-index: -1;" id="compUid_2"></div></body></html>



Thanks!

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 16 | Registered: September 12, 2012Report This Post
Expert
posted Hide Post
Hi Manish,

From our technicals: this one seems to be complex and will need further investigation, so please open a case with Customer Support Services for assistance. The phone number is 1-800-736-6130, or access online at InfoResponse.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report 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     [CLOSED] HTML composer handling errors

Copyright © 1996-2020 Information Builders