Hi,

Is it possible to pass and retrieve a parameter from URL at the start of application?

For the example below, I have this URL but then I have to create a separate version for other region. http://fspider_server:8080/OKI_Apps/main.jsp?name=Apps1

Instead of creating another application, I plan to pass a parameter at the URL and retrieve then in OnLoad event then process it based from "region" parameter. http://fspider_server/formspider/main.jsp?name=Apps1&region=USA http://fspider_server/formspider/main.jsp?name=Apps1&region=UK http://fspider_server/formspider/main.jsp?name=Apps1&region=ASIA http://fspider_server/formspider/main.jsp?name=Apps1&region=ASIA

Have tried it but cannot make it work. Is this possible?

asked 29 Apr '13, 19:15

marnie's gravatar image

marnie
1112
accept rate: 0%

edited 25 Oct '13, 07:09

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5


Hi Marnie,

You can add your parameters to the URL as a bookmark string and then retrieve this bookmark string in the postOpen event of your application, using the api_application.getBookmark API.

In your example, the application URL should be like:

http://fspider_server/formspider/main.jsp?name=Apps1#region=ASIA

For the URL above, the api_application.getBookmark API will return region=ASIA as the bookmark value.

You can also add multiple parameters to your URL:

http://fspider_server/formspider/main.jsp?name=Apps1#region=ASIA&department=IT

For the URL above, the API will return region=ASIA&department=IT as value.

Hope this helps,
Ibrahim

link

answered 30 Apr '13, 03:19

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
1.5k5
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5
×4
×3
×2
×2

Asked: 29 Apr '13, 19:15

Seen: 2,669 times

Last updated: 25 Oct '13, 07:09


© Copyright Gerger 2017