Skip to main content
Solved

How to add initcontext parameters to Aurena URL

  • November 11, 2021
  • 3 replies
  • 496 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.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

3 replies

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

Forum|alt.badge.img+3
  • Do Gooder (Partner)
  • 4 replies
  • 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)
  • 5 replies
  • January 12, 2022

@Vidar: Thank you so much for helping me!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings