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
Balaji

hi,
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.

Similar Messages

  • How to call Java class from Forms 6i?

    Hi friends,
    I need to call a Java class from my Forms 6i application.
    (It runs under WIndows XP. It's a client/server application and I have only the client and the Form builder installed on my PC)
    I don't know almost anything about Java's world so your help would be very useful for me.
    Could you tell me exactly what i have to do?
    I've read in metalink several Notes, but they supposed that the Java architecture is already installed in the computer.... I only have the default installation of Developer 6i... so I would need to know:
    - How to install/configure the neccesary to execute Java classes without problem
    - How to invoke the .class from Forms 6i.
    Thanks a lot
    Jose.

    And also this one:
    Problem Description
    Installed Forms 6i Rel 2 on a MS Windows machine. When trying to Import the Java
    Classes getting the errors
    PDE-UJI0001 Failed to create the JVM
    Solution Description
    You need to to install JDK 1.2.2 to run the Java Importer. And set the PATH's
    and classpath's correctly.
    Explanation
    1. Download and install the JDK 1.2.2.
    Possibly available at: http://java.sun.com/products/archive/
    2. Assuming the JDK 1.2.2 is installed in c:\jdk1.2.2 directory and the JRE in
    C:\PROGRA~1\JAVASOFT\JRE\1.2 directory; ORACLE_HOME=C:\Dev6iR2.
    Set the PATH to
    set PATH=c:\jdk1.2.2\bin;C:\PROGRA~1\JAVASOFT\JRE\1.2\bin;C:\PROGRA~1\JAVASOFT\JRE\1.2\bin\classic;%PATH%
    ( If you are using ias9i then the JDK 1.2.2 comes with the ias installtion ,
    in this case please set the PATH to
    D:\ias9i\Apache\jdk\bin;D:\ias9i\Apache\jdk\jre\bin;D:\ias9i\Apache\jdk\jre\bin\classic;%PATH% )
    3. Set the CLASSPATH to set CLASSPATH=%CLASSPATH%;C:\Dev6iR2\TOOLS\COMMON60\JAVA\IMPORTER.JAR;.
    (If you do not set the CLASSPATH correctly you will get the error
    PDE-UJI002 Unable to find the required java importer classes)
    4. Now run the Forms Builder by using the command.
    C:\Dev6iR2\bin\ifbld60.exe
    Now the Java Importer Should Run fine.
    Francois

  • Calling a url from forms

    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

  • How to call HTML file from forms 6i

    Please can any one told me how i can call HTML file placed in my computer in specific path from forms 6i
    i tried web.show_Document('file path','_blank');
    but it doesn't work with me i don't know why and it doesn't give me any error
    thanks

    thanks you for your reply
    but it still not working with me
    i tried this
    host('iexplore C:\PPF\UserManual\index.htm');
    is it true, any advice

  • How to Call Image Viewer from Form application

    Hi,
    how to call Image viewer using host command on oracle form 6i.
    i trying using host command on local/client application .. and it is working ...
    but when i try on server application (EBS - UNIX) it does not working ...
    thanks ..
    regards,
    safar

    Are you using Forms 6i in client/server mode or web deployed? I'm not sure what you mean by 'try on server application"
    Remember that when using a web deployed architecture, a host command will execute the command on the Forms application server, NOT on the client.
    To execute host commands on the client you would have to use WebUtil, but that's not available for Forms 6i. Perhaps there are PJC's out there that can do it for you, but I don't want to get in all those details without me knowing if it is relevant for you.

  • How to call a URL from a button

    Hi Experts,
    In my requirement I have to  call a URL in the same page,through a button,
    so please tell me how to acheive this.
    Regards
    Upendra

    Hi,
    use the below code to call the URL onAction of the Button,
    IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(
    "<place URL here example http:www.sdn.sap.com>",
    "<description about the URL >",
    false);
    window.open();
    Regards,
    ramesh

  • How to call html webpage from forms 9i

    Dear friend,
    I have installed oracle 9i Forms and have developed an application wherein, the first page is in html and from there goes to my application. Everything works well except when i exit from the forms it should go to the html page but instead a blank webpage on runtime occurs. Please tell how to get it done.
    When i installed oracle 9i forms to single dedicated server, on runtime it displays nothing instead asking atlease one computer to be connected through network and ie displays Offline not connected to internet explorer. How could I work on forms 9i without getting connected to network and use runtime on webpage.

    Hi,
    you can use a post form trigger and call web.show_document('URL Here','_this');
    Frank

  • How to call .aspx URL  from OSB

    Hi
    can any one please suggest how I need to call .aspx from OSB
    eg: http://<host>/ExternalServices/Customer/xyz/Posto.aspx
    Regards,
    Lavanya Sarma

    The service could have been a WSDL based web service or a normal XML/HTTP or SOAP/HTTP service without a WSDL definition.
    If its a WSDL based service you need a WSDL(along with any referenced XML schemas) and if its a XML/HTTP service then you need XML Schemas
    First of all you need to identify which one it is. To do that:
    1. Ask the team who has provided you the endpoint! If its a WSDL based service, ask them for the WSDL file along with referenced schemas. If its a XML/HTTP service ask them for XML schemas.
    2. If you are not able to contact them right away, Try accessing the URL in a browser:
    Open following URLs in a Browser:
    http://<host>/ExternalServices/Customer/xyz/Posto.aspx?wsdl
    http://<host>/ExternalServices/Customer/xyz/Posto.aspx
    Do you see any WSDL coming up in Browser? If yes then copy the content of the WSDL, also open the URLs of any imported schemas in the WSDL content in browser and copy their content as well. The idea is to have all the WSDLs and Schemas on your local machine,
    Once you get the WSDL files and XML schemas here is what you need to do:
    For WSDL based target servce
    1. Save the contents of any referenced schemas as XML Schema resources in OSB
    2. Save the content of WSDL as a WSDL resource in OSB
    3. Create a new business service, select WSDL based service types and select a port or binding from the WSDL resource you created in step 2
    4. Provide transport as HTTP and add http://<host>/ExternalServices/Customer/xyz/Posto.aspx as the endpoint
    5. Save this service and now you can call this business service from any Proxy Service in OSB
    If its a XML/HTTP service, then you can create business service with following types:
    1. XML HTTP with no specific XML schema - Choose ANY XML service type
    2. SOAP/HTTP with no specific XML schema - Choose ANY SOAP service type
    3. XML/HTTP with a specific request and response schema - Choose Message service type and select the request and (optionally) a response message type from an existing XML schema resource

  • How to call a report from form in developer suite 10g

    i want to call report from a form that is developed in Builder 10g. Reprot is also built in Reports Builder 10g. I now want to run report through form.Please give me any solution.

    I am finding that this document is unhelpful also with respect to running a form which calls the report in the testing environment of Oracle Developer Suite. I have Googled for forms integration with reporting and most refer to this document, but it does not help.
    I have download and used the "run_report_object_doc" procedure they provided, along with a supporting function. And used that.
    This document indicates that if the sever is not specified then it will use the in-process server. This does not happen. When I do not specify the server I get the notorious "FRM-41211: Integration error: SSL failure running another product." I suspected that the in-process server is not getting called.
    When I look through the rwservlet.properties file I find that the servlet is configured with in=process "yes". I have since changed this file so that a server is actually named. I called it "local".
    This time a local.conf file is created, not a rep_local.conf file as indicated in the documentation. Anyhow when I try the form again I get the same FRM-41211 message.
    Alternatively, I have change the report invocation parameters to supply a server name "local". This time I no longer get the FRM-41211 message. I get the error FRM-41214: Unable to run report.
    When I use the servlet to get information, I get (can anyone see any setting that is a problem?):
    http://localhost:8889/reports/rwservlet/showenv?server=local
    OracleAS Reports Services - Servlet Environment Variables Return to Top
    KeyMapFile C:\DevSuiteHome_1\reports\conf\cgicmd.dat
    DBAUTH C:\DevSuiteHome_1\reports\templates\rwdbauth.htm
    SYSAUTH C:\DevSuiteHome_1\reports\templates\rwsysauth.htm
    server local
    DIAGNOSTIC yes
    traceopts undefined
    ERRORTEMPLATE C:\DevSuiteHome_1\reports\templates\rwerror.htm
    SERVER_IN_PROCESS yes
    COOKIEEXPIRE 30
    ENCRYPTIONKEY reports9i
    DIAGHEADTAGS undefined
    DIAGBODYTAGS undefined
    HELPURL undefined
    RELOAD_KEYMAP NO
    IMAGEURL http://localhost:8889/reports/rwservlet
    SINGLESIGNON yes
    OracleAS Reports Services - Server and Engine Environment Variables Return to Top
    PATH C:\DevSuiteHome_1\jdk\jre\bin\client;C:\DevSuiteHome_1\jlib;C:\DevSuiteHome_1\bin;C:\DevSuiteHome_1\jre\1.4.2\bin\client;C:\DevSuiteHome_1\jre\1.4.2\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\oracle\product\10.2.0\client_1\bin;C:\Program Files\CA\Dcs\DMScripting\;C:\Program Files\CA\DCS\CAWIN\;C:\CAisd\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\ZipGenius 6\;c:\Program Files\CA\SharedComponents\ScanEngine;C:\PROGRA~1\CA\ETRUST~2;C:\Program Files\CA\Unicenter Software Delivery\BIN;C:\PROGRA~1\CA\SHARED~1\CAM\bin;C:\Program Files\CA\SharedComponents\ScanEngine;C:\Program Files\CA\SharedComponents\CAUpdate\;C:\Program Files\CA\SharedComponents\ThirdParty\;C:\Program Files\CA\SharedComponents\SubscriptionLicense\;C:\Program Files\CA\eTrustITM;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Microsoft Office\Office10;C:\Program Files\CA\DSM\bin;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\DevSuiteHome_1\jdk\jre\bin
    DISPLAY
    LD_LIBRARY_PATH
    ORACLE_HOME C:\DevSuiteHome_1
    TNS_ADMIN
    NLS_LANG AMERICAN_AMERICA.WE8MSWIN1252
    USER_NLS_LANG
    RW C:\DevSuiteHome_1\reports
    REPORTS_PATH C:\DevSuiteHome_1\repadm61\srw;C:\DevSuiteHome_1\cgenr61\admin\crretc;C:\DevSuiteHome_1\cgenr61\admin;C:\DevSuiteHome_1\reports\templates;C:\DevSuiteHome_1\reports\samples\demo;C:\DevSuiteHome_1\reports\integ;C:\DevSuiteHome_1\reports\printers;
    REPORTS_TMP C:\Temp
    REPORTS_TAGLIB_URI /WEB-INF/lib/reports_tld.jar
    java.class.path C:\DevSuiteHome_1\j2ee\home\lib\ojsp.jar;C:\DevSuiteHome_1\reports\jlib\rwrun.jar;C:\DevSuiteHome_1\jlib\zrclient.jar
    sourceDir
    tempDir
    useDataCache
    ignoreDataParameter

  • How to open an URL from Forms in blocking mode?

    Can anyone tell me if it is possible to open a website from within forms in blocking mode? The reason why I have to use blocking mode is that the user has to take some action in the website and has to end that session explicitly with a button on the website. After that, a file is written on the server that is needed for further action. Without that file the process can't go on.
    I use Forms (32-bits) versie 10.1.2.0.2.

    Thanks for your answer.
    Your suggestion is only possible with a timer-trigger (correct me if I'm wrong). And that's the point.... The time the user can act in the website is unlimited. So, how to set up a timer-trigger? Another work around is to make a process that works at some time and searches for the files on the server. But that's not what we want to do.
    Does anyone have another idea?

  • How to call an URL from ABAP

    Hi,
    When an user clicks on a document display link in a SAP tranasction(for example FB02),an URL has to be called in the background(by ABAP) and the details of the URL should be displayed in a browser.
    What are the possilbe options available in SAP4.7 to meet the above requirement?
    Thanks in advance,
    Leo

    hi,
    you can use call browser function
    data url(200) type c.
    url = 'your_url'.
    CALL FUNCTION 'CALL_BROWSER'
      EXPORTING
        URL                          = url
       WINDOW_NAME                  = ' '
       NEW_WINDOW                   = ' '
       BROWSER_TYPE                 =
       CONTEXTSTRING                =
    EXCEPTIONS
       FRONTEND_NOT_SUPPORTED       = 1
       FRONTEND_ERROR               = 2
       PROG_NOT_FOUND               = 3
       NO_BATCH                     = 4
       UNSPECIFIED_ERROR            = 5
       OTHERS                       = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    for this you have to enable SSO on your server.
    hope this helps you, else revert back.
    regards,
    Hemendra

  • RRI?  How to call ITS URL and pass field value from Bex Query.

    I am doing RRI from query to webaddress,
    i have defined jump(report type: webaddress and reicver report as url) from shopping cart bex query(SRM ) to webaddres.
    here url is SRM ITS base link for monitoring shoppingcart(http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN).
    jump is working from portal(from bex query ivew).
    but i want to pass value(shopping cart value) to above url and want to skip first screen.
    i have maintained assignment detail by assigning field name against shopping cart infoobject with type url parameter, but its not directly call reciver url with given input field.
    i tried the diffrent combination of url and field assignment as like below:
    1: web address url:http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN
    assigned field: GS_HEADER-OBJECT_ID
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN?GS_HEADER-OBJECT_ID='selected number value'
    2: web address url:http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc
    assigned field: flNUQVRFPTgzMTcuMDAyLjAxLjAx
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc?flNUQVRFPTgzMTcuMDAyLjAxLjAx='selected number value'
    I have seen the source code of that url(inital screen and after entring the value to that screen) too.
    how to call webadress(SRM ITS base shopping cart URL) with passing the one of field value of that url screen?
    Thanks and regards,
    Dushyant.

    Declare the gv_orderid in modulepool program.
    And Declare the parameter as import parameter in smartform.
    CALL FUNCTION  lv_form
       EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
         i_input                    =  gv_orderid
    * IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
    *   JOB_OUTPUT_INFO            =
    *   JOB_OUTPUT_OPTIONS         =
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5

  • How to call a xmlform from KM doc iview

    hi all ,
    can any one explain how to call the xmlform from KM document iview . and my document is in content management ->document ->folder ->app.xml.

    Hi,
    If you want to look at XML form like the are designed in your form builder you need to work with a navigation iview to the folder that contains you XML forms. You need to set the layout of the navigation iview to Newsbrowser or NewsExplorer or a derived layout.
    From here the form is renderer as a form.
    If you only want to show this one form I would suggest to open it in this last view in the described navigation iview and use the url in for example an url iview. This will be the quickest.
    Kind,
    Frederik

  • Back url from form?

    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.miller

    Take a look at this thread, I think it'll help you.
    How to get page url from a Dynamic Page?

  • How to call a Applet from a servlet and vice versa...?

    Hi all
    Can anyone help me how to call a applet from a servlet and vice versa. When the applet is called it should contact the database (oracle8i) and get the data. When i submit the applet form the data in the applet should be saved in the database.
    Thanks in advance
    Kamalakannan

    Sweep is correct about requestDispatcher being another approach for inter-servlet delegation; the only issue that i recall with this approach is that it defaults the method of the destination servlet to the one it was called from...for example, calling servlet2 from within servlet1.post() resulted in the dispatcher attempting to utilize servlet2.post() - i believe that i searched for a parameterize solution to no avail :( (ended up handling the request by placing a "fake" doPost() in servlet2 that simply called servlet2.doGet())
    however, if your application is functioning correctly on your pc/webserver then the problem may be external to servlet communication (e.g. client webserver's ports not configured or blocked, missing runtime classes, etc.)
    my suggestion would be to set aside the programmatic concerns for the moment - what is the response if you open a browser on a client's machine and access the URL in question (i.e. http://clientserver:port/stefanoServlet)? If it will not respond to access in this manner then it certainly won't when your application calls for it.
    It's possible that there is a coding error but, given the info supplied, i'd start examining the environment, first. Let us know if you have any luck with the test i recommended or not (please provide abundant detail). Or, if you've found the solution then you may want to post back with a quick blub so the next person knows how to escape the trap.
    D

Maybe you are looking for

  • Can connect on one Mac but not other Mac, PC

    I just moved and I had no problem connecting my Powerbook,iMac, and PC with my Airport Express in my last house. I have the same cable provider (Charter) and can connect my Powerbook in my new house. However, I have a iMac too with an Airport card an

  • Sslpassword or sslpassword.conf

    Silly question could be. Before creating a self-signed certificate, I see a file named sslpassword.conf. # more sslpassword.conf Internal (Software) Token:password The admin guide of Messaging 2005 Q4 says: To Create Self-signed Certificates (P. 639)

  • Using jfreechart with oracle forms 11g

    Hi everybody, I'm using jfreechart with oracle forms 11g to continue having graphs in my application since i'm migrating from forms 6i. I've already got it working and it's great. Just have one problem left. I don't know how to change the axis labels

  • I cant select any objects. When I try to select I get a lined box around the object and it's not selecting

    How do I overcome this problem?

  • Calling external URL with POST data

    Hi: In my action bean I have to call and external URL (outside my domain), and along with this URL 'POST' data. I have tried the following code: try { FacesContext lclFC = FacesContext.getCurrentInstance().getFacesContext(); lclFC.getExternalContext(