How Can I Launch A Web Page From Forms?? [message #77631] |
Wed, 24 October 2001 15:37 |
ron
Messages: 50 Registered: July 1999
|
Member |
|
|
Is there a way in Forms 6i to launch a seperate web page? I want to create a button and once you press it, it goes to a URL. Any thoughts?
Thanks, Ron
----------------------------------------------------------------------
|
|
|
Re: How Can I Launch A Web Page From Forms?? [message #77639 is a reply to message #77631] |
Thu, 25 October 2001 11:30 |
vinay
Messages: 27 Registered: December 1999
|
Junior Member |
|
|
Use the built in Web.Show_Document. Additional info from Help section
SHOW_DOCUMENT(url, target);
Built-in Type: unrestricted procedure
Enter Query Mode: yes
Description:
Specifies the URL and target window of a Web application.
Parameters:
url Datatype is VARCHAR2. Specifies the Uniform Resource Locator of the document to be loaded.
target Datatype is VARCHAR2. Specifies one of the following targets:
_SELF Causes the document to load into the same frame or window as the source document.
_PARENT Causes the target document to load into the parent window or frameset containing the hypertext reference. If the reference is in a window or top-level frame, it is equivalent to the target _self.
_TOP Causes the document to load into the window containing the hypertext link, replacing any frames currently displayed in the window.
_BLANK Causes the document to load into a new, unnamed top-level window.
Restrictions:
Can only be used from within a form run from the Web.
Example:
/*
** Built-in: WEB.SHOW_DOCUMENT
** Example: Display the specified URL in the target window.
*/
BEGIN
Web.Show_Document(‘http://www.abc.com’, ‘_self’);
END;
----------------------------------------------------------------------
|
|
|
Re: How Can I Launch A Web Page From Forms?? [message #77641 is a reply to message #77631] |
Fri, 26 October 2001 11:51 |
Srinivas Konda
Messages: 29 Registered: October 2001
|
Junior Member |
|
|
Web.show_docuemnt will work for only the web application forms, The following will work for client server also.
Please let me know if you know any other way to open a web page from a form.
DECLARE
AppID PLS_INTEGER;
WebBrowser VARCHAR2(100) := 'C:Progra~1Intern~1iexplore.exe';
WebPage VARCHAR2(100) := 'www.abc.com';
BEGIN
AppID := DDE.App_Begin(WebBrowser || ' ' || WebPage, DDE.APP_MODE_NORMAL);
EXCEPTION
WHEN DDE.DDE_APP_FAILURE THEN
Message('Cannot start Internet Explorer web browser');
END;
----------------------------------------------------------------------
|
|
|
|
Re: How Can I Launch A Web Page From Forms?? [message #82642 is a reply to message #77639] |
Mon, 16 June 2003 12:51 |
Cantor
Messages: 3 Registered: June 2003
|
Junior Member |
|
|
I have a problem with this Web.Show_document method. My '_target' is '_blank' and it works well. My problem is that I have four documents to show in different browsers. So I call Web.Show_document('MyURL', '_blank') four times whit different URLs, but only one browser window opens and shows the four documents in the same window. I must use the "BACK" button to navigate between each document. Is there a way to open four different windows with this method?
Thanks,
Cantor
|
|
|
|