The function API_APPLICATION.GETID seems to return the value of T_BDF_APPLICATIONSESSION.BDF_APPLICATIONSESSION_OID, where I would expect the value of T_BDF_APPLICATION.BDF_APPLICATION_OID. Is this correct behaviour?

And if so, is there another function that returns the oid of the current application?

asked 28 Sep '12, 05:53

Peter%20W's gravatar image

Peter W
accept rate: 0%

Hi Peter,

All APIs always return run-time values of the object. That's why it returns the bdf_applicationsession_oid. We currently do not have API to get current application id.



answered 28 Sep '12, 06:39

Samet%20Basaran's gravatar image

Samet Basaran
accept rate: 24%

Hi peter, you can use a function like this : function getApplicationID(pSessionID in number := null) return number is fAppID number; begin select bdf_application_oid into fAppID from formspider.t_bdf_applicationsession where bdf_applicationsession_oid = nvl(pSessionID, api_application.getID); return fAppID; exception when OTHERS then return null; end;

Don't forget to add the correct grants to the calling user. I usualy "grant select any table".



answered 28 Sep '12, 06:52

Vlisidis%20Akis's gravatar image

Vlisidis Akis
accept rate: 5%

edited 28 Sep '12, 10:31

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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



Asked: 28 Sep '12, 05:53

Seen: 2,140 times

Last updated: 28 Sep '12, 10:31

© Copyright Gerger 2017