# Using SUBCISPAGE2 containers

**URL:** <https://techcommunity.softwareag.com/t/using-subcispage2-containers/100510>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX, Adabas-Natural-Cloud\
**Created:** [May 9, 2012, 3:22pm UTC](https://techcommunity.softwareag.com/t/using-subcispage2-containers/100510 "2012-05-09T15:22:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_Beckwith](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/todd_beckwith/32/388_2.png) [@Todd\_Beckwith](https://techcommunity.softwareag.com/u/Todd_Beckwith)\
**Post date:** [May 9, 2012, 3:22pm UTC](https://techcommunity.softwareag.com/t/using-subcispage2-containers/100510/1 "2012-05-09T15:22:07Z")

</div>

My interpretation of the documentation on SUBCISPAGE2 containers ([url][http://techcommunity.softwareag.com/ecosystem/documentation/natural/njx825/njx/subcispage2.htm#x91[/url]](http://techcommunity.softwareag.com/ecosystem/documentation/natural/njx825/njx/subcispage2.htm#x91%5B/url%5D)) is that I should be able to load a NATPAGE within another NATPAGE. The scenarios for using this container lead me to believe you should be able to use it seamlessly without logging into a second session. While the documentation says I should be able to find an example in NJXDEMOS, I do not see any example for this type of container nor can I find anything that calls ctrlsubcispage in the Natural source in SYSEXNJX. Am I looking in the wrong place?

I have setup a NATPAGE with an embedded SUBCISPAGE2 container and I am attempting to load a NATPAGE using a format similar to that shown in the documentation:

```auto
../servlet/StartCISPage?PAGEURL=/cisnatural/NatLogon.html&xciParameters.natsession=Main+Menu&xciParameters.natparam=stack%3D%28LOGON+RN2%3BSYSERRP%29
```

When I click a button to set the SUBCISPAGE2 to this value, the login screen is loaded rather than the program specified in the stack. Even after logging, the stack that is passed is not executed.

Am I simply doing something incorrectly or is it not possible to load a NATPAGE within another without going through a login process? I found a post from 2010 suggesting the SUBCISPAGE2 container is not supported in NATPAGE layouts. Is this still the case? The statement “The SUBCISPAGE2 control allows you to embed Application Designer pages such as a NATPAGE into another Application Designer page.” from NJX documentation doesn’t seem to imply that there is any exception for NATPAGE layouts.

TIA

---

<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:** [May 9, 2012, 4:52pm UTC](https://techcommunity.softwareag.com/t/using-subcispage2-containers/100510/2 "2012-05-09T16:52:22Z")

</div>

Yes, NATPAGE works via SUBCISPAGE2.

When you hit the login screen I assume it asks for the credential you haven’t passed or preset in the configuration.

While you can pass xciParameters.natuser you can’t get a password thru.

---

<div class="post-metadata">

**Author:** ![Todd\_Beckwith](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/todd_beckwith/32/388_2.png) [@Todd\_Beckwith](https://techcommunity.softwareag.com/u/Todd_Beckwith)\
**Post date:** [May 9, 2012, 7:03pm UTC](https://techcommunity.softwareag.com/t/using-subcispage2-containers/100510/3 "2012-05-09T19:03:18Z")

</div>

Thanks Wolfgang. I really appreciate your quick responses on this forum.

From your response, it sounds like you are suggesting that the only way to load a NATPAGE in a SUBCISPAGE2 container without the user going through a log in screen each time is to configure a session where User name and Password are already entered. If this is true, I would also assume that either all our users would log in as the same user (thereby making \*USER indistinguishable and requiring another method of capture unique users on initial login) or I would need X number of session configurations for each individual user.

Do most shops have individual sessions configurations for each user? If not, and assuming I am not misunderstanding something, the scenario provided in the documentation doesn’t sound like it would be a feasible solution in the real world as it doesn’t sound safe to allow automatic logins nor realistic to require users to login again in order to reuse a NATPAGE within an existing NATPAGE.

> [@](#):
>
> The following is one usage scenario for the SUBCISPAGE2 control:  
> Have a page which allows you to select a product from a list.  
> Have an embedded page which shows the details of the selected product.  
> This way, you can modularize complex or large screens. The details can also be delivered by a Natural application which is different from the one which does the search.

Am I still missing something here? Thanks.

---

<div class="post-metadata">

**Author:** ![Todd\_Beckwith](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/todd_beckwith/32/388_2.png) [@Todd\_Beckwith](https://techcommunity.softwareag.com/u/Todd_Beckwith)\
**Post date:** [May 9, 2012, 7:51pm UTC](https://techcommunity.softwareag.com/t/using-subcispage2-containers/100510/4 "2012-05-09T19:51:47Z")

</div>

It very well may be a misunderstanding on my part. The following path appears to load just fine without a login step. I need to do more playing with it but I might be on the right track.

```auto
/cisnatural/NatLogon.html&xciParameters.natsession=Main%20Menu&xciParameters.natparamext=stack%3D%28LOGON+RN2%3BSYSERRP%29
```

---

<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:** [May 9, 2012, 8:24pm UTC](https://techcommunity.softwareag.com/t/using-subcispage2-containers/100510/5 "2012-05-09T20:24:31Z")

</div>

Actually a NATPAGE in a SUBSCISPAGE2 will create a session with the credentials  
from the “parent” session, what I was trying to say is - if you hit a logon page  
or not usually depends on the session definition.

Good to hear you are on the right track 😉

---

<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:** [May 9, 2012, 9:37pm UTC](https://techcommunity.softwareag.com/t/using-subcispage2-containers/100510/6 "2012-05-09T21:37:58Z")

</div>

Hi Todd,

regarding an example: CTRSUB-P is the Natural programm which corresponds to the ctrlsubpage.xml layout.

Regarding sharing users + password in a session, did you try the following:

Let’s say you are using a session “MySession” in both, the page which contains the subcispage and the subcispage. You don’t need to specify the user and password in the session definition. Instead use to configuration tool of NJX ([http://techcommunity.softwareag.com/ecosystem/documentation/natural/njx825/webio/clientcfg-tool.htm#clientcfg-tool-session](http://techcommunity.softwareag.com/ecosystem/documentation/natural/njx825/webio/clientcfg-tool.htm#clientcfg-tool-session)) and do the following setting:  
Save user credentialsYes  
Share session userYes

Please let me know if this worked for you.

Thanks + Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![Todd\_Beckwith](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/todd_beckwith/32/388_2.png) [@Todd\_Beckwith](https://techcommunity.softwareag.com/u/Todd_Beckwith)\
**Post date:** [May 21, 2012, 3:01pm UTC](https://techcommunity.softwareag.com/t/using-subcispage2-containers/100510/7 "2012-05-21T15:01:26Z")

</div>

I have been a little sidetracked but I was somewhat successful in using subcispage2 container with a user session configured as described. I still have a bit of work to do before proving this will accomplish our goal but I’m off in the right direction now. Thank you Christine and Wolfgang. Your help is much appreciated.

---

<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:01pm UTC](https://techcommunity.softwareag.com/t/using-subcispage2-containers/100510/8 "2021-04-02T15:01:56Z")

</div>


