Hi! API_APPLICATION.GETID result with SESSION_ID, while expected APPLICATION_ID. |
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, |
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'). |