Hi!

API_APPLICATION.GETID result with SESSION_ID, while expected APPLICATION_ID.

asked 03 Aug, 08:17

Konstantine%20Zakharov's gravatar image

Konstantine ...
112
accept rate: 0%

edited 04 Aug, 02:09


Hi Konstantine,

This API is intended to return the instance ID of the application, not the design time ID. This is somewhat ambigious in the documentation and the name of the API is indeed misleading. From the beginning though, the intention has been to return the runtime instance ID of the application.

The getID API does not return the session ID. It returns the application session ID which is the unique runtime ID of an application inside a Formspider session. One Formspider session may contain more than one application running.

Hope this helps.

Kind Regards,
Yalim

link

answered 07 Aug, 20:06

Yalim's gravatar image

Yalim ♦♦
2.8k5
accept rate: 21%

Hi, Yalim! Thank you.

I need to get the APPLICATION_ID (the design time ID) in application runtime. I create typical LOGIN procedure and replicate it to all my Ora packages for FS-apps. When it is known APPLICATION_ID, procedure LOGIN use API_SECURITY.HASKEY('OID'||APPLICATION_ID||'_APP_KEY') for decision if user has access or no. I studied API_APPLICATION.getbaseurl and API_APPLICATION.getbookmark function, but it's not contain OID=nnnn...

The best way to have actual information about APPLICATION would be API_APPLICATION.GET_APPLICATION_NAME. In this case, I could create '<my_appl_name>_KEY' in FS-Repository and use it with API_SECURITY.HASKEY(API_APPLICATION.GET_APPLICATION_NAME||'_KEY').

link

answered 08 Aug, 06:08

Konstantine%20Zakharov's gravatar image

Konstantine ...
112
accept rate: 0%

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:

×7

Asked: 03 Aug, 08:17

Seen: 81 times

Last updated: 08 Aug, 06:08


© Copyright Gerger 2017