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

**URL:** <https://techcommunity.softwareag.com/t/generate-txt-file-from-a-natural-one-for-ajax-object/207166>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [February 5, 2020, 7:15pm UTC](https://techcommunity.softwareag.com/t/generate-txt-file-from-a-natural-one-for-ajax-object/207166 "2020-02-05T19:15:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_Canessa1](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jorge\_Canessa1](https://techcommunity.softwareag.com/u/Jorge_Canessa1)\
**Post date:** [February 5, 2020, 7:15pm UTC](https://techcommunity.softwareag.com/t/generate-txt-file-from-a-natural-one-for-ajax-object/207166/1 "2020-02-05T19:15:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [February 5, 2020, 10:23pm UTC](https://techcommunity.softwareag.com/t/generate-txt-file-from-a-natural-one-for-ajax-object/207166/2 "2020-02-05T22:23:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jorge\_Canessa1](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jorge\_Canessa1](https://techcommunity.softwareag.com/u/Jorge_Canessa1)\
**Post date:** [February 6, 2020, 12:11pm UTC](https://techcommunity.softwareag.com/t/generate-txt-file-from-a-natural-one-for-ajax-object/207166/3 "2020-02-06T12:11:03Z")

</div>

Hi Christine,

Yes. I will try.Thank you again.

Best regards,  
Jorge

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:44pm UTC](https://techcommunity.softwareag.com/t/generate-txt-file-from-a-natural-one-for-ajax-object/207166/4 "2021-04-02T15:44:11Z")

</div>


