Solved

How to add initcontext parameters to Aurena URL

  • 11 November 2021
  • 3 replies
  • 357 views

Badge +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

icon

Best answer by Vidar 12 January 2022, 11:12

View original

This topic has been closed for comments

3 replies

Badge +3

Also no success with:

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

Userlevel 1
Badge +3

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.

Badge +3

@Vidar: Thank you so much for helping me!