# Parameters to Natural Ajax application

**URL:** <https://techcommunity.softwareag.com/t/parameters-to-natural-ajax-application/195055>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [June 9, 2017, 6:54pm UTC](https://techcommunity.softwareag.com/t/parameters-to-natural-ajax-application/195055 "2017-06-09T18:54:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Oliveira](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/alexandre_oliveira/32/1017_2.png) [@Alexandre\_Oliveira](https://techcommunity.softwareag.com/u/Alexandre_Oliveira)\
**Post date:** [June 9, 2017, 6:54pm UTC](https://techcommunity.softwareag.com/t/parameters-to-natural-ajax-application/195055/1 "2017-06-09T18:54:16Z")

</div>

Hi,

Is it possible to pass parameters to Natural Ajax application? I need to receive the user code sent by a Java program through a URL.

Alexandre

---

<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:** [June 12, 2017, 12:55pm UTC](https://techcommunity.softwareag.com/t/parameters-to-natural-ajax-application/195055/2 "2017-06-12T12:55:17Z")

</div>

Hi Alexandre,

if you want to pass parameters when your Natural Ajax application is started, you can easily add them to the xciParameters.natparamext url parameter.

Example:  
Pass an initial value “examplename” for the HELLOW-P program of the Natural Ajax Demos.

[http://server](http://server):port/cisnatural/servlet/StartCISPage?PAGEURL=/cisnatural/NatLogon.html&xciParameters.natsession=mysession&xciParameters.natparamext=stack=(LOGON SYSEXNJX;HELLOW-P examplename)

In the Natural program you can then use the INPUT statement to read the parameter and assign it to the field you want.  
Example:  
01 MYPARAM (A30)  
…  
INPUT MYPARAM  
…

When creating the URL from within your Java program be sure to url encode the URL.

Does this meet your requirement?

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![Alexandre\_Oliveira](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/alexandre_oliveira/32/1017_2.png) [@Alexandre\_Oliveira](https://techcommunity.softwareag.com/u/Alexandre_Oliveira)\
**Post date:** [June 12, 2017, 5:41pm UTC](https://techcommunity.softwareag.com/t/parameters-to-natural-ajax-application/195055/3 "2017-06-12T17:41:42Z")

</div>

Hi Christine,

Thanks… It worked.

Alexandre Oliveira

---

<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:38pm UTC](https://techcommunity.softwareag.com/t/parameters-to-natural-ajax-application/195055/4 "2021-04-02T15:38:41Z")

</div>


