How to call function of a process Page PL\SQL Javasrcipt

Hello

I have a javascript function say - function1 () defined in the Page header.
I have a page PL\SQL process after the header.

How can I call the javascript function - function1 () - of PL\SQL Page process.

Thank you
Deepak

Hi Michael,

I have a page PL\SQL process after the header.

Since it's after the header (in the rendering phase) process, I think that this will call the JS? Please correct me if I'm wrong :-)

See you soon,.
Hari

Tags: Database

Similar Questions

  • How to call "j_security_check" in the jsf page

    Hello

    with ADF security set up in Jdeveloper11.1.1.2, it automatically generates login.html and error.html for forms authentication.

    I found in login.html, the form action is "j_security_check" and I try to customize the page of connection with the jsf page, but do not know how to call "j_security_check" in the jsf page, there is no action attribute more within the af: form and I can't find the "j_security_check" in the action of Expression commandButton control build.

    Thanks in advance.

    Best regards
    Bill

    Hello

    you will need to add the login form to the JSf page wrapped in f: verbatim to show as part of the JSF page. JSF 1.2 using f: verbatim shoucl be no need, but in my experience, is best.

    If you develop and deploy on WLS, then Chapter 30 of the Fusion Developer Guide has a solution of God for you to build a form of connection in JSF completely

    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/adding_security.htm#BABDEICH

    This requires any of j_security_check

    Frank

  • How to call oracle Standard form of page style and element OFA should be 'Link '.

    Hi friends,

    I am new to OFA, I want to know how to call oracle OAF page Standard form and style of element must be "link."

    If I click on the element, it should put me in oracle Standard form.

    No button style of the element must be point "link."

    Please help me.

    Thank you

    Thiru.

    Trapani,

    It seems that your link triggers the Action, or you capture does not correctly.

    Add a debug message in your code and see what is printed.

    String eventParam = pageContext.getParameter(EVENT_PARAM);
    System.out.println("eventParam : "+ eventParam);
    if("openForm".equalsIgnoreCase(eventParam))
    {
      System.out.println("Inside If"");
      String destination ="form:SQLAP:PAYABLES_OPERATIONS:STANDARD:AP_APXSUMPS";
      pageContext.forwardImmediatelyToForm(destination);
    }
    

    Also check the settings:

    In your first post is the name of the function: AP_APXSUMPS, but the recent told FND_APXSUMPS.

    The resp_key was also PAYABLES_OPERATIONS and now PAYABLES_PS_FR

    As a test for the link, use the one that works, and then change appropirately.

    See you soon

    AJ

  • How to call our 'Welcome' WebHelp Pro page

    RH9, HR Server 9, WebHelp Pro

    I am the content developer, and I need to give the correct address to distribute to the start page to our network administrators. Should this page named "Index.htm" or can it be something else which indicate us as the default page?

    I understand that this works differently for WebHelp Pro for WebHelp.

    Can someone clarify for me the "best practices" to name the start page when the generation of the WebHelp Pro and when you distribute the URL to the users, create hyperlinks in Help and so on.

    In addition, how to create URLS that open specific pages with the table of contents frame already open.

    Thank you

    Mike

    Index.htm is not the default page, this is the start page. The difference being that the start page is the three executives who take the toolbar, the navigation pane and the topic pane. The topic pane, that's what shows the default theme.

    If follows that the content is not a topic the the file name index.htm that RoboHelp will have to rename them.

    If you were referring to the start page, then blog Colum will tell you more. http://www.cmcandrew.com/robocolumn/archives/2693

    I know that Colum used without problems, but the Adobe line is that it is not supported. I think that the reason is simply that it has not been tested, but I don't know that for some. Your call.

    Is there a reason to oppose index.htm?

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • How to call functions of class Document class side

    Main is my doccument class. How can I call the Main.showAlert class of the caller function.


    package
    {
    import flash.display.Sprite;
    import flash.events.Event;

    SerializableAttribute public class Main extends Sprite
    {

    public void Main (): void
    {
    If init() (stage);
    of another addEventListener (Event.ADDED_TO_STAGE, init);
    }

    private void init(e:Event_=_null):void
    {
    removeEventListener (Event.ADDED_TO_STAGE, init);
    entry point
    }

    public void showAlert() {}

    trace ("called")
    }

    }

    }

    ////

    package
    {

    public class calling
    {

    public void Caller()
    {
    Main.showAlert)
    }

    }

    }


    ////

    change your instantiation of the appellant if you switch a display object.

    package
    {
    import flash.display.Sprite;
    import flash.events.Event;

    SerializableAttribute public class Main extends Sprite
    {

    public void Main (): void
    {
    If init() (stage);
    of another addEventListener (Event.ADDED_TO_STAGE, init);
    }

    private void init(e:Event_=_null):void
    {
    removeEventListener (Event.ADDED_TO_STAGE, init);
    entry point
    }
     
    public void showAlert() {}
      
    trace ("called")
    }

    }

    }

    ////

    package
    {

    import flash.display.MovieClip;

    public class calling
    {

    var mainTL:MovieClip;
    public void Caller(mc:MovieClip)
    {

    mainTL = MovieClip (mc.root);

    mainTL.showAlert)
    }
     
    }

    }

    ////

    p.s. Please check the useful/correct.

  • Button to call popup, confirm appeal process from PL/SQL?

    My apologies in advance to be new at the APEX. I don't know javascript, PL/SQL.
    I have an HTML page with a top button named "Deactivate". When I click on the button
    I'd like a contextual dialog box confirming that I would do the inactive file.

    So if the user clicks "OK", then I would a process of PL/SQL to update my table row
    (I have the primary key of the row stored in an item on the page). Should be simple right?

    Thank you in advance.

    Carol

    Hello

    There are several ways that you can do. We'd watch the feature around a button Delete in a form that this popup a message asking the user to confirm the deletion.

    What I tend to do, however, is to have a defined button template that allows me to run some JavaScript by clicking on the button, but without presenting the page.

    To do this, you must first create a new model of button:

    1 - Go to the components shared, models
    2 - Click on create to create a new model and when you are prompted, enter / select the following text:
    -Click on the model type
    -Check that you have selected 'as a copy of any existing model.
    -Find the "Button" model (or one you use the most for your pages - we will take a copy of it and work on it)
    -Change the name of "Copy of the button" "Button for javascript" (or something similar) and select Yes to copy
    3. then click on to create the template
    4 - once created, locate and change the model by clicking on the link for the name of the new model
    5. in the new model, you have a template parameter. What you see will depend on what theme you are using and which button you copied.

    You will see probably in there somewhere something like:

    <a href="#LINK#">#LABEL#</a>
    

    This is to change:

    <a href="#" #BUTTON_ATTRIBUTES#>#LABEL#</a>
    

    then click on apply changes to save this.

    #LINK # would be replaced by the feature that submits the page

    href = "#" indicates to the browser not to move to another page when the user clicks on the button

    #BUTTON_ATTRIBUTES # allows you to use the "Key Attributes" setting a button to control what happens when the button is clicked.

    If you have any other attribute in the tag has (for example, class = "... "), do not remove those. If there is nothing else in the template parameter, do not change that either (for example, the button may actually be in the TABLE tags and we need those to keep the structure intact)

    Fortunately, this step must be done once the new model button can be used to any button

    We now need to update your button:

    1 Edit button and go down to the setting of the attributes button
    2 - Add in:

    ID="P1_MY_BUTTON" onclick="javascript:confirmDeactivation();"
    

    Change P1_MY_BUTTON regardless of the name of your button is

    3 - change the template used for the button to your new
    4 - Click on apply changes to save as

    Now, we must add in javascript:

    1 - change page attributes (top icon right in the Page Rendering topic Page)
    2 - Go to the creation of the HTML header and add in:

    <script type="javascript">
    function confirmDeactivation()
    (
      if (confirm('Are you sure you want to deactivate this record?'))
      {
        doSubmit('P1_MY_BUTTON');
      }
      else
      {
        return false;
      }
    )
    </script>
    

    3 - Click on apply changes to save as

    Finally, you have your process:

    1 - click on the Add icon processes in the section of the process in the center column
    2. create a new "Anonymous block" PL/SQL process that runs on-demand, after calculations and Validations.
    3 - process code should be something like:

    BEGIN
      UPDATE MYTABLE
      SET STATUS = 'I'
      WHERE PK_ID = :P1_PK_ID;
    END;
    

    P1_PK_ID should be whatever is the name of the page element referencing the primary key of your file

    4. you can provide success or failure messages if you wish
    5. in the settings of Conditions, select P1_MY_BUTTON from the list when you press button
    6. click on create processes

    I'm assuming there's a branch on your page that could be triggered by clicking on this button

    Now, when the user clicks the button, instead of submitting the page, it triggers the javascript code. It prompts the user to confirm the action. If he clicks OK, a doSubmit() runs that shows the page using the name of the button, the value of the claim. The process detects this name and executes the update

    Andy

  • How to call external C/java code in pl/sql or sql?

    Mr President

    I'm a newbie, but I want to know how to call the external C/java code in pl/sql or sql?

    Embedded SQL to Oracle environment is called Pro * C.

  • How to call function befor curret line change _ jdeveloper 11g

    Dear all

    I need call a few rows of curret befor functions has changed.

    How can I do?

    Kind regards.

    If you are talking about an af:table, you can use the property selectionListener to do something when the selection changes.

    John

  • Mobile 'Call' function on the web page

    Hello! Almost ready to publish Web pages, I have a button 'Call' inserted into a thumbnail that links to another page in the site.

    Is it possible to activate this button, dial the number on a mobile Web page? Or at least

    Show number immediately when they are affected so that the user can activate call, rather than having to navigate to the contact page?

    Thank you, Jon

    Hello Jonrees1978,

    Click on the button and update the "links section" of the properties panel with Tel: 555-555-5555 and it should work for you.
    Replace 555-555-5555 by a number of your choice.

    Please let me know if you are talking about something else.

    Kind regards

    Vivek

  • How to call functions of document class?

    I m biggner in as3

    I jst do document class (employee.as) and I do a few functions

    public void account() {}
    trace ("this is an accountant");
    }
    public void designer()
    {
    trace ("this is a Designer")
    }
    public void programmer()
    {
    trace ("this is a programmer")
    }

    in another class (empData.as) I would like to call these functions

    I try this way to m...

    public void empData() {}
    var anuj:employee = new employee();
    var vijay:employee = new employee();
    var amit:employee = new employee()

    ;
    Anuj.Account ();
    Vijay.Designer ();
    Amit.programmer ();
    }

    but nothing tracing...

    You can see(6KB) the source file location

    http://sites.Google.com/site/amit0shakya/home/callclassfunctions

    Thanks for help

    [email protected]

    Yes Amit you are right you can class number n

    classes for example var classA: class1 = new class1()

    classB:class2 = new class2()

    and so on...

  • How to call the procedure on the page of the ofa

    Hi all

    I have a button.when I click this button need to call the procedure and should return the values.i tried with below code.am is error.i am passing two parameters to the procedure.please suggest me where I made a mistake in the code.

    error while calling procedure.PNG

    code in am

    -------------

    public String calprorate (String laseid, String billingid)

    {

    OADBTransaction oadbtransaction = (OADBTransaction) getTransaction ();

    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl) getTransaction ();

    String retValues;

    System.out.println ("number:" + laseid);

    StringBuffer str = new StringBuffer();

    Str.Append ("BEGIN");

    Str.Append (LEASE_PRORATE_PKG ".") LEASE_PRORATE_PROC1 (»);

    Str.Append ("p_lease_id = >: 1");

    Str.Append ("p_billing_id = >: 2");

    Str.Append ("P_PRORATE = >: 3");

    System.out.println ("params");

    Str.Append (»); «) ;

    Str.Append ("END");

    System.out.println ("End");

    OracleCallableStatement oraclecallablestatement =

    (OracleCallableStatement) oadbtransaction.createCallableStatement (str.toString (), 1);

    System.out.println ("Oracle");

    try {}

    oraclecallablestatement.setString(1,laseid);

    oraclecallablestatement.setString(2,billingid);

    oraclecallablestatement.setInt (1, Integer.parseInt (laseid));

    oraclecallablestatement.setInt (2, Integer.parseInt (billingid));

    System.out.println ("param");

    oraclecallablestatement.registerOutParameter (3, Types.VARCHAR);

    System.out.println("3");

    oraclecallablestatement. Execute();

    System.out.println ("exe");

    retValues = oraclecallablestatement.getString (3);

    }

    catch (System.Exception e)

    {

    System.out.println ("delivery");

    throw OAException.wrapperException (e);

    }

    Return retValues;

    System.out.println ("End");

    }

    code co:

    -------------

    If (pageContext.getParameter ("Calc")! = null) {}

    Vo1 OAViewObject = (OAViewObject) am.findViewObject ("AddonBillingVO");

    System.out.println ("VO");

    {if(VO1!=null)}

    CNT int = vo1.getRowCount ();

    System.out.println ("count:" + cnt);

    If (cnt > 0)

    {

    RowSetIterator rs = vo1.createRowSetIterator("empIterator");

    System.out.println ("EMP");

    If (rs! = null)

    {

    While (rs.hasNext ())

    {

    AddonBillingVORowImpl line = rs.next ((AddonBillingVORowImpl));

    System.out.println ("impl");

    If (line! = null)

    {

    String laseid = row.getAttribute("LeaseId").toString ();

    System.out.println (laseid);

    String billingid = row.getAttribute("AddonBillingId").toString ();

    [Serializable] param = {}

    laseid, billingid

    };

    String newupc = (String) am.invokeMethod ("calprorate", param);

    }

    }

    Khalil.

    You can paste your spec procedure here?

    Also see: Oracle tips of Johny: OAF: sample code to call the PL/SQL of OA Framework procedure

  • The message of success and error of process Page PL/SQL in 4.1.1.00.23

    Version 4.1.1.00.23

    Hello

    I have a HTML box that contains Page elements for the user to select values to add records.

    The Page is a Page of PL/SQL process that is triggered by a button.

    I put a Massage of success in the area of Messages on the process of Page in the properties of the success and error, but there are not displayed.

    I also tried: apex_application.g_print_success_message: = ' we inserted records. " At the end of the process.

    It is on the theme: 13. Blue-grey

    How can I get the message to display?

    Can what additional information I give?

    Thank you

    Joe

    Design has changed direction to another page.

    The message is displayed correctly.

    Thank you

    Joe

  • Rollback and process page PL/SQL

    Hello

    I have a page of process that is triggered when you click on the button. I voluntarily put a wrong in the third UPDATE variable name, but it never restores.
    It returns a page by mistake, but updates 1 and 2 are performed.

    Do you know why?

    BEGIN
    UPDATE cons_appel ca
    SET ca.consommateur_id =: P67_CONSERVER
    WHERE ca.consommateur_id =: P67_SUPPRIMER;

    : P67_ROWCOUNT: = NUMBER OF ROWS SQL %;

    UPDATED cons_document cd
    SET cd.consommateur_id =: P67_CONSERVER
    WHERE cd.consommateur_id =: P67_SUPPRIMER;

    : P67_ROWCOUNT2: = NUMBER OF ROWS SQL %;

    DELETE FROM cons_consommateur cc
    WHERE cc.id =: P67_SUPPRIMER;

    : P67_ROWCOUNT3: = NUMBER OF ROWS SQL %;
    EXCEPTION
    WHILE OTHERS
    THEN
    ROLLBACK;
    : P67_MESSAGE_ERREUR: = SQLERRM;
    END;

    Just use local variables:

    DECLARE
    
      l_rowcount1 PLS_INTEGER;
      l_rowcount2 PLS_INTEGER;
    
    BEGIN
    
      UPDATE cons_appel ca
      SET ca.consommateur_id = :P67_CONSERVER
      WHERE ca.consommateur_id = :P67_SUPPRIMER;
    
      l_rowcount1 := SQL%ROWCOUNT;
    
      UPDATE cons_document cd
      SET cd.consommateur_id = :P67_CONSERVER
      WHERE cd.consommateur_id = :P67_SUPPRIMER;
    
      l_rowcount1 := SQL%ROWCOUNT;
    
      DELETE FROM cons_consommateur cc
      WHERE cc.id = :P67_SUPPRIMER;
    
      :P67_ROWCOUNT3 := SQL%ROWCOUNT;
      :P67_ROWCOUNT := l_rowcount1;
      :P67_ROWCOUNT2 := l_rowcount2;
    
    EXCEPTION
    
      WHEN OTHERS
      THEN
        ROLLBACK;
        :P67_MESSAGE_ERREUR := SQLERRM;
    
    END;
    

    Please use--------.

    ...\
    

    Labels to preserve the formatting of the code.

  • How to use login_url in a process of pl/sql

    I tried: login_url, but it does not work

    Modify the application definition, the security attributes: Home > Application Builder > application XXXX > shared components > change the security attributes
         
    Enter a value in the connection URL. Apply the changes.

    Scott

  • How to call a function in another function?

    When I press a button, I want a series of functions to be performed one after the other (they contain interpolations, but its not relevant) , all of them waiting for the previous must be filled. I want to put the series of functions within a function, so I can simply call this function to run all others. Animations work well, but I don't know how to call functions of in another function. It would also be necessary each function to wait until the previous one is complete, to run. This is a clear example of what I need to do:

    boton.onPress = animate;

    Function animate () {}

    Animation1 (onComplete: animation2);

    animation2 (onComplete: animation3);

    animation3;

    }

    Function () {Tween 1} animation1;

    Function () {Tween 2} animation2.

    Function animation3 () {Tween 3};

    any suggestions?

    which isn't really make sense unless you're tweening or do something of asynchronous (such as loading a file).

    Function b (): Void {}

    C() ;

    D() ;  C() executed when this line runs

    }

Maybe you are looking for