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     HTML page filed not populated, how to alert user

Read-Only Read-Only Topic
Go
Search
Notify
Tools
HTML page filed not populated, how to alert user
 Login/Join
 
Member
posted
A field in the self services launch page is populated by a fex (using on table hold xxx xml) method. Since the report server requires signon so a user normally passing thru a sigon page.
HOwever, this particular page may be saved in the IE favourite and being clicked during next session. In this case, the field mentioned will be blank.
I looked at the HTML of this page, and would like to add a alert pop up if the field is blank after the page is loaded (before clicking the submit button).
I couldn't figure out how to do that, what to add. Can you help>


Win2003, Webfocus 7.13, Dev Studio, Report Caster
 
Posts: 11 | Location: LOS ANGELES | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Here's some code that should help:

-DEFAULT &FIELD1 = '';

-HTMLFORM BEGIN
<html>
<head>
<script language="JavaScript">
var wfField1 = '!IBI.AMP.FIELD1;';

function Init()
{
if (wfField1 == '' || wfField1 == ' ')
  {
  alert('-----------------------\nFIELD1 is blank\n-----------------------');
  }
}
</script>

<title>Test</title>
</head>

<body onload="Init();">

This is a test
</body>
</html>
-HTMLFORM END


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
Oh, and it would be nice if you set the Signature field in your Profile to the WebFOCUS release, OS Platform, etc. You get to your Profile here:
FocalPoint forum Profile


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
Member
posted Hide Post
Thanks. Since I'm using Developer Studio to generate the html page, what do you think I can do?
Fex and html follow:
-* File tstloadit.fex
TABLE FILE STUDENT
PRINT
STUD_ID
IF STUD_YR_SEM EQ &YRSEM
IF RECORDLIMIT EQ 1
END


< !-- 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 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>
<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

//Begin function button1_OnClick
function button1_OnClick(ctrl) {
// TODO: Add your event handler code here
OnExecute(ctrl)
}
//End function button1_OnClick
</SCRIPT>

<script for=window eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>
</HEAD>
<BODY style="OVERFLOW: auto" edaconnectionrequired="true">
<INPUT language=java_script id=button1 style="Z-INDEX: 1; LEFT: 370px; WIDTH: 90px; POSITION: absolute; TOP: 188px; HEIGHT: 30px" onclick=button1_OnClick[this) tabIndex=1 type=button value=Button name=button1 requests_list="0">
<SPAN id=text1 style="Z-INDEX: 2; LEFT: 370px; WIDTH: 80px; POSITION: absolute; TOP: 110px; HEIGHT: 16px" tabIndex=2>YRSEM</SPAN>
<SELECT id=edit1 style="LEFT: 370px; WIDTH: 170px; POSITION: absolute; TOP: 146px" tabIndex=3 size=1 name=YRSEM ibiapp_app="dkwantst vmstemp baseapp" ibic_server="EDASERVE" displayfield vspace="0" indeterminate="false" accept="0" CHECKED="false" width="0" loop="1" maxLength="2147483647" hspace="0" height="53047196" readOnly="false" start="fileopen" labelid="text1" addalloption="0" datasource="findyysa.fex" requiredfield="1469754" datatype="1" datafieldtype="INTIGER" sourcetype="typeFex"></SELECT>
<INPUT id=layoutinfo style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden inputcontrolids="edit1">
<INPUT id=ibiapp_app style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value="dkwantst vmstemp baseapp" name=ibiapp_app>
<xml id=ibi_requests>
<requests>
<request requestid="0" sourcetype="typeFex" targettype="0" targetname="" ibif_ex="tstloadit.fex" ibic_server="EDASERVE" ibiapp_app="dkwantst vmstemp baseapp">
<variables>
<variable field="YRSEM" file="student.mas" desc="YRSEM" datatype="0" operation="" default="" name="YRSEM" textvarname="" accept="0" type="unresolved" select="0" min="" max="" controltype="7" create="1"></variable></variables></request></requests>
</xml></BODY></HTML>

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


Win2003, Webfocus 7.13, Dev Studio, Report Caster
 
Posts: 11 | Location: LOS ANGELES | Registered: February 23, 2005Report This Post
Member
posted Hide Post
I wonder what I did wrong. Please advice.
I updated the profile and turn n the signature, but the info still not showing up in the post.


Win2003, Webfocus 7.13, Dev Studio, Report Caster
 
Posts: 11 | Location: LOS ANGELES | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
1) If you updated the Signature field of the Profile form, it should show up if you left the Signature checkbox on the "Post a Reply" window checked.

2) When you post code, particularly HTML, please put the code between code tags - the quickest way to do this is to click the button. This will add the open code/close code tags - paste your code between these tags.

3) I don't use Developer Studio to generate HTML pages, but I think you'll have to add the alert manually.

Something like:

<body onlick="if ('!IBI.AMP.&YRSEM;' == '' || '!IBI.AMP.&YRSEM;' == ' ') alert('YRSEM is blank');">

This message has been edited. Last edited by: Francis Mariani,


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
Member
posted Hide Post
You can put your code inside the functions window_onload() and onInitialUpdate(). You can put alerts in the functions to see the timing of when they are being called.

The window_onload() is called when the page is starting to initialize.

The onInitialUpdate() is called when the page has completed loading. I have used it to call the buttone_click() function to simulate the user clicking the submit button immediately after the page is loaded. This function I believe was added as a patch to 7.6.2. You might be able to work with support to get the patch into your verison.

Hope that helps.


Report Server - 7.6.4,Windows
MRE - 7.6.4 /zLinux/WAS 6.1
Dev Studio 7.6.4
 
Posts: 2 | Location: Columbus, Ohio | Registered: February 28, 2008Report This Post
Member
posted Hide Post
Prakash
Thank. Where I can find onInitialUpdate()?


Win2003, Webfocus 7.13, Dev Studio, Report Caster
 
Posts: 11 | Location: LOS ANGELES | Registered: February 23, 2005Report 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     HTML page filed not populated, how to alert user

Copyright © 1996-2020 Information Builders