Call procedure through javaScript

 

Hi,
although page 0 is somewhat special, you can do the same there: create a region, create a button in a region position, and choose action "Redirect to URL without submitting page"; when you come to the target, make it a URL of type "javascript:". You will then see this button on every page, even the logon page.
The crucial point is the first option when you create the button: obviously it must be a button in a region position and not among region items, otherwise you cannot give it a URL. As an example: I found no way to place a button below a tabular report to launch my [Excel export (ApexExEx)|http://forums.oracle.com/forums/thread.jspa?threadID=1005897&tstart=90], so I use a text link there.
Running PL/SQL from text links is somewhat tricky if you want to stay on the same page, but you can find How-To here: [How To: APEX - Run PL/SQL from a text link|http://gutzmann.blogspot.com/2009/12/how-to-apex-run-plsql-from-text-link.html] .
Cheers,
Thomas

Similar Messages

  • Call actions through javascript

    Hi Everyone,
    Currently i'm doing automations for Adobe Illustrator CS4. I have created some actions due to the limitations of scripting in Illustrator. I need to call this actions through javascript.
    But in applescript i can able to call the actions by using the do script method.
    Can anyone help me in this regard.
    Thanks in advance
    Thiyagu

    May this can help you. VBS version:
    Set appRef = CreateObject("Illustrator.Application")
    'action name "Convert to grayscale", action set"action1"'
    appRef.DoScript "Convert to grayscale", "action1"
    'sleep 2 sec, waiting for the action complete, this is needed if you want to do something else'
    WScript.sleep 2000
    ' then do something else here

  • Calling a procedure from Javascript

    Hello
    I have created a procedure with two input paprameters.
    I have gratted access to public ... and all works well
    I would now like to call this from a Javascript where I supply the input paameters. The procedure has a redirect to another URL so there is no output
    Currently I used "window.location" with the prodcedure URL ... I must beable to call the produced directly?
    Thanks for taking the time to look at this request
    Regards
    Pete

    Pete,
    Have a look at this thread:
    How to call stored procedure from javascript? (about Google Suggest, AJAX)
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to Call the Acrobat plug-in through javascript

    Is it possible to call the acrobat plug-in through javascript? Kindly help me with any samples.
    Thanks,
    Prabudass

    I have found the way to open the plugin menu "Documents-->OCR Text Recognition-->Recognize Text Using OCR" through javascript. Now i have to select the settings and set the values like the below options:
    1.Primary OCR Language : English (US)
    2.Pdf Output StyLe : Formatted Text & Graphics
    3.Down Sample Images : Lowest (600 dpi)
    which are listed in the "EDIT" menu of the "Recognize Text" form, and also to activate the "OK" button. Is it possible to do the above through Java Script. Please kindly provide any samples.
    Thanks,
    Prabudass

  • Calling Oracle Stored Procedure through COBOL

    I am calling a Oracle Stored Procedure through COBOL program. Here is the procedure that is in Oracle.
    PROCEDURE sp_sel_m_event_subs_profile (
    eventID IN EventIDTyp,
    subscribed IN NUMBER,
    v_profileRef OUT profileRefWithDSID_cv
    IS
    BEGIN
    sp_check_event_id(eventID);
    OPEN v_profileRef FOR
    SELECT
    sub.profile_i,
    ref.datasource_i,
    ref.primary_key_x
    FROM
    ccf_event_subscribe sub,
    ccf_profile_reference ref
    WHERE
    sub.event_i = eventID
    AND
    sub.is_subscribed_i = subscribed
    AND
    sub.profile_i = ref.profile_i;
    END sp_sel_m_event_subs_profile ;
    So while trying to call this procedure in COBOL program I am getting error as wrong number or types of arguments in call to 'SP_SEL_M_EVENT_SUBS_PROFILE'
    Here is the call statement in COBOL. I tried with many other options by adding some more fields but did not work.
    EXEC SQL EXECUTE
    BEGIN
    TWSUSER_OWN.PKG_CCF.SP_SEL_M_EVENT_SUBS_PROFILE
    (:EVENT-I, :SUBSCRIBED);
    END;
    END-EXEC
    Please someone let me know how should I pass arguments EVENT-I and SUBSCRIBED to this Procedure so that I will get PROFILE-I, DATASOURCE-I and PRIMARY-KEY-X
    Note: The above procedure is working good by other software. But there is no example as How to use Call statement through COBOL.
    Thanks

    Here is the cobol declaration of each variable.
    01 EVENT-I PIC X(06) VALUE SPACES.
    01 SUBSCRIBED PIC 9(01) VALUE ZEROS.
    01 PROFILE-I PIC X(08) VALUE SPACES.
    01 DATA-SRC-I PIC X(08) VALUE SPACES.
    01 PRIMARY-KEY-X PIC X(08) VALUE SPACES.
    I tried with this layout, but still not working
    01 EVENT-I PIC 9(06) VALUE ZEROS.
    01 SUBSCRIBED PIC 9(01) VALUE ZEROS.
    01 PROFILE-I PIC 9(08) VALUE ZEROS.
    01 DATA-SRC-I PIC 9(08) VALUE ZEROS.
    01 PRIMARY-KEY-X PIC 9(08) VALUE ZEROS.
    Here are some of them I tried.
    EXEC SQL EXECUTE
    BEGIN
    TWSUSER_OWN.PKG_CCF.SP_SEL_M_EVENT_SUBS_PROFILE
    ( :EVENT-I
    , :SUBSCRIBED
    , :PROFILE-I);
    END;
    END-EXEC
    EXEC SQL EXECUTE
    BEGIN
    TWSUSER_OWN.PKG_CCF.SP_SEL_M_EVENT_SUBS_PROFILE
    ( :EVENT-I
    , :SUBSCRIBED
    , :PROFILE-I
    , :DATA-SRC-I
    , :PRIMARY-KEY-X);
    END;
    END-EXEC
    EXEC SQL EXECUTE
    BEGIN
    TWSUSER_OWN.PKG_CCF.SP_SEL_M_EVENT_SUBS_PROFILE
    ( :EVENT-I
    , :SUBSCRIBED );
    END;
    END-EXEC
    EXEC SQL EXECUTE
    BEGIN
    TWSUSER_OWN.PKG_CCF.SP_SEL_M_EVENT_SUBS_PROFILE
    ( :PROFILE-I
    , :DATA-SRC-I
    , :PRIMARY-KEY-X);
    END;
    END-EXEC

  • Calling Stored Procedures through JDBC

    Hello!
    I would like to implement a call to a stored procedure through JDBC. This call I suppose to embed in JavaBean to import Bean as model.
      A) Shoud this call be implemented inside ordinaly JavaBean or inside EJB?
      B) How can I determine DataSource? Is it possible through JNDI?
      C) Is there any tutorials or examples?
      D) Could anybody give some code texts on this theme?

    we use quite a similar architecture here (2 ORACLE DBs, a DB link from one instance to the other). However, we use the db links in functions (not in stored procedures). but a simple select using the db link also works with JDBC. do you use the very same db instances / schemas / users+passwords on all your different test environments? so far, we havent' noticed any problems with ORACLE queries (stored procedures, functions, etc.) that work in sqlplus/worksheet but not with JDBC. do you use the latest ORACLE JDBC drivers (9.2.0.3)?

  • How to call DML through procedures

    Hi,
    I've a requirement like i have to call procedure from function,In that procedure,having so many DML operations.
    I am facing error like 'We can't perform DML operation inside a query'.
    How to eliminate this error?
    Any update please.
    Cheers,
    Arun.

    The problem, as Karthik has suggested, is not that you are calling DML inside a procedure or function, but that the DML is being called in a procedure or function that is taking part in a query transaction i.e. you are using the function inside a query and that function (or a procedure it calls) is trying to do DML. This isn't permitted.
    The reason you can't do this is that the query is in the process of reading data from the database and you can't have the same query try and change the data on the database (using insert/update/delete OR any DDL statements that change the structure of the database) whilst it is in the process of reading it. It would be like you trying to read a Word document and there being macros in the document so that as you visited certain pages, the text of the document changed. By the end of it you wouldn't know if you'd read the document correctly or not or whether it all made sense. Oracle recognises this stupidity and prevents it.

  • Error while executing Multiple Stored Procedure through .sql file

    Hi Guru's.
    I am new to ORACLE. I am facing problem while creating Stored Procedure through .sql file.
    I have one test.sql file with Stored Procedure is like,
    CREATE OR REPLACE PROCEDURE skeleton1
    AS
    BEGIN
         DBMS_Output.Put_Line('skeleton1');
    END skeleton1;
    CREATE OR REPLACE PROCEDURE skeleton2
    AS
    BEGIN
         DBMS_Output.Put_Line('skeleton2');
    END skeleton2;
    Now when i try to execute this test.sql file through SQL PLUS it gives me Error like this
    I am opening test.sql file from SQL PLUS,
    SQL>
    1 CREATE OR REPLACE PROCEDURE skeleton1
    2 AS
    3 BEGIN
    4 DBMS_Output.Put_Line('skeleton1');
    5 END skeleton1;
    6 /
    7 CREATE OR REPLACE PROCEDURE skeleton2
    8 AS
    9 BEGIN
    10 DBMS_Output.Put_Line('skeleton2');
    11* END skeleton2;
    SQL> /
    Warning: Procedure created with compilation errors.
    SQL> show errors;
    Errors for PROCEDURE SKELETON1:
    LINE/COL ERROR
    6/1 PLS-00103: Encountered the symbol "/"
    SQL>
    Please suggest how to create multiple CREATE PROCEDURE using single .sql script file....
    Regards,
    Shatrughan

    Hi,
    Try this
    CREATE OR REPLACE PROCEDURE skeleton1
    AS
    BEGIN
    DBMS_Output.Put_Line('skeleton1');
    END ;
    CREATE OR REPLACE PROCEDURE skeleton2
    AS
    BEGIN
    DBMS_Output.Put_Line('skeleton2');
    END;
    /Save the file and call it.
    Regards,
    Bhushan

  • Javascript block through javascript.enabled false not working as expected in newer versions, any actual way?

    Since a few versions, around 24.0 or earlier, when you toggle javascript.enabled from true to false to block javascript, doesn't work after load a page.
    Further details:
    1.- load a page with javascript enabled
    2.- toggle javascript preference to block javascript (javascript.enabled from true to false)
    3.- if you interact with javascript elements = they still work
    This wasn't this way in earlier versions.
    You can check in the following page. You'll see that the only way to actually block javascript execution is to load the page with the preference javascript.enabled set to false (A.K.A. javascript blocked):
    http://www.geocities.ws/jothache/event_listener.html
    Note: to easy change javascript preferences, for those don't want to play with about:config you can use addons like QuickJava:
    https://addons.mozilla.org/en-US/firefox/addon/quickjava/
    I find that how it works now, in the latest versions, it is a VERY HUGE SECURITY ISSUE as javascript is never actually blocked when the preference is toggled and AJAX (httpXMLrequest through javascript) still works so the possibilities of lost of privacy inreases, as for example, mouse tracking and send it to the server, not only as the example scripts I posted above.
    The question is, is there anyway to really block javascript in the latests versions or should I report this as a bug?
    Regards.

    Hi guigs2,
    if there is no problem in open the bug ticket being a simple user I'll report by myself (if I haven't misunderstood you). (Confirm this and I'll do myself).
    About the AJAX problem, here we have a sample test that works after toggle the preference:
    http://www.w3schools.com/xml/xml_http.asp
    I know about noscript and I don't like it. I prefer to do manually (those measures and more). What bothered me is that even toggle the preference, what in the past did the job of stopping the execution of scripts, now doesn't. In about version 24 it was only happening to event listeners not being blocked (used nowadays for dynamic events assignments). Now is with every javascript code.
    About the tracking methods, I'm aware of HTTP tracking without any need of javascript. Even a simple "knock knock" on any kind of server leaves a trace.
    I was just pointing that this preference stopping doing its job (stopping scripts executions) has the worst sceneario in a security way with XMLHttpRequest calls.
    But one of the things that bothers me too, and it is not related to tracking, is that, in humble machines as mine, some javascript codes make drop whole performance and the preference toggle now does nothing, so the script keeps running without being able of doing anything and sometimes you don't have the option to load a page without javascript because you need some feature of that page that requires javascript what becomes "all or nothing".
    Regards.

  • Reg: call procedure in bat file.

    Hi Friends
       i have created procedure in my oracle database.
    now i want to call this procedure through Bat file.
    and my procedure is like PROC_VALIDATION(FILENAME IN VARCHAR2(50));
    my procedure passing parameter also.
    please help.

    Is this what you are looking for?
    SQL> create table test (no integer);
    Table created.
    SQL> create or replace procedure p(val in integer)
      2  as
      3  begin
      4    insert into test(no) values (val);
      5    commit;
      6  end;
      7  /
    Procedure created.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:>type c:\test.bat
    set hostvar=%1
    echo conn karthick/*****@*****
    echo exec p ^^^(%hostvar%^^^)
    ) | sqlplus -s /nolog
    C:>c:\test.bat 1
    C:>set hostvar=1
    C:>(
    echo conn karthick/*****@*****
    echo exec p ^(1^)
    )  | sqlplus -s /nolog
    PL/SQL procedure successfully completed.
    C:>sqlplus karthick/*****@*****
    SQL*Plus: Release 11.1.0.6.0 - Production on Wed Nov 27 16:35:54 2013
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from test;
            NO
             1
    SQL>

  • [MVC] Call controller with Javascript - How to pass model?

    Hi,
    In one of my requirement, I have to pass the main model to a controller that I simply create through Javascript (let's say I call it with : window.open( 'http://.../popup.do '); )
    How sould I proceed to set an existing model to this controller?
    Many thanks in advance.
    Best regards,
    Guillaume

    Hi
    u might be having  a model class for your model,
    just insert that model class in the attributes and then u can use that model class for your controller.
    a easy example of creating it is as in this link...
    [creating controllers with model|http://wiki.sdn.sap.com/wiki/x/-YL8B ]
    Give the page attributes of the view. in the page attribute define the model class there that u have created.
    in the view u can use the model class as...
    SELECT_model is the name of the object refering to the model class.
    i_vbak have been defined in the attributes of the model class.
    we are accessing it here in teh view calling it as below.
    and in the model we had fetched the data for the below fields .
      <htmlb:tableView id="TV_VBAK" table="//SELECT_model/I_VBAK">
    <htmlb:tableViewColumn columnName="vbeln"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERDAT"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERZET"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERNAM"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ANGDT"></htmlb:tableViewColumn>  
      </htmlb:tableView>
    i hope it is clear.
    Thanks
    kalyan

  • How to add your method in photoshop plugin & call it from javascript?

    pls help me i have to add a method in photoshop sample plugin & call it through any script like javascript?don't have to use any listener like script listener?

    You create the plugin, so you defined the terminology for the plugin.
    So there should be no reason to use the listener because you already know the terminology needed.

  • How to execute oracle stored procedure through php as externally?

    hi...
    i am searching for the way that how to execute oracle stored procedure through web service, i am using php and mysql, i have some stored procedures in oracale database, i want to execute them, from php, means the database will be remain mysql, and the stored procedures of oracle will be executed externally...
    Kind regards,
    Wilayat.

    Ok, so first of all this is a kind of strange question. Since Oracle and MYSQL can happily live side by side.
    Make sure you have the oracle client (instant or regular ) installed and OCI_8 is set up and working correctly in PHP. If it is, when you run the phpinfo() routine you will see oci_8 on there. IF PHP connects just fine from the command line yet apache wont connect check permissions and things like the LD_Library Path.
    Then in php, right along with your MySQL statements run Oracle Statements eg:
    <?php
    $OraDB = oci_connect(name,pass,tnsname);
    $MySQLdb = mysql_connect([parms]);
    $oraQueryText = "begin sp_some_proc([some parms]); end;" ;
    $mysqlQuery = " Some mysql Query";
    $oraQuery = oci_parse($OraDB,$oraQueryText );
    oci_execute($oraQuery);
    mysql_execute([parms]);
    ?>
    Use the standard fetch code to get data from either of them.
    If you cannot and I mean absolutely cannot get an admin to link in OCI_8 then you still have recourse although it will be tedious as hell. PHP allows you to exec calls to the OS. You still MUST make sure the Oracle Client is installed and that sqlplus runs from the command line. You will more then likely have to have a shell script written to do this as well, but maybe not as I have never tried it with the exception of capturing the return value of sqlplus and you will have to dig into sqlplus to get it to send its results to a file you can then parse with php.
    Good Luck!

  • Call Script through plug-in.

    Hello,
    I have written script(.jsx).I want to execute that script throught photoshop CS3 plugin(Like indesign we call script through plugin).Is it possible call script through Plugin?
    if possible then how?
    On the following thread
    http://forums.adobe.com/message/4632125#4632125
    some one said we can call script by using executeScript method in CS5.But executeScript method is not present in CS3.
    So,I tryied following for CS6.
         #include "JSScriptingSuite.h"
         JSScriptingSuit2 sScriptingSuite;
         sScriptingSuite.CreateEngine(&engineRef);         
         if(engineRef != NULL)
              char *scriptText = "documents.add();"; // script to create new doc.         
              ASUnicode script = (ASUnicode)scriptText;
              sScriptingSuite.ExecuteScript(engineRef, &script, kJSExecutionModeNoDebug, kSPNoError);
        But, when i call CreateEngine function it crashes.Is anything wrong in above code?which library i have to add?
          please,help me.

    The following runJavascript() function lets you execute JavaScript code in Photoshop CS1 to CS6 and Photoshop Elements 6 to 11.  Its only parameter is a c string containing the Javascript code. If the execution was successfull it returns true, otherwise false. If there is an error in the JavaScript code, it displays an error message with the details.
    #include "JSScriptingSuite.h"
    BOOL runJavascript(const char * jscode)
            ASErr err = 0;
            JSScriptingSuite2 * sScriptingSuite = NULL;
            err = sSPBasic->AcquireSuite( kJSScriptingSuite, kJSScriptingSuiteVersion2, (const void**)&sScriptingSuite);
            if (sScriptingSuite == NULL)  //Also support Photoshop CS1-CS4 and Elements 6-10
                    err = sSPBasic->AcquireSuite( kJSScriptingSuite, kJSScriptingSuiteVersion1, (const void**)&sScriptingSuite);
            if  (sScriptingSuite == NULL) return false;
            JSEngineRef engineRef = NULL;
            err = sScriptingSuite->CreateEngine( &engineRef );
            if ( err == kSPNoError )
                    //Convert ascii to unicode
                    wchar_t  * wcode;
                    size_t codelength = strlen(jscode)+1;
                    wcode = (wchar_t *)malloc(codelength*sizeof(wchar_t));
                    mbstowcs(wcode, jscode, codelength);
                    const ASUnicode * result = NULL;
                    err = sScriptingSuite->ExecuteScript( engineRef, (ASUnicode *) wcode, kJSExecutionModeNoDebug, &result );
                    if ( err != kSPNoError )
                            //Display error details
                            MessageBoxW(hDialog,(LPCWSTR)result,L"JavaScript Error",0);
                            return false;
                    free(wcode);
           else
                   return false;
            if (engineRef) sScriptingSuite->DeleteEngine( engineRef );
            return true;

  • Page level process through javascript.

    Hi,
    How to call page level process through javascript in apex.
    Thanks in advance...
    shan.

    Hello,
    >> Based on the text filed value I want to show the corresponding values(from database) in the second region dynamically
    It seems to me like you are talking about the cascading text or select list effect. You should search the forum for “cascading && select” and also check the following example - http://htmldb.oracle.com/pls/otn/f?p=11933:37 .
    I believe Scott is referring to the auto complete effect. You can search the forum for that or for Google suggest.
    Regards,
    Arie.

Maybe you are looking for

  • Activate the 2LIS_03_BF_TR transformation in DEV

    Dear all, I need to activate the 2lis_03_bf_tr transformation in DEV and i cant, the system indicate the next error: "E:In PERFORM or CALL FUNCTION "ROUTINE_9998", the actual parameter "SOURCE_PACKAGE" is incompatible with the formal parameter "DATA_

  • Calendar events created on iphone do not sync to ical...

    I have created several events on my iphone calendar then watched them disappear when performing a sync with my laptop. I have gone to itunes, hi-lited my iphone (when mounted) then gone to "info" tab in itunes, I've selected "home" where it says "Put

  • X100e - partial keyboard no longer working

    bought my x100e 6 months ago. today random parts of the keyboard stopped working. Bksp, tab, Lshift, t, y, [, ], Caps. tried reboot and all updates with no success. using on-screen keboard to write this. noticed this to be common problem on other for

  • Format Error : mkfs.ocfs2 1.2.7 file system too small for a journal

    Hi All, I am trying to implement Oracle 10g RAC on my laptop using vmware and openfiler software . But while executing the command #mkfs.ocfs2 -b 4K -C 32K -N 4 -L oracrsfiles /dev/iscsi/crs11/part1 I am getting the error Format Error : mkfs.ocfs2 1.

  • Is Servlet faster than JSP?

    I known finally JSP was compiled to Sevlet. But I concern about performance issue. Now I writing web-app in pure JSP (Not have any servlet). If I rewrite my code by move business logic to Servlet and left presentation in JSP. My web-app will be faste