Thanks all for your support
Bernd.NWe use one generic method that runs all the time when a new record gets created, regardless for which table.
foundset.newRecord() is then just one tiny part of that record-creation-method which we named scopes.utils.recordAdd(...).
I am using the same method that you do .... but in my case I create one scope per table in which the methods are calling a generic one (emulating a Java Interface)
- Code: Select all
scopes.my_tabla.insert(record){
scopes.db.insert(record);
}
jasantanaHave you tried the table events?
What I wanted to avoid is one event per table ..... lol
mboegemyou can not overwrite the newRecord function, but you can extend the foundset object of a particular table with your own functions using the entity scope.
You find this by opening the table in Servoy, select the 'method' tab and add functions (basically the same way as table events and calculations)
I didn't know it was possible to extends from the foundset objet !!!!!! Love that feature.
So .... what I am gonna do is a mix of everything. Thanks all again to bright my mind !!!
Best regards. Roberto Blasco.