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

Home » RADICORE development » Framework » problem with updateRecord()
Re: problem with updateRecord() [message #4420 is a reply to message #4419] Fri, 01 August 2014 12:37 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2369
Registered: April 2006
Location: Surrey, UK
Senior Member
If you want different validation rules depending on how the record is being updated then you need to create a subclass of your table class to contain the different code. Then all you have to do is to ensure that the code which updates the table requiring the alternative set of rules uses the subclass instead of the main class. I do this type of thing many times when I want a method to execute different code depending on who is calling that method.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PROBLEM WITH DECIMAL POINT
Next Topic: pdf.styles.inc
Goto Forum:
  


Current Time: Mon Nov 25 18:01:01 EST 2024

Total time taken to generate the page: 0.01076 seconds