Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » list2 (LIST2)
Re: list2 [message #2552 is a reply to message #2551] Mon, 21 June 2010 15:29 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2370
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


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: drop-down
Next Topic: delete record
Goto Forum:
  


Current Time: Wed Nov 27 02:59:33 EST 2024

Total time taken to generate the page: 0.01201 seconds