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] Webfocus toolkit help

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Webfocus toolkit help
 Login/Join
 
Gold member
posted
HI,
Iam using webfocus toolkit which has got cool java script functions to validate parameters in the html launch page. Iam trying to use it, but the validation function is not getting fired.
I have copied
1)all the gif, js and html files to approot/look_and_file/toolkit folder.
2) Added beow code after inside my html launch page.
<script type=text/javascript>
function staticLoadScript(type,url)
{
switch(type) {
case 'CSS':
document.write("" href='" + url + "'" + " type='text/css'>");
break;
case 'JS':
document.write('<script src="' + url + '"' +
' type="text/JavaScript"><\/script>');
break;
default: break;
}
}
staticLoadScript("JS","/approot/look_and_feel/toolkit/wf_toolkit.js");


3) Added WFT_getDefaultRequestListInfo('button1');
inside window_onload() function.
3) Added WFT_addValidation(1,"HASVALUE","Please select a value for Dept","edit1");
inside button1_OnClick function.

It is firing my Alert("test1");, but not the validation function which suppoed to throw error when I don't enter any value in the Dept field.

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


WebFocus 7.7.01
Desktop: Windows and Server: Unix
Excel, HTML, PDF
 
Posts: 69 | Registered: September 12, 2009Report This Post
Gold member
posted Hide Post
Please help me. Here is the code.
< !-- Generated by Report Layout Painter -->
<HTML><HEAD>
<META id=mycharsetmeta http-equiv=Content-Type content="text/html; charset=UTF-8">
<META id=Generation content="Gen 3.0"><TITLE>HtmlPage</TITLE>

<script type=text/javascript>
function staticLoadScript(type,url)
{
switch(type) {
case 'CSS':
document.write("<link rel='stylesheet'" +
" href='" + url + "'" + " type='text/css'>");
break;
case 'JS':
document.write('<script src="' + url + '"' +
' type="text/JavaScript"><\/script>');
break;
default: break;
}
}
staticLoadScript("JS","/approot/look_and_feel/toolkit/wf_toolkit.js");
</SCRIPT>

<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 src="/ibi_html/javaassist/nls.js" type=text/javascript></SCRIPT>

<script id=IBI_nlsVars src="/ibi_html/javaassist/nlsvars.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=clientEventHandlersJS type=text/javascript>
//Begin function window_onload
function window_onload() {

UpdateData();

// TODO: Add your event handler code here
WFT_getDefaultRequestListInfo('button1');
//add onInitialUpdate() function to make changes before initial run of the reports
}
//End function window_onload

//Begin function button1_OnClick
function button1_OnClick(ctrl) {
// TODO: Add your event handler code here
alert("test1");
WFT_addValidation(1,"HASVALUE","Please select a value for Dept","edit1");
OnExecute(ctrl)
}
//End function button1_OnClick
</SCRIPT>

<script for=window eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>

<META content="MSHTML 6.00.2900.5848" name=GENERATOR></HEAD>
<BODY style="OVERFLOW: auto" edaconnectionrequired="true" nextelementuniquenumber="2"><iframe id=report1 title=emp.fex style="Z-INDEX: 1; LEFT: 30px; OVERFLOW: auto; WIDTH: 620px; POSITION: absolute; TOP: 170px; HEIGHT: 290px" tabIndex=1 name=report1 src="" elementtype="2" autoExecute="False" requests_list="0" executebuttonId="button1"></IFRAME><SPAN id=text1 style="Z-INDEX: 2; LEFT: 40px; WIDTH: 66px; POSITION: absolute; TOP: 50px; HEIGHT: 16px" tabIndex=2>DEPT</SPAN> <INPUT id=edit1 style="Z-INDEX: 3; LEFT: 120px; POSITION: absolute; TOP: 50px" tabIndex=3 hspace=0 name=edit1 persistentuniqueid="compUid_1" boundtovariable="1" labelid="text1"> <INPUT language=java_script id=button1 style="Z-INDEX: 4; LEFT: 30px; WIDTH: 120px; POSITION: absolute; TOP: 120px; HEIGHT: 30px" onclick=button1_OnClick[this) tabIndex=4 type=button value="Run report1" name=button1 requests_list="0"> <SPAN id=text2 style="Z-INDEX: 5; LEFT: 40px; WIDTH: 214px; POSITION: absolute; TOP: 90px; HEIGHT: 16px" tabIndex=5>Select type of display output</SPAN> <SELECT id=combobox1 style="Z-INDEX: 6; LEFT: 270px; POSITION: absolute; TOP: 90px" tabIndex=6 size=1 name=combobox1 persistentuniqueid="compUid_2" boundtovariable="1" labelid="text2"></SELECT> <INPUT id=layoutinfo style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden> <INPUT id=ibiapp_app style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value=look_and_feel name=ibiapp_app>
<script id=IBI_loader type=text/javascript>
doBeforeLoad();
</SCRIPT>
<xml id=focus_xmlelement><script>
 <rootxmlnode>
  <variables>
   <variable controltype="7" parametercreatedinreslay="0" type="unresolved" desc="DEPT" name="DEPT" 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 displayfield="DEPT" datafield="DEPT" datasource="emp.mas" datatype="0" selectedvalue="" operation="" slider_range_from="" slider_range_to=""></data_info></condition></link>
    <requestid id="0"></requestid></variable>
   <variable controltype="8" 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_2">
     <condition default="1" name="Default" whattodowithcontrol="4" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
      <data_info displayfield="WFFMT" datafield="WFFMT" datasource="emp.mas" datatype="0" selectedvalue="" operation="" slider_range_from="" slider_range_to="">
       <static_values>
        <static value="HTML" display="HTML" selected="1"></static>
        <static value="PDF" display="PDF" selected="0"></static>
        <static value="EXL2K" display="Excel 2000" selected="0"></static>
        <static value="EXL2K FORMULA" display="Excel Formula" selected="0"></static>
        <static value="AHTML" display="HTML Active Report" selected="0"></static>
        <static value="FLEX" display="Active Report Flash/Flex" selected="0"></static>
        <static value="PPT" display="PowerPoint" selected="0"></static></static_values></data_info></condition></link>
    <requestid id="0"></requestid></variable></variables>
  <input_controls>
   <input_control bindcontrolid="compUid_1" inbinding="1" top="186" left="40" width="60" height="20" elementtype="7" requiredfield="0" name="edit1" id="edit1" multiple="0">
    <link linktype="default">
     <condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
      <data_info datatype="0" datasource="emp.mas" datafield="EMP.EMP.DEPT" displayfield="EMP.EMP.DEPT" addalloption="0" sourcetype="typeMaster" cacheruntimedata="0" ibiformat="I8" dfformat="I8" accept="0" selectedvalue="" operation="NONE">
       <static_values>
        <static value="" display="" selected="0"></static></static_values></data_info></condition></link></input_control>
   <input_control bindcontrolid="compUid_2" inbinding="1" top="264" left="40" width="60" height="20" elementtype="8" requiredfield="0" name="combobox1" id="combobox1" multiple="0">
    <link linktype="default">
     <condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
      <data_info datatype="0" datasource="emp.mas" addalloption="0" sourcetype="typeMaster" cacheruntimedata="0" accept="0" selectedvalue="" operation="NONE">
       <static_values>
        <static value="HTML" display="HTML" selected="1"></static>
        <static value="PDF" display="PDF" selected="0"></static>
        <static value="EXL2K" display="Excel 2000" selected="0"></static>
        <static value="EXL2K FORMULA" display="Excel Formula" selected="0"></static>
        <static value="AHTML" display="HTML Active Report" selected="0"></static>
        <static value="FLEX" display="Active Report Flash/Flex" selected="0"></static>
        <static value="PPT" display="PowerPoint" selected="0"></static></static_values></data_info></condition></link></input_control></input_controls>
  <other_bound_objects></other_bound_objects>
  <requests nextrequestsid="0">
   <request requestid="0" targettype="iframe" targetname="report1" sourcetype="typeFex" ibif_ex="emp.fex" ibic_server="EDASERVE" ibiapp_app="look_and_feel" activereport="0" reportcolumns=""></request></requests></rootxmlnode></script>
</xml></BODY></HTML>

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


WebFocus 7.7.01
Desktop: Windows and Server: Unix
Excel, HTML, PDF
 
Posts: 69 | Registered: September 12, 2009Report This Post
Virtuoso
posted Hide Post
Can you tell me where you got this webfocus toolkit?

I can't find a reference to it - maybe I'm looking in the wrong places, so I thought to ask where you got it.
Without it, the alert shows but nothing happens further since I don't have the WFT functions.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
DD,

I'm sure a lot of us are interested in finding out where you got this "toolkit".

As well, please put all code between
[code]
[/code]
tags so that the HTML and JavaScript does not get garbled.

Thank you,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Google "webfocus toolkit" and the first hit is this thread!

The second hit links to a company called Digital Frontiers, "Makers of the revolutionary HVS Color and the new Webfocus Toolkit" a PhotoShop plug-in. The link leads you no where.

The third hit links to another company selling the same PhotoShop plug-in - they're no longer in business.

Weed out the plug-in by Googling "webfocus toolkit" -hvs and the only hit is this thread!"


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
<JJI>
posted
DD,

could you please tell us where you've got this WebFOCUS toolkit? Can you download it from the Information Builders site?

Regards,
 
Report 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] Webfocus toolkit help

Copyright © 1996-2020 Information Builders