Generate .txt file from a natural one for ajax object.

Hi,

Is it possible to write data to a .txt file from a natural one for ajax object (program, subprogram or subroutine) for
later downloading?

Best regards,
Jorge

Hi Jorge,

Yes. In the NaturalAjaxDemos you’ll find the example: naturaldocument.xml + NATDOC-P

The major steps are:

  1. Add an Natural Objects control to your layout - tag <njx: objects>
  2. In your Natural program fill the XCIOBJECTS* structure as seen in the example. Instead of using LOADFILE you can also create your file dynamically. Simply serialize your data into a binary large object (B).

Is this what you were searching for?

Best Regards,
Christine

Hi Christine,

Yes. I will try.Thank you again.

Best regards,
Jorge