SUBCISPAGE2

I want to show in a subpage a page that I had created, but it doesn’t have a URL defined.

The page was created and I wrote the page link as follow
PAGE:=‘http://localhost:8080/cisnatural/servlet/StartCISPage?PAGEURL=/cisnatural/NatLogon.html&xciParameters.natserver=172.16.24.27&xciParameters.natport=61275&xciParameters.natsession=Local&xciParameters.natuser=NDV&xciParameters.nattimeout=0

I could show in subpage a existing page on the internet writing the URL, but I want to show a page layout created in Natural ONE

Is it possible?

Unless your session named “Local” kicks off a page you will have to tell it which one,
for example, from the documentation of SUBCISPAGE2:

/cisnatural/NatLogon.html&xciParameters.natsession=Local&xciParameters.natparamext=stack%3D%28LOGON+SYSEXNJX%3BCTRSBI-P%29

xciParameters.natparmext starts a Natural program which then issues a PROCESS PAGE

How I can know the name of my session?
I’m new in this, I obtained the route executing the program I want to show, and copy the url showed on the browser, and pasted it in the program that contained the SUBCISPAGE2

My page is showing as follow:
[img]

DEFINE DATA LOCAL
1 XPAGE1 (A) DYNAMIC
1 XPAGE2 (A) DYNAMIC
1 XPAGEPRO
2 CHANGEINDEX (I4)
2 PAGE (A) DYNAMIC
2 PAGEID (A) DYNAMIC
END-DEFINE

PAGE:=‘/cisnatural/NatLogon.html&xciParameters.natserver=172.16.24.27&xciParameters.natport=61275&xciParameters.natsession=Local&xciParameters.natuser=NDV&xciParameters.nattimeout=0’
XPAGE2:=‘http:\www.mopt.go.cr’
PROCESS PAGE USING “PRINCIPA”
*
DECIDE ON FIRST *PAGE-EVENT
VALUE U’nat:page.end’ …

Ok, I see what your problem is :wink:

The “session” is less obvious when developing Ajax components in NaturalONE rather than Natural for Ajax directly,
hopefully this dscription in the NaturalONE documentation gives you the missing bit of information.

Thank’s, I will ckeck it out.