Complex CustomActions, how-to?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
rutmax
User
Posts: 11

Complex CustomActions, how-to?

Post by rutmax »

I need to create a customAction that duplicates the record it is called from, finds the records in an associated table, duplicating them as well.
I've read the example in the documentation Improved List Actions but I haven't figured out how to do an action like the one I've described, which is then not an update of the record itself.


arbei
User
Posts: 9384

Post by arbei »

You may execute query (i.e. INSERT statement) in the server event by ExecuteStatement(), then you may use use ExecuteRows() to select the records in the associated table, then loop through them and insert.

You need to try write your code and post your code for discusson.


Post Reply