Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 06 DEC 2007 01:18:15AM Martin Drenovac wrote:

We have a range of databound forms that contain little more than a couple of edit fields. Eg Code & Description.

Whenever the key field is null and we lose focus we get a

"Data Validation Error - Data is required control may not

be skipped!".

Is there any way we can avoid this because it's very annoying when you edit a record, do the write which clears the form and then try and close the window via a button. You can't do it until you select a valid entry.

One of those trivial things that gets under people's skin…


At 06 DEC 2007 02:11AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Checkout IOOPTIONS field 10. See online help.

The Sprezzatura Group

World leaders in all things RevSoft


At 06 DEC 2007 10:30PM Martin Drenovac wrote:

Thanks, will do.


At 07 DEC 2007 12:35AM Paul Rule wrote:

Or you could do something like this in the LOSTFOCUS event of the key field. This stops the "data is required" message.

call promoted_event(ctrlentid,flag,focusid,p3,p4,p5,retval) ;* if you need to then have to do it here rather than quick event for this to work in the event chain.

*List of valid buttons.

Locate field( FocusID, '.', 2 ) in 'B_CLOSE,B_WHATEVER' using ',' setting P then valid=0 else valid=1

RETURN valid


At 09 DEC 2007 11:17PM Martin Drenovac wrote:

Thanks Paul,

For a quick fix I've used the IOOPTIONS in the CREATE event of the window. I expect down the track I'll be doing something in a promoted event to manage all relevant windows.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/911a5095818af28f852573a90022a158.txt
  • Last modified: 2023/12/28 07:39
  • by 127.0.0.1