Executing PL/SQL with button press.

Hi-
What i'm attempting to do is simple. I have a single HTML page with a region on it called "Buttons" and a single button. The point of the button when pressed is to execute an Oracle stored procedure which performs a query and inserts the result set into a temporary table. Under "Database Manipulation Request/Database Action", i've selected "No Database Action". Under Conditions, i've select Condition Type of "PL/SQL Expression" and placed the name of the procedure in the Expression 1 box. When i run the page, i get the following error:
Invalid PL/SQL expression condition: ORA-06550: line 1, column 34: PLS-00222: no function with name 'PRC_LOAD_TEMP_BULK_DATA' exists in this scope ORA-06550: line 1, column 7: PL/SQL: Statement ignored
The executable is a "procedure" not a function, and i'm guessing that i haven't set up the button properly. How do i properly initiate a database executable from the press of a button?
thanx,
jim.

Actually, something isn't quite right.
I would like my process to work like this:
1) Start with page which has a button on it which extracts data and inserts to a table.
2) Press that button.
3) The button would do two things: (a) extract/populate data and (b) navigate to another form which shows the data just extracted.
My problem is that if i set up the navigation for the button under "Optional URL Redirect" to go to page 2, it DOES do so, but doesn't execute the extract process. If i remove this navigation, the extract/populate DOES happen, but the navigation doesn't happen.
What must be done to either the page processing or the button to allow BOTH the extract/repopulate AND the navigation when the button is pressed?
thanx,
jim.

Similar Messages

  • Execute Case Structure with Button Press Slows Down VI

    Hi -
    I'm fairly new to LabView, and I am having some issues with using a button to run a timed while loop.
    I am writing a VI that outputs a timed voltage pulse to an output channel on a DAQ; meanwhile, the VI reads and graphs the voltage on three input channels on the DAQ. When I use a timed loop that automatically executes when the VI runs, the program works. However, I would like to include a button so I can control the timing and number of voltage pulses sent to the output channel, instead of sending only one voltage pulse each time the VI runs. I have tried to do this using a button wired to a case structure. If the button is 'true,' the VI should send the voltage pulse. If the button is 'false,' the VI should keep the voltage at zero.
    When the button is 'false,' the VI runs normally; however, when the button changes to 'true,' the VI slows down and never sends the pulse. Why does this happen? How can I fix it?
    Also, how can I send the voltage pulse only when the value of the button changes?  I only want the timed loop to execute once when the button changes value.
    Thanks for any help or advice!!!
    Attachments:
    Sensor Read6.vi ‏85 KB

    The graph is in the same while loop as the case structure.  The while loop won't iterate until all the code inside of it has completed.  So the graph only gets updated once, and won't update again until the while loop iterates again.  If you need more continual updating you may want to put that in a loop that executes a couple of times, or completely separate your code into 2 while loops.  Is it that long of a wait considering your pulse length is 1 second?
    Your analog output code is just writing a voltage out (7 volts) until it eventually writes out 0 volts.  There is no reason for it to drop down unless you have some sort of electrical problem between your DAQ device and the device on the other end that is reading the 7 volts.  What are you connecting that analog output too?
    What if you don't use LabVIEW and try to test out that analog output using Measurement and Automation Explorer?  Does it do the same thing?

  • How do I execute a 'remote' when-button-pressed trigger?

    I am using Forms 6 in an 8i/10g environment. I have a data block (COMPACT) which is on canvas MAIN. Compact has an item (button) called CREATE_COMPACT, with a when-button-pressed trigger. I also have an error canvas which has a button called RESTART, so they can restart the entire build after an error. The restart code is exactly the same as the create_compact code, and, after the restart, I want the focus to be the main canvas, so I would like to just have the restart when-button-pressed trigger shift focus to the CREATE_COMPACT trigger and execute it. I have tried:
    go_item( 'Compact.Create_Compact' );
    do_key( 'Enter' );
    This switched me to CREATE_COMPACT but did not execute the trigger. I then tried:
    execute_trigger( 'Compact.Create_Compact' );
    and then:
    execute_trigger( 'Create_Compact' );
    but neither of these work. I get error FRM-40700 no such trigger. Is there any way to do this short of copying code or creating a pl/sql procedure?
    thanks

    do_key('ENTER') will execute the code in a KEY-ENTER trigger so I suggest you move your code into the KEY-ENTER trigger. On your when-button-pressed trigger you should also use do_key('ENTER');

  • View detail records from interactive report with button press

    Hi I want to create a intractive report that will have a + sign for the user to expand the detail region below the record.
    Thanks.
    PKP

    thanks kartik,
    I did exectly what is there in there. But I am having problem in display. I have put my application in
    http://apex.oracle.com/pls/apex/f?p=44031:1
    login as GUEST/password
    select Company Accounts Management from Application Menu --> setup tab -> Companies from setup menu
    the detail record is not displaying. correctly.

  • Execute t-sql before retrieving report data

    Hi,
    Is there a way to execute t-sql, with the connection from within the report, before the report retrieves it's data?
    I need this to initialize the connection's context_info.
    After searching the web I have found a solution to my problem which is instead of using a View, use a stored procedure which takes care of initializing the context_info and return the result of the view.
    Is there any other solution using crystal reports XI (sp none)?

    Download the service Pack or upgrade to CR XI R2 ( 11.5 ) for free and use your XI keycode to install it.
    Only other way would be to possibly use a SQL Expression, it may work. Only one data source can be used if using an expression.
    Thank you
    Don

  • PLS-00201 when executing insexcpr.sql starter

    Receiving a PLS-00201 on wwutl_htp.scriptclose when executing @insexcpr.sql with the suggested schema in the May PDK of starter. Followed the prior instructions. Also tried granting execute on wwutl_htp to starter.

    Thanks Maxim & Rakesh, that worked.
    It does look like a bug. The return on it's own works with other functions e.g. ASCII etc. but not ORA_HASH.
    The select from dual version is painfully slow (e.g. 25 x times) though so I think I'll use dbms_utility.get_hash_value instead for now. I was planning to use that version in 9i anyway as my app still needs to run on 9i - but I was trying to get the ORA_HASH working for 10g as it is incredibly fast.
    Will definitely log it though.

  • Execute PL/SQL using the defaul Create button.

    I have created an application and everyting with working fine.
    I have one page where I create a work order. This is saved by using the default create button.
    What I want to do now is, when I save I want to execute some PL/SQL, so essentially kicking off another process.
    Is this possible? Is so how.
    cheers
    James

    James,
    Since you want PL/SQL procedure to be fired after clicking the default create button, create a a conditional PL/SQL process. Please follow the below steps:
    1. Create a page process (Click process create icon under page processing in edit page). Choose process category as 'PL/SQL'. Click 'Next'.
    2. Enter the PL/SQL procedure that should be executed on clicking the button. (In your case, it is the sql insert statement). Click 'Next'
    3. Enter the success and failure message if required. Click 'Next'
    4. For'When Button Pressed' select list, please choose the Default 'Create' Button. Press 'Create Process'.
    Hope this helps.

  • Execute PL/SQL upon click of a button

    I am using APEX 4.0 in Oracle 11g Express edition.
    I want to execute some PL/SQL code upon click of a button, I read in other threads that I can edit the button's action to 'Defined by Dynamic Action'. However, when I create a button, I do not get 'Defined By Dynamic Action' as an action choice.
    Is this only valid for APEX 4.1? If so, is there a way I can do this?

    Hello,
    After clicking the button, do you want to submit the page and execute PL/SQL or you want to execute with submitting the page?
    With Submit:
    Create page process -
    Type - PL/SQL anonymous block
    Process Point - On Submit - After Computations and Validations
    Conditions - When Button Pressed (Process After Submit When this Button is Pressed) select your button.
    Without Submit:
    Create a Advanced Dynamic Action
              Event - Click
              Selection Type - jQuery Selector
              jQuery Selector - <Selector to select your button> (for e.g. #BUTTON_123 where BUTTON_123 is ID of your button)
              Next >>
              Action - Execute PL/SQL
              PL/SQL Code - Put your PL/SQL Code here
              Page Items to Submit - Typically List of pages items you want to access in PL/SQL code
    Hope it helps.
    Regards,
    Hari

  • Include Button that executes PL/SQL procedure to SQL query based region

    I would like to add two columns to a SQL query region.
    These columns would not be sourced from the query, but rather would be used to execute a PL/SQL procedure.
    For example, I would like to have a manager approve or deny adding an additional employee to the department.
    There would be one button for APPROVE. And, one button for DENY.
    The PL/SQL procedure would execute to perform the required DML based upon the selected action (either APPROVE or DENY).
    A sample output would look like this:
    <APPROVE>, <DENY>, John Doe, Accountant
    <APPROVE>, <DENY>, Jane Doe, Accountant
    Is there any way to add a button to a SQL Query based report region where that button executes a stored proc? If so, what is the basic process for doing this?
    Thanks!
    -Reid

    Is there any way to add a button to a SQL Query based report region where that button executes a stored proc? If so, what is the basic process for doing this?Conditional page item? You can associate processes with buttons on a page

  • Dynamic Action with KeyCode check for ENTER button pressed

    Hi,
    I want to create a dynamic action which executes if the ENTER button of field P1_NAME is pressed.
    I thought about this type of DA:
    Event: Key Press
    Selection Type: Item(s)
    Item(s): P1_NAME
    Condition: Javascript expression
    Value: this.triggeringElement.keyCode == 13
    That unfortunately doesn't work! Dynamic action doesn't get executed...
    Hope for help! :)
    Tobias

    I found the solution in my own blog: :)
    Event: Key Press
    Selection Type: Item(s)
    Item(s): P1_NAME
    Condition: Javascript expression
    Value: this.browserEvent.keyCode == 13

  • [Solved] Keep the last button pressed with a custom style

    Hello,
    I have a VBox with 20 buttons and I have this style applied (menu.css) (only for VBox wrapper):
    .button:focused {
        -fx-background-color: #0768A9;
        -fx-text-fill: #FFFFFF;
    But when I pressed other button outside the VBox the style disappears, because the other button get the focus.
    I'm afraid I'm taking the wrong way.
    How I can do to keep the last button pressed with a custom style? (Only for buttons containing the VBox).
    Best regards

    I created a simple method to change background colors in buttons:
        private void setSelectedBtnStyle(Button bboat) {
      // Change style oldSelectedBoat
        selectedBoat.setStyle("-fx-background-color: white;-fx-text-fill: black;");
        // oldSelectedBoat var change to newSelectedBoat
        this.selectedBoat = bboat;
      // Change style newSelectedBoat
        selectedBoat.setStyle("-fx-background-color: #0768A9;-fx-text-fill: #FFFFFF;");;
    Surely not the best solution, but it works for me.
    Best regards.

  • URL Branch with java script  target fails, but works as button press

    I have a java script that displays a "report is loading" message when the page's submit button is pressed via the optional URL redirect attribute of the button.
    Unfortunately, I had to remove the optional URL Redirect so that I could perform some computations and processes as a result of the button press.
    I tried to put the script link in a branch attached to the button, but it failed with the following error.
    ERR-1777: Page 11 provided no page to branch to. Please report this error to your application administrator.
    Restart Application
    After the branch to the java script, there is an unconditional branch to page 11.
    Any one encounter this issue before and, if so, is there a work around?

    Hi
    Can you not use a URL redirect on the button to call your Javascript function - the Javascript will display the message you want to display, then call
    doSubmit('request_name');
    ...to submit your page, picking up all your processes/computations etc
    You then need to define a branch on your page which is conditional on the value of REQUEST - in this case request would be 'request_name'.
    regards
    Andrew
    UK

  • How do I get Siri on with out pressing that button on my I phone 5s

    How do I get Siri to talk with out  pressing that home button

    It does for everyone else.  You have to bring the phone up to your face (like making a call), activating the proximity sensor, for Siri to start.

  • Execute a procedure with a list of array in sql server 2008

    HI all,
    I have a procedure which has a list of values passed as an array . How can i execute my procedure with array list? how to implement this?Please help me.
    Thanks in advance
    Deepa

    Hi Deepa,
    basically Microsoft SQL Server does not support arrays as data types for procedures. What you can do is creating a type which represents a table definition. This type can than be used in a procedure as the following demo will show:
    The first script creates the environment which will be used for the execution
    -- 1. create the table as a type in the database
    CREATE TYPE OrderItems AS TABLE
    ItemId int PRIMARY KEY CLUSTERED
    GO
    -- 2. demo table for demonstration of results
    CREATE TABLE dbo.CustomerOrders
    Id int NOT NULL IDENTITY (1, 1) PRIMARY KEY CLUSTERED,
    CustomerId int NOT NULL,
    ItemId int
    GO
    -- 3. Insert a few records in demo table
    INSERT INTO dbo.CustomerOrders
    (CustomerId, ItemId)
    VALUES
    (1, 1),
    (2, 1),
    (3, 3),
    (1, 3);
    GO
    -- 4. Create the procedure which accepts the table variable
    CREATE PROC dbo.OrderedItemsList
    @Orders AS OrderItems READONLY
    AS
    SET NOCOUNT ON;
    SELECT o.*
    FROM dbo.CustomerOrders AS O INNER JOIN @Orders AS T_O
    ON (o.ItemId = T_O.ItemId);
    SET NOCOUNT OFF;
    GO
    The above script creates the table data type and a demo table with a few demo data. The procedure will accept the table data type as parameter. Keep in mind that table variable parameters have to be READONLY as parameter for procedures!
    The second script demonstrates the usage of the above scenario
    When the environment has been created the usage is a very simple one as you can see from the next script...
    -- 1. Fill the variable table with item ids
    DECLARE @o AS OrderItems;
    INSERT INTO @o (ItemId)
    VALUES
    (1), (3);
    -- 2. Get the list of customers who bought these items
    EXEC dbo.OrderedItemsList @Orders = @o;
    MCM - SQL Server 2008
    MCSE - SQL Server 2012
    db Berater GmbH
    SQL Server Blog (german only)

  • Submit button executes a sql query

    In my servlet I'd like to create a submit button, and when it is clicked I want to execute an sql query.
    For example;
    If I write a name; I want to add that name to my table in my database.
    Could you give an example please?
    Thank you

    PreparedStatement ps = con.prepareStatement("insert into foo (name, birthdate) values (?, ?)"); // double check my sql insert syntax. I'm not sure if it's right.
    String theName = ...; // get name from what user enters
    Date theBirthDate =...; // likewise birthdate
    ps.setString(1, theName);
    ps.setDate(2, theBirthDate);
    ps.executeUpdate(); Look at the APIs or google for java preparedstatement tutorial or something for more info.

Maybe you are looking for