Re: list2 [message #2552 is a reply to message #2551] |
Mon, 21 June 2010 15:29 |
AJM
Messages: 2371 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
In this situation it is not possible to check the parent status for FALSE and prevent the LIST2 task from being called. All you can do is wait until after the LIST2 has been called and then take some action depending on the parent status.
Allowing the user to remain within the LIST2 is not actually a problem - all that is needed is a way to prevent child records (via the ADD2 task) from being created. There are several possibilities open to you:
- You could put code within the ADD2 task to immediately exit if it has been called for a parent with its status set to FALSE.
- You could put code within the ADD2 task to issue an error message if the SUBMIT button is pressed for a parent with its status set to FALSE.
- You could put code within the LIST2 task to immediately exit if it has been called for a parent with its status set to FALSE.
- You could put code within the LIST2 task to drop the ADD2 navigation button if it has been called for a parent with its status set to FALSE. This is explained in FAQ153.
All of these options can be achieved within the Radicore framework. You choose which one you want, then put the right code in the right place
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|