Dear Formspider Team,

I would like to get URL in PreOpen event. Is there any API to do that ?

For example I have the following application url:

http://10.20.0.80:8090/azerfon/main.jsp?oid=7027&msisdn=702000639

In API documentations I have found api_application.getbaseurl() but it gives me only: http://10.20.0.80:8090/azerfon/

How can I get whole URL?

Kindly waiting for your soonest response.

asked 26 Feb '14, 07:44

Khayyam's gravatar image

Khayyam
134
accept rate: 0%


Hi,

If you need to get a parameter from the URL at application preOpen event, you can use api_application.getBookmark api. The bookmark part of the URL is everything after a #, so if you create your url like this: http://10.20.0.80:8090/azerfon/main.jsp?oid=7027#msisdn=702000639 , then the getbookmark API will return msisdn=702000639. You can use this mechanism to give the application some startup parameters for example.

As far as i know there is no api to get the whole URL, but you could use a javascript function that you call using an external method to get it.
See this link to learn how to use external methods in Formspider: http://theformspider.com/learningcenter/how-to-use-external-method/

Best regards,
Michiel A.

link

answered 27 Feb '14, 15:06

Michiel%20A's gravatar image

Michiel A
5161546
accept rate: 13%

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:

×10

Asked: 26 Feb '14, 07:44

Seen: 898 times

Last updated: 27 Feb '14, 15:06


© Copyright Gerger 2017