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     IBIValidation and Canceling *RESOLVED*

Read-Only Read-Only Topic
Go
Search
Notify
Tools
IBIValidation and Canceling *RESOLVED*
 Login/Join
 
Silver Member
posted
I am creating a maintain that ties to an Access database. I was interested in trying the IBIValidation in my data entry screens. It works great except for one thing. The two buttons I want to use are Submit and Cancel at the bottom of the form. If they cancel the form I don't want it to check if the required fields are entered. I can't seem to do this. Any idea?

WebFocus 7.6.5
Access Database
Windows Server 2003

This message has been edited. Last edited by: dendem,
 
Posts: 41 | Registered: August 21, 2007Report This Post
Master
posted Hide Post
The way that I got around this was to add code behind my Cancel button. I created a JavaScript trigger and a line like this for all my required fields:

Form1.First_Name_Edit.value = ' ';
IWCTrigger("ExitApp");


This way, the field gets a default value and you don't get the error that you have to enter a value.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Silver Member
posted Hide Post
quote:
IWCTrigger("ExitApp");



Could you please supply me with sample code for canceling out of the form? I don't know how to close the form in Javascript so as to show the previous unclosed form that opened the data enrty screen.
 
Posts: 41 | Registered: August 21, 2007Report This Post
Master
posted Hide Post
If the form that you are on is a child of a previous form, then create a case in your code like:

Case closeform
Winform Close Formname -* Where Formname is the name of the current form you are on
Endcase

Then, use the JavaScript to do:

IWCTrigger("Closeform");

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Silver Member
posted Hide Post
When I try this I get the same results as before. I tired just closing the form as you showed above and also setting all the required fields to have values before closing and both don't resolve the issue. It still is requesting the fields be filled in.
 
Posts: 41 | Registered: August 21, 2007Report This Post
Silver Member
posted Hide Post
To be more specific, The Cancel button uses Javascript to call the maintain case. The case then sets the stack fields that are tied to the form text boxes to 0 for all required fields.
 
Posts: 41 | Registered: August 21, 2007Report This Post
Master
posted Hide Post
Make sure that you are not getting a JavaScript error when you click the CANCEL button. Make sure that the command correctly reflects the name of your form and the field. Remember, with JavaScript case matters. The word value is in lower case, but the name of the form and the field should reflect the case of your form and field.

If the JavaScript code looks correct and CANCEL is still giving an error, ZIP up the MNT file, the MAS files, repro steps and anything else I would need to repro the issue and send them to: Mark_Derwin@IBI.COM.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Silver Member
posted Hide Post
I sent it to you. Thank you Mark.
 
Posts: 41 | Registered: August 21, 2007Report 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     IBIValidation and Canceling *RESOLVED*

Copyright © 1996-2020 Information Builders