Getting browser URL from form
Dears,
I'm running some forms 10gr2, I would like to get the browser URL inside my form. How could I do something like this?
Thanks in advance.
Also with PJC bean is possible..
http://peterv6i.blogspot.com/2012/04/reading-applet-parameters-in-oracle.html
or
package in2.client;
import java.io.PrintStream;
import java.net.InetAddress;
import oracle.forms.handler.IHandler;
import oracle.forms.properties.ID;
import oracle.forms.ui.VBean;
public class ClientInfo extends VBean
private static final ID CLIENT_IP = ID.registerProperty("CLIENT_IP");
private static final ID CLIENT_NAME = ID.registerProperty("CLIENT_NAME");
private static final ID CLIENT_OS = ID.registerProperty("CLIENT_OS");
private static final ID CLIENT_USER = ID.registerProperty("CLIENT_USER");
private static final ID HOST_URL = ID.registerProperty("HOST_URL");
private IHandler mHandler;
private String hostAddress = "";
private String hostName = "";
private String hostOs = "";
private String hostUser = "";
private String hostURL = "";
public ClientInfo()
try
System.out.println("+----------------------+");
System.out.println("+ ClientInfro PJC +");
System.out.println("+ Peter Valencic +");
System.out.println("+----------------------+\n");
this.hostAddress = InetAddress.getLocalHost().getHostAddress();
this.hostName = InetAddress.getLocalHost().getHostName();
this.hostOs = System.getProperty("os.name");
this.hostUser = System.getProperty("user.name");
System.out.println("Host adress: " + this.hostAddress);
System.out.println("Host name: " + this.hostAddress);
System.out.println("Host op. syst: " + this.hostOs);
System.out.println("Host username: " + this.hostUser);
System.out.println("+----------------------+\n");
catch (Exception e)
System.out.println("Init error: " + e.toString());
public void init(IHandler handler)
super.init(handler);
this.mHandler = handler;
public Object getProperty(ID pid)
if (pid == CLIENT_IP) {
System.out.println("Client IP: " + this.hostAddress);
return "" + this.hostAddress;
if (pid == CLIENT_NAME) {
System.out.println("Client Name: " + this.hostName);
return "" + this.hostName;
if (pid == CLIENT_OS) {
System.out.println("Client os: " + this.hostOs);
return "" + this.hostOs;
if (pid == CLIENT_USER) {
System.out.println("Clientuser: " + this.hostUser);
return "" + this.hostUser;
if (pid == HOST_URL) {
hostURL = this.mHandler.getApplet().getDocumentBase();
System.out.println("Host Url: " + this.hostURL);
return "" + this.hostURL;
return super.getProperty(pid);
}
Similar Messages
-
How get browser URL from portlet JSR-168?
I use Oracle Portal. And I have problem.
How get browser URL from portlet JSR-168?Normaly it is
http://server:port/portletContextRoot
Did you create the portlet with JDeveloper? When you dpeloy the portlet to your application server, JDeveloper should output the URL of the portlet test page in the deployment output feedback. -
Get browser url from 11g form?
Is there any function to get the current url of the browser that the 11g form applet is running in?
Or at least the server:port part?
ThanksIn version 11 you can use javascript to extract the browser url. For example:
Declare
JS_in varchar2(32767);
rtn varchar2(1024);
Begin
-- JS_in is the javascript funtion you want to call.
JS_in := 'location.href';
rtn := WEB.JAVASCRIPT_EVAL_FUNCTION (JS_in);
-- "rtn" should contain the complete URL as seen in the browser address bar.
-- Do something with rtn.
End; -
How to call a URL from forms ?
Dear All,
I would like to invoke / call a URL from forms. I know we can make a call Using Web.show_document. But this will execute in a browser.
What i need to do is, i have to send a request to by calling an URL, that should not visible to any body.
This is my requirement, please help if you know.
Thanks
Balajihi,
here is a quick example : (data from url returns as a clob. you need to write it at db. and call from forms.)
FUNCTION Get_DataFromUrl(pUrl IN VARCHAR2,pProxy IN VARCHAR2,pData IN OUT CLOB) RETURN NUMBER IS
vRcv UTL_HTTP.HTML_PIECES;
vData CLOB;
eNoDataReceived EXCEPTION;
BEGIN
UTL_HTTP.SET_DETAILED_EXCP_SUPPORT(TRUE);
-- Get data pieces from Url
vRcv := UTL_HTTP.REQUEST_PIECES(pUrl,Proxy => pProxy);
IF vRcv.COUNT < 1 THEN
RAISE eNoDataReceived;
ELSE
-- Append varchar2 table data into clob variable
DBMS_LOB.CreateTemporary(vData,FALSE,DBMS_LOB.CALL);
FOR i IN 1..vRcv.COUNT LOOP
DBMS_LOB.WriteAppend(vData,LENGTH(vRcv(i)),vRcv(i));
END LOOP;
-- Copy local data into return variable
DBMS_LOB.Copy(pData,vData,DBMS_LOB.GetLength(vData));
DBMS_LOB.FreeTemporary(vData);
END IF;
RETURN SUCCESS;
EXCEPTION
WHEN eNoDataReceived THEN
RETURN FAILURE;
WHEN UTL_HTTP.INIT_FAILED THEN
RETURN FAILURE;
WHEN UTL_HTTP.Request_Failed THEN
RETURN FAILURE;
WHEN OTHERS THEN
RETURN FAILURE;
END Get_DataFromUrl;
hope this helps.
Engin. -
Hello.
I have: a link, a report, a form
When I set the link on a column on the report, it calls the form. (I also have edited the link so that the primary key columns are passed as parameters to the form to provide UPDATE/DELETE.)
What I want to do is: Once the user submits the form, the form should redirect to the page where the report was displayed, and pass the parameters that were on that previous page. (basically, go back to where the user came from--exact url, which shows the update on the report) Does anyone know how to do this?
The best solution would be for the form to open on the same page, then the form automatically refreshes the same url. Any ideas?
(I have been looking at it too long, need fresh eyes/thoughts.!)
Thanks!
Robin
Message was edited by:
robin.millerTake a look at this thread, I think it'll help you.
How to get page url from a Dynamic Page? -
Dears
We are working with system with 2 application server IPs and one Real IP (which is able to be accessed through internet)
I would like to know the URL is the user using in order to use his IP to open something else from the system.
Chcking the host name not usesful because if user connect from home using Real IP it return the AS host name which real IP redirct to it.
I need to know how to get the URL of the session from the form or to know whether the user connected using the Real IP or not.
(Oracle forms 10gR2)I think you can get a URL from/with a PJC (java pluggable component) from/with IHandler interface..
Try this bean.. You have a property with name HOST_URL.. (with some modification you can also read applet parameters).. (I have done this now but I have not jet tested it)....but I thik this should work...
You have also other parameters to get client IP addres and hostname...
package in2.client;
import java.io.PrintStream;
import java.net.InetAddress;
import oracle.forms.handler.IHandler;
import oracle.forms.properties.ID;
import oracle.forms.ui.VBean;
public class ClientInfo extends VBean
private static final ID CLIENT_IP = ID.registerProperty("CLIENT_IP");
private static final ID CLIENT_NAME = ID.registerProperty("CLIENT_NAME");
private static final ID CLIENT_OS = ID.registerProperty("CLIENT_OS");
private static final ID CLIENT_USER = ID.registerProperty("CLIENT_USER");
private static final ID HOST_URL = ID.registerProperty("HOST_URL");
private IHandler mHandler;
private String hostAddress = "";
private String hostName = "";
private String hostOs = "";
private String hostUser = "";
private String hostURL = "";
public ClientInfo()
try
System.out.println("+----------------------+");
System.out.println("+ ClientInfro PJC +");
System.out.println("+ Peter Valencic +");
System.out.println("+----------------------+");
System.out.println("+Dat spr: 10.09.2007 +");
System.out.println("+Dat spr: 04.07.2008 +");
System.out.println("+Dat spr: 10.07.2008 +");
System.out.println("+Dat spr: 15.11.2010 +");
System.out.println("+----------------------+\n");
this.hostAddress = InetAddress.getLocalHost().getHostAddress();
this.hostName = InetAddress.getLocalHost().getHostName();
this.hostOs = System.getProperty("os.name");
this.hostUser = System.getProperty("user.name");
System.out.println("Host adress: " + this.hostAddress);
System.out.println("Host name: " + this.hostAddress);
System.out.println("Host op. syst: " + this.hostOs);
System.out.println("Host username: " + this.hostUser);
System.out.println("+----------------------+\n");
catch (Exception e)
System.out.println("Napaka pri inicializaciji beana: " + e.toString());
public void init(IHandler handler)
super.init(handler);
this.mHandler = handler;
public Object getProperty(ID pid)
if (pid == CLIENT_IP) {
System.out.println("Client IP: " + this.hostAddress);
return "" + this.hostAddress;
if (pid == CLIENT_NAME) {
System.out.println("Client Name: " + this.hostName);
return "" + this.hostName;
if (pid == CLIENT_OS) {
System.out.println("Client os: " + this.hostOs);
return "" + this.hostOs;
if (pid == CLIENT_USER) {
System.out.println("Clientuser: " + this.hostUser);
return "" + this.hostUser;
if (pid == HOST_URL) {
hostURL = this.mHandler.getApplet().getDocumentBase();
System.out.println("Host Url: " + this.hostURL);
return "" + this.hostURL;
return super.getProperty(pid);
} -
Automator Stops Responding while trying to perform "Get Image URLs from Webpage"
I have seen it in many tutorials, and it seems strait forward enough, so here is my order of events for my scriptl;
Get Current Webpage from Safari
Get Image URLs from Webpage [linked from these webpages]
Download URLs [Downloads]
However when I run this script it returns the get current webpage quickly but then hangs on Get Image URLs from webpage either never passes or takes 700+ seconds to move to the next step.
The times it did pass to the next step it worked 98% still missed images occasionaly.
After I figure out how to fix this issue, I am looking for a way to make it create a new folder, and name it according to the sub directory of the webpage, for example:
http:\\www.mypictures.com\Birthday\01.JPG
http:\\www.mypictures.com\Birthday\02.JPG
would create folder Birthday, and save images 1 and 2
Then in the future I want to download another set such as;
http:\\www.mypictures.com\MothersDay\01.JPG
http:\\www.mypictures.com\MothersDay\02.JPG
As these are both named 01.JPG the sets would overwrite, or add strange numbers and not divide by set by default;
So I need this script to create folders based on Directory (portion of url) In my example it would be MothersDay, and Birthday folders.
Any help would be greatly appreciated!
Thanks in advance!
MikeI should add, it has simply frozen and stopped responding about 95% of the 20 times or so I have run it. I have tried rebooting (not sure if that helps on Mac, I'm still new to the OS been a windows user for a long time but so far I love my Mac).
-
How can I get specific URLs from outlook to open in firefox where IE is my default browser
I require to open specific URLs from outlook to be opened in Firefox. However, IE will be my default browser.
Try this tutorial ;)
http://support.mozilla.com/en-US/kb/Remembering+passwords -
Hi!
i have created a website using ARCIMS - (if you are not familiar with ARCIMS it is software that is used to create maps) I now want to call URL (website) from a button on my form. I have tried to use web.show_docuement and I am getting errors such as 'register failk'.
I was able to run this same URL succesfuly from my browser. any ideas please?!?Kayla.
web.show_document() is the right buit-in to do this and it works the same as calling a URL from a Browser. if it says "register failed" (not sure if I am correctimng your error message the right way) then this does not look like a Forms error message but one coming from teh program you call. Please check teh URL that is composed before calling web.show_document(). Check for invisible characters added to it.
Frank -
Calling browser/URL from the link on webpage
Dear Experts,
My requirement is, I have a webdynpro component, I need to add a link on particular view which calls another webpage(either in a new window or in same window) if I click on that.
To fulfill my requirement I used CALL_BROWSER FM.
The problem here is am getting dump from the FM.
Dump text:
Error in the ABAP Application Program
The current ABAP program "CL_GUI_FRONTEND_SERVICES======CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
Am getting this error from cl_gui_frontend_services=>execute (inside CALL_BROWSER)
Please guide me how to proceed here (I guess I should not use CALL_BROWSER since already am in browser).To open a URL in a separate window you can use the following code,
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component type ref to if_wd_component.
data lo_window type ref to if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
EXPORTING
URL = 'http://www.google.co.in/'
MODAL = ABAP_FALSE
HAS_MENUBAR = ABAP_TRUE
IS_RESIZABLE = ABAP_TRUE
HAS_SCROLLBARS = ABAP_TRUE
HAS_STATUSBAR = ABAP_TRUE
HAS_TOOLBAR = ABAP_TRUE
HAS_LOCATION = ABAP_TRUE
RECEIVING
WINDOW = lo_window.lo_window->open( ).
Hope it helps!
Regards,
Radhika. -
How can you find the url location of an flv file.... for
example how could i find the flv of a youttube video... this must
be possible as their are sites that enable you to download the flv.
kind regards J.... p.s. merry christmas.So there is no direct way to get the url into flash?...
The thing is that I`m making some multi-languaged banners for another programmer. The url`s used in his site have a ln parameter from which I could get the language.
So then... I could call a JavaScript function with ExternalInterface from flash and get the url then move on with my bussiness form there, right? I dont`t know Java script though... You think you could give me the code?... Thanks in advance! -
How get all components from form Jdev10.1.3.4
hi
I have a form on her field is not related to VO. Pagedef empty.
each element has the id and Binding.
<af:inputText label="#{r['questionnaire.surname']}"
required="true" id="surname"
binding="#{QuestionnaireBean.surname}"
/>I want to get an array of elements.
in obtaining a list of bindings
BindingContainer bindings = getBindings ();
bindings.getAttributeBindings ();null ((((((As you are asking your empty pagedef, which is what you do with
BindingContainer bindings = getBindings ();
bindings.getAttributeBindings ();it returns null. This is expected behavior.
You have to walk the component tree to get all components check each for it's type and get the information from the component itself. You can use something like
// reset all the child uicomponents
private void getAllUIItems(AdfFacesContext adfFacesContext,
UIComponent component){
List<UIComponent> items = component.getChildren();
for ( UIComponent item : items ) {
getAllUIItems(adfFacesContext,item);
if ( item instanceof RichInputText ) {
RichInputText input = (RichInputText)item;
//do your work here e.g. store id in an array
} else if ( item instanceof RichInputDate ) {
RichInputDate input = (RichInputDate)item;
//do your work here e.g. store id in an array
}you may have to alter the signature of the method to return the array of ids ...
Timo -
How to get current URL from Internet Explorer ?
Hi,
I have design an add-on for IE and I'm
trying to get URL from IE which is currently opened that is which is currently user sees. Is there any way to get it? I want to store that address in label and use it for something useful. Is it possible with C# ?
I have did the following code to get current URL but it showing last opened URL instead of current URL which is user see
using SHDocVw;
SHDocVw.ShellWindows shellWindows = new SHDocVw.ShellWindows();
string filename;
foreach (SHDocVw.InternetExplorer ie in shellWindows)
filename = Path.GetFileNameWithoutExtension(ie.FullName).ToLower();
if (filename.Equals("iexplore"))
label1.Text=ie.LocationURL;
label1.Text = ie.LocationName;
and I have tried this one also
foreach (InternetExplorer ie innew ShellWindows())
label1.Text = ie.LocationURL.ToString();
label2.Text = ie.LocationName.ToString();
Please give me any suggestion or code to solve this problem.
Thanks.
PriyankaYou already got addon running in the active ie instance. You just need to catch the WindowStateChanged event in every instance so you can write down the last event with OLECMDIDF_WINDOWSTATE_USERVISIBLE somewhere. When you need the active IE instance, just
pull from your save.
Note an IE tab may crash and take your addon with it. It is better to start a broker process to store your global data.
Visual C++ MVP -
How do I get a url from quicktime?
I'm using iWeb to host my podcast. http://web.me.com/krushjudgement/Site/Giant-SizePodcast/Giant-SizePodcast.html
I'd like to have people visit my blogspot for updates. http://giantsizepodcast.blogspot.com/
Right now I'm using podtrac to stream, but I realized it might be easier just to stream the quicktime versions from my iWeb. I'd like to embed the episodes in quicktime format right onto my blog posts. I've found embed codes, but I don't know how to get the proper urls from iWeb.
Any ideas?Are you trying to retrieve the material?
If so, open the page in Firefox-->Firefox Menu-->File-->Save Page As-->Save As: Web Page Complete...save to a folder. Firefox will download the html, javascript, css, images and the mp3 audio.
It took a few minutes for the page to load and another minute or two to download... And I'm on a very fast connection. I was getting around 5-6 MBs during the download.
The mp3 is 5 levels above the html. I have no idea what level or folder the video is at...
Message was edited by: David M Brewer -
Accessing an URL from Forms Java Bean
Dear Oracle Gurus,
Please help me
I have an Oracle Application Server 10g Rel1 in production. I have oracle forms running with a java bean. I am passing an URL to this java bean to fetch and display an image.
This url belongs to another web server (IIS server running a ASP.net application). If i call this url in internet explorer window it is displaying the image. If the same URL if i am calling from forms applet it is not working. When i checked in the java console by setting up trace level to 5 no error message.
I have checked in the midtier/j2ee/home/log/home_default_island_1 folder in the log file no error messages. I have setup the internet explorer --> internet options --> security --> custom level --> miscellaneous --> access data across domain --> enable.
Please give me a solution.
Best Regards
Syed JalalHello,
I don't know how we can help you, because you use a Java Bean and did not tell us anything about this bean. A bean is like a "black box", so we cannot give you any help at all without the code.
Francois
Maybe you are looking for
-
Dear Apple Support, Good day to you. This is to report the problem i encountered when i updated my Ipad mini to the new IOS 8.1.. After the update my Ipad restart and after that it appears a picture that need to connect to itunes and need to restore
-
How do I sync an iPhone to a new computer?
Ok so I have a Mac with my own user account and itunes, iphone and ipad etc. My partner was using her windows laptop for syncing her itunes for her iphone. She has now created a user account on my mac to use instead of her laptop. To enable us to hav
-
Mac keeps freezing (Spinning Wheel)
I'm a new Mac User and I've had my Mac for over a year and I just started to get the spinning pinwheel. It is very frustrating because it stops me every few minutes as I am working on my computer. I ran the Etrecheck and here are my results: Any g
-
Ipod classis with videos not showing on TV with connection - Help
Got a new Ipod classic as I got into an accident with my first ipod. Trying to play videos (movie) from ipod classic to tv. Bought Belkin video connector and use with my old ipod. With the ipod classic, when I plug in, i can only hear the sound of th
-
Change the iTunes store an app is associated with
I have two active iTunes store accounts in two countries because I have homes in both locations (U.S. and another country). These two accounts allow me to download content that is available only in one of those countries to my one iPhone. I know how