Exporting a form (with subforms) in XML

Questions, tips and tricks and techniques for scripting in Servoy

Exporting a form (with subforms) in XML

Postby gerardo.gomez » Thu Aug 27, 2009 2:08 pm

Hello everybody!

I have a doubt about expected behavior of controller.printXML() function... The 'problem' is that only exports data from the current controller, i mean, it doesn´t export data from its subforms... On the other hand, the 'similar' function controller.print() prints data from the forms and subforms...

By example, and comparing the both functions, if I have a form <my_main_form> with a subform <my_subform>...

...next line prints my_main_form and the subform (Warning! it only will print the subform if this subform has the printable property checked!) ...
Code: Select all
forms.my_main_form.controller.print(true, false)


...however, next line only 'export' the main form
Code: Select all
forms.my_main_form.controller.printXML(true, false)


I was expecting the behavior of the both functions was the same... It´s the expected behavior???

Thanks in advance!

Gerardo.
Best regards/Un saludo,

Gerardo Gómez
--
Servoy 5.1.4 build 964
Win7 - Java 1.6.0_20
Ubuntu 10.04 - Java 1.6.0_20
gerardo.gomez
 
Posts: 79
Joined: Thu Aug 20, 2009 1:15 am

Return to Methods

Who is online

Users browsing this forum: No registered users and 2 guests

cron