Prompt Validation Problems (AREV Specific)
At 10 AUG 2000 12:20:40PM Matt Sorrell wrote:
I'm having some prompt validation problems on a window again.
I'm running ARev 3.02. What happens is this: When a value is entered in field A, I validate the data. If it meets certain criteria, then I set field B to required. This works flawlessly. If I try to move past field B, I get a message that says it is required.
However, while the cursor is still in field B, if I press the key to save the record, the window processor ignores the fact that I have set this field to required and allows the record to be saved.
At first I thought the problem is that the field was not being placed in the required prompts common variable, so I added that but no joy.
There is a presave process on the window, but I cannot see anything in there that would cause prompt validation to be skipped.
Any ideas?
msorrel@greyhound.com
At 10 AUG 2000 12:54PM Warren wrote:
I had this problem in v2.0x, it has to do with how the windows.common is handled in memory.
Andrew gave me a solution, which I don't remember and I don't have the code handy so you'll have to wait for the Sprezzies to show why they're the "World Leaders".
At 10 AUG 2000 12:58PM Matt Sorrell wrote:
Warren,
Thanks for the info, but I think I just fixed it.
Apparently, if you take to modifying the Required attribute of a prompt yourself, you are obligated to update _everything_ yourself. I was update Req.Fields but not Req.Cnt. Everywhere I updated Req.Fields I added the code to recalculate Req.Cnt. It now appears to be working.
Ah, the joys of behind the scenes monkeying.
msorrel@greyhound.com
At 10 AUG 2000 01:11PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Warren's just too nice to us .
For future reference see change_type here http://www.sprezzatura.com/V3I4A1.HTM
World Leaders in all things RevSoft
At 10 AUG 2000 01:54PM Bill Titus wrote:
What window/template record does CHANGE_TYPE modify, since the passed parameters do not include a window/template record id? When do you call it?
Thanks.
Bill
At 11 AUG 2000 01:34AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
The current window.
World Leaders in all things RevSoft