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 Date Field Verification

Read-Only Read-Only Topic
Go
Search
Notify
Tools
HTML Date Field Verification
 Login/Join
 
<Tmproff>
posted
I would like to do a verification check on 2 date fields (calendar option). They default to blank, but I would like to have a small popup window that displays if either field is left empty.

The 2 fields are named begdt and enddt.

I am using the HTML layout painter.
Thank you for your help!
-Troy
 
Report This Post
Gold member
posted Hide Post
write Onmouseover/Onclick Event to check for blank and show popup
function BEGDT_onclick(ctrl) {
if (document.getElementById("BEGDT").value==" "){
alert("Beining date is empty...");

//show Calender popup window for BEGDT
}
}

function ENDDT_onclick(ctrl) {
if (document.getElementById("ENDDT").value==" "){
alert("End date is empty...");

//show Calender popup window for ENDDT
}
}
where BEGDT, ENDDT is ID's of the objects in your HTML




Env Prod:WebFOCUS 7702 ,Windows xp on 64, SQL Server 2008, IRF Tool
Env 1 Local: DevStudio 7702 - MS Windows XP SP2 - Apache Tomcat 5.0.28
Output: HTML, Excel and PDF
 
Posts: 52 | Location: NJ,USA | Registered: May 26, 2004Report This Post
<Tmproff>
posted
I'm getting an object expected error with that code. Where should I verify that BEGDT / ENDDT is the ID's of the objects?
 
Report This Post
Gold member
posted Hide Post
Hi Tmproff,

i created temporery HTML and used Beging Date and Ending Date and added Onclick events on both the Fields..

see the code below

< !-- Generated by Report Layout Painter -->
<HTML>
<HEAD>
<TITLE>HtmlPage
</TITLE>
<BASE href=HTTP://endwwebd1:8080>
<script id=clientEventHandlersJS type=text/javascript>
function window_onload() {
UpdateData();
// TODO: Add your event handler code here
}

function BEGDT_onclick(ctrl) {
	if (document.getElementById("BEGDT").value==""){
		alert("Beining date is empty...");

		//show Calender popup window for BEGDT
	}
}

function ENDDT_onclick(ctrl) {
	if (document.getElementById("ENDDT").value==""){
		alert("End date is empty...");

		//show Calender popup window for ENDDT
	}
}
</SCRIPT>

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

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




Env Prod:WebFOCUS 7702 ,Windows xp on 64, SQL Server 2008, IRF Tool
Env 1 Local: DevStudio 7702 - MS Windows XP SP2 - Apache Tomcat 5.0.28
Output: HTML, Excel and PDF
 
Posts: 52 | Location: NJ,USA | Registered: May 26, 2004Report This Post
Gold member
posted Hide Post
Sorry HTML Code is missing in above post..

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




Env Prod:WebFOCUS 7702 ,Windows xp on 64, SQL Server 2008, IRF Tool
Env 1 Local: DevStudio 7702 - MS Windows XP SP2 - Apache Tomcat 5.0.28
Output: HTML, Excel and PDF
 
Posts: 52 | Location: NJ,USA | Registered: May 26, 2004Report This Post
<Tmproff>
posted
That worked great, Thanks!
 
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     HTML Date Field Verification

Copyright © 1996-2020 Information Builders