Hallo everyone,

is there a api_call like the ORA-Forms OPEN_FORM ?

Background: Having LoginScreen with Menu, and menu entry calls another application. I don't want place many windows/datasource in one application.

I don't found anything in the API Doc.

Regards Uwe K

asked 30 Aug '12, 02:03

Uwe%20K's gravatar image

Uwe K
1123
accept rate: 0%


Hi Uwe,

You can use api_application.run API to open the indicated Formspider application.

Syntax:

api_application.run(in_desktoppath_tx       varchar2, 
                    in_weblink_tx           varchar2, 
                    in_browserwindowname_tx varchar2, 
                    in_transferfocus_yn     varchar2, 
                    in_keepsession_yn       varchar2)

Where:

in_weblink_tx: The URL of the Formspider application to be opened

in_browserwindowname_tx: The window name in browser. To run an application in the same browser tab with your curent application you can use _self as in_browserwindowname_tx parameter value.

in_transferfocus_yn: Transfer focus to window in browser or left focus on current window

in_keepsession_yn: Runs new application in the same session with your current application. By this way multiple applications can communicate via session variables with each other.

Example:

api_application.run(in_weblink_tx           => 'http://localhost:8080/formspider/main.html?name=app1'
                   ,in_browserwindowname_tx => '_self'
                   ,in_keepsession_yn       => 'Y');

This code opens the application named "app1" in the same browser tab with your current application by sharing the session variables.

You can find more information about how to run another application from your current application and share the session across them in this tutorial.

Regards, Ibrahim

link

answered 30 Aug '12, 03:59

Ibrahim%20Sandalli's gravatar image

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

thanks ibrahim, i thought about that api, but was confused about the first parameter, hoped, that the name of the app can be used, to avoid hard coded url. Is there a way to get the current url ?

Thanks Uwe

link

answered 30 Aug '12, 04:13

Uwe%20K's gravatar image

Uwe K
1123
accept rate: 0%

Hi Uwe,

For instance there is no way to get the current url. On the next release (v1.2), I think we can either implement an API where you can give the app name as the parameter instead of the app URL or an API which returns the current URL.

I registered this feature to our issue management system. Thank you for your advise.

Ibrahim

link

answered 30 Aug '12, 06:26

Ibrahim%20Sandalli's gravatar image

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

Hi Uwe,

Since version 1.2, you can use api_application.getBaseURL API to get the current url.

Regards, Ibrahim

(21 Dec '12, 09:32) Ibrahim Sand... ♦♦
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:

×27
×4
×1
×1

Asked: 30 Aug '12, 02:03

Seen: 16,629 times

Last updated: 21 Dec '12, 09:32


© Copyright Gerger 2017