It is currently Sat Sep 21, 2024 1:54 pm
Post by rschalch » Mon Oct 14, 2013 9:55 pm
Is it possible to call a function to write xml to some file after editing a record in the database ?
Post by mobhar » Tue Oct 15, 2013 2:33 am
You may write your code in "Row_Updated" server event.
For writing to .xml file, please refer the code in the "cXMLDocument" class from the generated "ewshared*.php" file.
Post by rschalch » Tue Oct 15, 2013 3:34 am
The class is simple, however its my first time editing in PHPMaker. Can you provide a simple example adding nodes from the table's records ? Thank you very much !
Post by mobhar » Tue Oct 15, 2013 10:53 am
For the example of usage, you can always refer to the "cExportXml" class in the generated "phpfn*.php" file.
The clue is, use the following functions:
of the "cXMLDocument" class.
Post by rschalch » Tue Oct 15, 2013 11:10 am
Thank you very much !
Return to “General Discussion (PHPMaker)”