Skip to main content
Solved

How to add initcontext parameters to Aurena URL

  • November 11, 2021
  • 3 replies
  • 606 views

Forum|alt.badge.img+3

I tried to use the 'initcontext' of the 'page' to define url parameters. The problem is, that I have no idea how to put the parameter into the url. According to this link, I've built this so far:

page CCtiLandingPage using PhoneNumbers {
initcontext PrepareNumber;
}

initcontext PrepareNumber {
parameter NumberRaw Text;
init command {
execute {
info("${NumberRaw}");
}
}
}

The most obvious variant didn't work:
[...]/main/ifsapplications/web/page/CCtiLandingPage/CCtiLandingPage?NumberRaw=’123

As a result, I get an empty info box.
Can someone tell me how to write this URL to pass the parameter?

IFS Aurena framework version: 10.13.19.0
IFS Aurena client version: 10.13.120.0
IFS OData provider version: 10.13.1.0

Best answer by Vidar

Hi, You should try to use the following url

 [...]/main/ifsapplications/web/page/CCtiLandingPage/CCtiLandingPage;initcontext=NumberRaw:’123

Use a semicolon instead of question mark before the initcontext.

This topic has been closed for replies.

3 replies

Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • November 11, 2021

Forum|alt.badge.img+3
  • Do Gooder (Partner)
  • Answer
  • January 12, 2022

Hi, You should try to use the following url

 [...]/main/ifsapplications/web/page/CCtiLandingPage/CCtiLandingPage;initcontext=NumberRaw:’123

Use a semicolon instead of question mark before the initcontext.


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Customer)
  • January 12, 2022

@Vidar: Thank you so much for helping me!