Using WebUtil Function giving an error

I installed the WebUtil, i executed the demo(example which would have been in installation file which is running on my system) but now i want to open html file in my form using webutils function present in some remote system WEBUTIL_FILE_TRANSFER.URL_To_Client I have been created the form with one button & wrote an trigger when-button-pressed wrote the below means calling the below function which is giving an error
WebUtil_file_transfer.URL_To_Client('www.somesite_filename.com','C:\CR');
or
WebUtil_file_transfer.URL_To_Client('C:\CR','www.somesite_filename.com');
ERROR::'URL_TO_CLIENT' is not a procedure or is undefined
Could u please help me & if u have any documents related to webutil please send those to me.My mail id is: [email protected]

You need 3 arguments...
FUNCTION URL_To_Client(    sourceURL         in VARCHAR2,
                             clientDestination in VARCHAR2,
                             fileSize          in PLS_INTEGER default 0) return BOOLEAN;
webutil_file_transfer.url_to_client('some_url', 'c:\cf', null);------- snip from comments of webutil.pll --------------
   * URL_To_Client - pulls a file from the specified URL on any server and
   * sends it via http to the specified destination on the client
   * If you specify file size we can do a comparison after download to ensure
   * that the sizes match
   * Additionally if you specify withProgress and size you will get a progress
   * bar.
   * If you don't specify any size or if you specify default size, then webutil
   * will try to get the size of the url on its own for the purpose of showing
   * the progress bar.
   * Note that the Title, subtitle and message strings cannot contain the '|'
   * character
  FUNCTION URL_To_Client(    sourceURL         in VARCHAR2,
                             clientDestination in VARCHAR2,
                             fileSize          in PLS_INTEGER default 0) return BOOLEAN;
  FUNCTION URL_To_Client_With_Progress(
                             sourceURL         in VARCHAR2,
                             clientDestination in VARCHAR2,
                             fileSize          in PLS_INTEGER default 0,
                             progressTitle     in VARCHAR2,
                             progressSubTitle  in VARCHAR2,
                             progressMessage   in VARCHAR2) return BOOLEAN; 
----------------- End Snip ----------Message was edited by:
Mark Reichman

Similar Messages

  • Facing problem in using webutil functions

    hi,
    i have developer suite 10g(9.0.4),
    i download web util 1.0.6, update all the required changes,
    i also download the template, which shows the
    but still i am facing problem in using any function,
    when i am using get_system_property method then it return exception (06502) value or string error, and all the other functions return no_data_found exception
    please help me!!!
    with regards,
    sidharth

    Sidharth,
    unfortunately your question doesn't provide enough details to help you out of this. Please provide the code that you use in the function call that causes the exception. If you have error messages to share, the better it is.
    Frank

  • Custom Function giving compile error

    Hi All,
    I have created a custom function to get the current time stamp. Below is the java code:
    package com.oracle.determinations.examples;
    import com.oracle.determinations.engine.CustomFunction;
    import com.oracle.determinations.engine.EntityInstance;
    import java.util.*;
    import java.text.*;
    public class CurrentTimeStamp extends CustomFunction {
       public Object evaluate(EntityInstance entityInstance, Object[] objects) {
          Date dNow = new Date( );
          SimpleDateFormat ft =
          new SimpleDateFormat ("MM/dd/yyyy HH:mm:ss");
        /*System.out.println(ft.format(dNow));*/
          return ft.format(dNow);
    My Extension.xml is as below:
    <?xml version="1.0" encoding="utf-8"?>
    <extension>
      <functions>
        <function name="CurrentTimeStamp" return-type="text">
      <arg name="entered-name" type="text"/>
           <handler platform="java" class="com.oracle.determinations.examples.CurrentTimeStamp"/>
          </function>
      </functions>
    </extension>
    The extension.xml is placed under following path:
    Development/Extension/CurrentTimeStamp/extension.xml
    The JAR file is palced under following path:
    Development/Extension/CurrentTimeStamp/lib/CurrentTimeStamp.jar (the jar file includes the com.oracle.determination.example folder structure)
    When i am using CurrentTimeStamp() in the rule base, it is throwing compile error saying:
    Error after text CurrentTimeStamp(' Fount Text: ')'. Exptected value variable or constant OPA - E00111
    Can you please help me where i am getting wrong and why it is not identifying the function?
    Thanks,
    KK

    Hi,
    I tried using the function with blank arguments like:CurrentTimeStamp("") and it was compiled successfully. When I tried running this rulebase in the tomcat server (web determinations).. i got the below error; Can someone please let me know what is happening here:
    HTTP Status 500 - Servlet.init() for servlet WebDeterminationsServlet threw exception
    type Exception report
    message Servlet.init() for servlet WebDeterminationsServlet threw exception
    description The server encountered an internal error that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet.init() for servlet WebDeterminationsServlet threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0 java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClassCond(Unknown Source) java.lang.ClassLoader.defineClass(Unknown Source) java.lang.ClassLoader.defineClass(Unknown Source) com.oracle.determinations.engine.local.CustomResourceClassLoader.findClass(CustomResourceClassLoader.java:120) java.lang.ClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Unknown Source) com.oracle.determinations.util.PlatformClassLoader.newInstance(PlatformClassLoader.java:61) com.oracle.determinations.engine.local.RulebaseLoader.loadCustomFunctions(RulebaseLoader.java:267) com.oracle.determinations.engine.local.RulebaseLoader.loadRulebase(RulebaseLoader.java:178) com.oracle.determinations.interview.engine.InterviewRulebase.<init>(InterviewRulebase.java:137) com.oracle.determinations.interview.engine.local.LocalRulebaseService.applyChangeSet(LocalRulebaseService.java:250) com.oracle.determinations.interview.engine.plugins.rulebaseresolver.ClassloaderRulebaseResolverPlugin.initialise(ClassloaderRulebaseResolverPlugin.java:73) com.oracle.determinations.interview.engine.local.LocalRulebaseService.<init>(LocalRulebaseService.java:53) com.oracle.determinations.interview.engine.local.LocalInterviewEngine.initialise(LocalInterviewEngine.java:181) com.oracle.determinations.interview.engine.local.LocalInterviewEngine.<init>(LocalInterviewEngine.java:66) com.oracle.determinations.interview.engine.InterviewEngineFactory.createInstance(InterviewEngineFactory.java:19) com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:180) com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:116) com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:73) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.40 logs.

  • Error while using webutil in 10g forms

    Hi All,
    I followed all the steps as given in the webutil user guide, in order to use webutil functionality in my forms 10g. Even then, I am getting an error message while trying to open a file from the client machine.
    oracle.forms.webutil.file.FileFunctions bean not found WEBUTIL_FILE.FILE_SELECTION_DIALOG_INT will not work.
    I need a solution to this problem urgently.
    Thanks,
    M.Banerjee

    Hi,
    look at the Jinitiator console if the webutil jar file gets downloaded. If this is downloaded, which indicates that it can be found on the server, check the implementation in Forms. What this says is that the bean cannot be found, which however should be the case if webutil is configured correctly.
    Frank

  • Problem running reports using webutil in Forms 10g

    This is about 3 dll files related to webutil functionality in forms 10g
    d2kwut60.dll
    jacob.dll
    JNIsharedstubs.dll
    I am running report which is using webutil functionality. So when I try to run report, our application server try to download above dlls to my local machine on path C:\Program Files\Java\jre6\bin
    Due to security policy, our company doesn't allow write access to folder C:\Program Files\Java\jre6\bin and hence report is failing to run.
    We need solution for this issue so that we should be able to run report successfully?
    Details as below:
    Application server : Forms 10g - 10.1.2.3 ( Using Sun jre and not jinitiator). We do not want to use jinitiator
    Browser - IE8

    Curious, typically Java will store these "temporary" files in the cache not in the BIN directory. Unfortunately, the only way I know to change the location of the CACHE (temporary files) directory is through the Java Control Panel applet. Open the Control Panel and start the Java Control Panel. On the General tab click the Settings... button in the Temporary Internet Files section. In the Location section - click the Change button which will bring up a "Temporary Files Location" dialog box. Simply navigate to a directory that your security policy will allow files to be written too.
    The ideal solution would be to push this type of change out to all of your users rather than have to manually change each workstation. I don't know if there is a way to push this change out, but you can check the Java website for more information.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Sharepoint-Hosted App giving FORBIDDEN error when i use REST Api

    Hi,
    I have created a sharepoint hosted app which will create Team site on button click.
    I used REST Api  and  NAPA Tool to develop this app.
    Napa tool gives to things ClientWebpart.aspx and Default.aspx.
    When i run my Default.aspx code is working fine but ClientWebpart.aspx is giving FORBIDDEN error when i am trying to create site.
    Below is the code which i used to create site
    code:
    var hostweburl;
    var appweburl;
    $(document).ready(function () {
    hostweburl= decodeURIComponent(getQueryStringParameter("SPHostUrl"));
    appweburl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl"));
    function createSPWeb() {
    $.ajax(
    url: appweburl +
    "/_api/SP.AppContextSite(@target)/web/webinfos/add?@target='" +
    hostweburl + "'",
    type: "POST",
    data: JSON.stringify(
    'parameters':
    '__metadata': { 'type': 'SP.WebInfoCreationInformation' },
    'Url': 'RestSubWeb',
    'Title': 'RestSubWeb',
    'Description': 'REST created web',
    'Language': 1033,
    'WebTemplate': 'sts#0',
    'UseUniquePermissions': false
    headers: {
    "accept": "application/json;odata=verbose",
    "content-type": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val()
    success: successHandler,
    error: errorHandler
    NOTE:This is on sharepoint online.
    Please help
    Regards,
    sudeep

    So in the app you are testing, are you using the FQDN or the NetBIOS name? Bad practice but could you test with both (hard code the absolute URL for testing purposes) then retest your app?
    If you are making a web part based on the new app model this will be an "app part" and probably have the same issues you are experiencing. If this is for something internal rather than a product you are developing to resell then the script editor /
    content editor web part approach could work for you.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Form with webutil functions. How identify if user is using native internet

    Hello,
    I have one form with some webutil functions. How can i identify if a user is using the form with native internet explorer?
    If a user with jinitiator use the forms, its ok, but when a user use native internet explorer, he gets error orcle.forms.webutil.fileTransfer bean not found. WEBUTIL_FILE_TRANSFER.getMaxTransfer will not work.
    When the user use internet explorer native, I want disable the webutil function before generate a file on the application server and then download to a client machine.
    Im using Forms10g and Forms10gR2.
    Thanks

    do you have two different config-sections for the two modes?
    If so, you could either place a different value for each one in the otherparams-tag and read that at runtime, or use a different env-fiel and set some variable with different values for each config in there and read it via TOOL_ENV.

  • ToDate Function giving ERROR#

    Hi,
    I am trying to convert a string to date , using Todate function in webi 4.0 , but its giving ERROR#
    =ToDate([Final Protocol Avail Ac];"m/d/yyyy")

    I want to get the format like this  1/3/214   , so basically wanna convert
    01-JAN-2014(String)  --> 1/3/14
    also  the below  syntx is converting it into a string , i want it to be date format, as i will be doing DaysBetween that with another date
    =Formatdate(todate([Final Protocol Availa Ac];"dd.MM.yyyy");"MM/dd/yyyy")

  • Please Help: TO_NCLOB function giving error

    Hi,
    I have HTML tags in one of database columns. As these tags were being displayed in my report, I used TO_NCLOB function to get rid of these tags.
    [I do not need the formatting anyway] This was just working fine until today.
    PROBLEM
    I have this text in my field:
    "<span style="font-size:10pt;font-family:&quot;;;Arial&quot;,&quot;sans-serif&quot">THE COMPANY HAS RECLASSIFIED xxx MILES OF
    “DISTRIBUTION” STEEL MAIN FROM COATED/PROTECTED TO BARE/PROTECTED TO REFLECT
    THE INFERIOR PROTECTIVE PROPERTIES ASSOCIATED WITH THE EARLIEST TYPES OF STEEL
    PIPE COATINGS (BARE GREASE, ROSKOTE, NO OXIDE, ETC.).</span>"
    The report threw an error, when I removed the TO_NCLOB Function in the sql the report is working fine, but is showing html tags in the output pdf.
    I do not understand why the TO_NCLOB function is giving me error in this particular scenario, I am not even able to get the xml data.
    I tried to use the same sql with the TO_NCLOB function in TOAD and it was working fine.
    Your help is highly appreciated, It is a high priority issue.
    Thanks,
    Rakesh
    Edited by: user13814009 on Mar 16, 2011 11:50 PM

    Oh ..Ok..
    Thanks for the answer. So , to get the distinct values , I need to change the query
    like I shown below. .
    select  ( cast(collect(t_tfo_sp_copy_evnt_dtl(event,       evnt.event_desc,
                        promo_month_desc,
                        .start_date,
                        end_date
                        start_date)) as
                        t_tfo_sp_event_table) from
                                                                                  ( select distinct  evnt.event, evnt.event_desc,
                        mth.promo_month_desc,
                        TO_CHAR(evnt.start_date,
                        'DD/MM/YYYY'),
                        TO_CHAR(evnt.end_date,
                        'DD/MM/YYYY'),
                        TO_CHAR((evnt.start_date - 21),
                        'DD/MM/YYYY')
              FROM TFO_SP_RETEK_PROMO_EVENT_MST evnt
               INNER JOIN  .....
               WHERE ...
               ORDER BY evnt.event_desc,
                                       mth.promo_month_desc,
                                       dtl.promo_start_date,
                                       dtl.promo_end_date,
                                       dtl.promo_cost_start_date); But I guess, it will increase the performance overhead.Any other suggestion you have to rewrite the query so that it will perform better?
    Edited by: Manjusha Muraleedas on २५ जनवरी, २०१३ ९:५५ पूर्वाह्न

  • Hi I am using an iphone 4 and its was working fine.  Presently its giving browsing error.  Whenever I am trying to browse internet by using safari or any other browser it retruns with "server not responding" Can somebody give me a solution for this ?

    Hi I am using an iphone 4 and its was working fine.  Presently its giving browsing error.  Whenever I am trying to browse internet by using safari or any other browser it retruns with an error message "server not responding" Even the same thing is happening with youtube also. The worst part is am able to check my mails, able to chat and so on... only thing not able to browse through the browser.  I have tried restore option also.  This is happening with both Wlan and Data con. too
    Please help...

    I do not really know much about this kind of problem, but i may be your internet connection.
    If you are on your own #G network then:
    Go to Settings > then enable "Airplane Mode". Count to 10 and then disable it.
    Then wait patiently until you get a good connection and then try again.
    If you are on a nearby Wi-Fi connection then:
    Go to Settings > Wi-Fi > then disable then enable after counting to 10. Make sure that you are connected and then try again.
    If all else fails, then you need to contact your provider for assistance.
    Sprint:888-211-4727
    AT&T:?
    Verizon:?

  • Error in using aggregate function in Outer Query in Siebel Analytics

    Hi,
    When I am using aggregate function in outer query in Siebel Analytics I am facing error.
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59111] The SQL statement must include a GROUP BY clause. (HY000)
    Bellow is the code.
    SELECT test1.username saw_0, test1.desg saw_1,COUNT (test2.querydate) saw_2
    FROM (SELECT POSITION.CBL username,
    POSITION.CBP desg
    FROM "CM"
    WHERE (POSITION.BPTCD = 'Marketing')
    AND (POSITION.EDate =TIMESTAMP '1899-01-01 00:00:00'
    ) test1,
    (SELECT users.UN username,
    measures."Query Count" querycount,
    measures."Max Total Time" secs,
    topic.db dashboardname,
    "Query Time".DATE querydate
    FROM "Plan"
    WHERE (topic."Dashboard Name" IN ('DS'))) test2
    WHERE test2.username = LOWER (test1.username)
    AND test2.dashboardname = 'DS'
    GROUP BY test1.username, test1.desg

    Should your query be a valid SQL query?
    I can't think that the query you have would be valid in a SQL plus window.
    Chris

  • Error in loading a jpeg file using webutil

    I´m using webutil with forms9i and got errors when loadin g jpeg files. I selected some files and worked ok. Some files (ones with blank characters inside their names) blow up the form.
    The resultant error message is:
    FRM-92102:a network error has occurred. The Forms Client has attempted to reestablish its connection to the server1 time(s) without success. Please check the network connection and try again later.
    Details...
    Java Exception:
    java.io.IOException: Negative or zero content-length from server
    at oracle.forms.netHTTPNStream.doFlush(Unknown Source)
    at oracle.forms.netHTTPNStream.flush(Unknown Source)
    at javaio.DataOusputStream.flush(Unknown Source)
    at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    Do you have any info about this error?

    It would help if you mentioned which bit of file transfer you are doing there are about 8 different options..
    For instance I tried Clint_to_AS with a file name containing a space and all was OK.
    webutil_file_transfer.client_to_as('d:\temp\a file.txt','d:\temp\foo.txt',false, null);

  • Error while using group function

    Oracle forms6i
    Hai
    While i am compile my coding it compile successfully, but when i tried to executes i shows error in group function
    my coding is
    if (cnt<>0 ) then
    select BARCODE,INTIME,OUTTIME into today_bar,today_in,today_out from dail_att where BARCODE= :Barcode
    and ATTEND_DATE = :bardate;
    update dail_att set outtime = max(:bartime) where barcode= :barcode
    and ATTEND_DATE = :bardate;
    else
    if (cnt2<>0 ) then
    select INTIME,OUTTIME into yest_in,yest_out from dail_att where BARCODE= :Barcode
    and ATTEND_DATE = :bardate-1;
    if(yest_in is not null and yest_out is null) then
    update dail_att set outtime =max(:bartime) where barcode= :barcode
    and ATTEND_DATE = :bardate-1;
    else
    insert into dail_att(barcode,intime,attend_date)
    values(:barcode,min(:bartime),:bardate);
    end if;
    else
    if :bartime between 0100 and 0630 then
    insert into dail_att(barcode,intime,attend_date)
    values(:barcode,min(:bartime),:bardate-1);
    update dail_att set outtime = max(:bartime) where barcode= :barcode
    and ATTEND_DATE = :bardate-1;
    else
    insert into dail_att(barcode,intime,attend_date)
    values(:barcode,:min(bartime),:bardate);
    end if;     
    end if;
    end if;
    while i am trying to this groupfunction it throws error while i use having tell me how to use group function and where
    to use
    Regadrs
    Srikkanth.M

    Hai sir
    I had a table that contain fields
    EMPCODE NUMBER
    EMPNAME VARCHAR2(25)
    BARCODE VARCHAR2(25)
    INTIME VARCHAR2(25)
    OUTTIME VARCHAR2(25)
    INTRTIMEIN VARCHAR2(25)
    INTROUTTIME VARCHAR2(25)
    PERTIMEIN VARCHAR2(25);
    PERTIMEOUT VARCHAR2(25);
    ATTEND_DATE DATE ;
    Consider that a table with 6 fields ie timein,intrtimein,pertimein,pertimeout,intrtimeout,timeout
    I have generating a attendance table and a table contain 6 various times for an employees and we need to arrange it in order
    0815,0816,1230,1250,1645,1646
    If 0815 is the starting time then timein ie mintime
    0816 stored to be in intrtime
    then1250 then it stored in pertimein
    then 1230 then it stored in pertimeout
    then 1645 stored in intrtimeout
    then 1646 stored in timeout
    I tried with max and min function but its not working properly pls tell me some solutions
    Thanks & Regards
    Srikkanth.M

  • I get an error message when I try to use share function on IPhoto. I get the triangle icon with an exclamation mark inside of it.

    I get an error message when I try to use the share function on iPhoto. When I try to share photos via email a triangle icon with an exclamation mark appears. Why can't I use share function?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    What version of iPhoto? Assuming 09 or later
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    Regards
    TD 

  • Error in XSLT mapping while using string functions

    Hi All,
    While using tokenize() and substring-before() functions in XSLT mapping,we are getting an error.The error message is Unexpected symbol "" So while using string functions in XSLT mapping do we have to use any header functions.
    Please through light on syntax etc.,of string functions in XSLT.
    Thanx in advance,
    Lokesh Dhulipudi
    Edited by: LOKESH DHULIPUDI on Dec 27, 2007 7:32 AM

    Hi,
    Hope you have gone thru this help:
    http://w3schools.com/xsl/default.asp
    Rgds, Moorthy

Maybe you are looking for