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] Maintain: MDY date validation using javascript

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Maintain: MDY date validation using javascript
 Login/Join
 
Silver Member
posted
I have seen some posts on date validation within html page using javascript but I have not found one that I can use within maintain form. I was wondering if someone had a javascript that checks MDY date (event handler and javascript) is entered correctly within a maintain form
For example, The script will check that date like 20/05/25 is incorrect.


function OnDate_effect_Edit_Blur ( ) {
.......

}

This message has been edited. Last edited by: Kerry,
 
Posts: 36 | Registered: October 01, 2003Report This Post
Expert
posted Hide Post
There are validation js libraries that come with WebFOCUS.

For example ibiValidate.js.

You could also create your own. It would be simple.

Take the date, split it up into parts, assuming the delimiter is there, and is / or - or something else.

Test each part for correct ranges.

If you are able to use the ibiValidate script, it will add a calendat option, and it will validate for you.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
I found these posts by doing an advanced search of techsupport.ibi.com for the text "date validation maintain"

These two links describe use of the Maintain validation library.

IBIValidation library
Validation library

There is also this post about an older technique.

Validate date field in Maintain

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Silver Member
posted Hide Post
I was able to use the ibivalidate.js along with MDYY . It seems that the script wants 4 digits year. thanks all!
 
Posts: 36 | Registered: October 01, 2003Report This Post
Master
posted Hide Post
Another solution is to use the calender object and not let the user enter the date in by hand. Currently you have to apply three JS files and a CSS file to your form to make the calendar object appear for date fields. In 7.7 we have added the option to the forms / fields property sheet so you can automatically turn the calendar on for all smart date formats, and turn it off for specific ones.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Expert
posted Hide Post
quote:
In 7.7 we have added the option to the forms / fields property


Although I'm not using maintain, Mark thats good news, it'll make so much easier.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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] Maintain: MDY date validation using javascript

Copyright © 1996-2020 Information Builders