Access to the element in a dynamic PL/SQL trigger Action?

Hello

I have a form that is used to calculate the volume of a (large) number of tanks based on the heights of tank is entered.

I have a PL/SQL procedure that performs the calculation: it receives the name of the tank and the height and calculates the volume (each tank may have different physical characteristics).

I didn't create a dynamic Action by tank (I'm lazy and the number of tanks is important!). I currently have a dynamic Action that is triggered whenever one of the heights of the tank on the form changes. The PL/SQL action called the calculation for each tank. FOR EXAMPLE

:P1_TANK1_VOL := tank.vol('TANK1', :P1_TANK1_HEIGHT);
:P1_TANK2_VOL := tank.vol('TANK2', :P1_TANK2_HEIGHT);
...
:P1_TANK50_VOL := tank.vol('TANK50', :P1_TANK50_HEIGHT);

This works, but is to perform calculations of 50 whenever one is necessary, and can seem slow.

Is there a way to identify the trigger for the action of PL/SQL? FOR EXAMPLE

IF TriggeringElement = 'P1_TANK1_HEIGHT' THEN
:P1_TANK1_VOL := tank.vol('TANK1',:P1_TANK1_HEIGHT);
END IF;

Any ideas?

No PL/SQL directly. You could do a JavaScript action before your PL/SQL and write the id (which is the name of the element in the APEX), the item trigger in a hidden item, submit it to your PL/SQL action and now you know how it started.

Kind regards

Joni

Tags: Database

Similar Questions

  • Access to the elements of an array passed as object reference

    Hi all!

    I am quite new to TestStand and therefore, my question might be simple enough but I was not able to find the solution by looking at previous posts.

    I have a sequence that passes a custom array (of data type) to another to make basic on the table stuff (reverse the order of the elements, for example).

    I want to move to the sequence called an object table reference

    The problem is that I am not able to read the array element inside the sequence called using the object reference.

    I found the way get the number of items, but I'm not able to access the item

    In addition, the TestStand GUI is able to let me see the array pointed to by the object reference that is passed within the known sequence, so it is possible to access... but how?

    I want to do operations on the object reference passed within a 'No return' TestStand if possible.

    Thank you very much.

    Andrea

    In other words:

    How do I access the field 'temperatureTag' item number '0' from the object variable reference referenceToClone?

    Locals.referenceToClone [0] .temperatureTag does not work...

    I don't know what is the recommended method to solve your problem. When you try to few alternatives, I was able to get the value required by the following expression (tested with TestStand 2014):

    Locals.referenceToClone.GetPropertyObject("[0]",_0).temperatureTag

    Try and tell me if it works for you.

    Use this workaround with caution.

    -Shashidhar

  • access to the MC in a dynamically load the MC

    I am developing a website for the school and to make eaier update, I'm trying to make it as dynamic as possible.  So far, I was able to load dynamically in MC.  Banners of these MC consist of small MC themselves.  When the mouse enters on one banner, I want access to one of his children to MC.  That's what I have so far:

    the banners to load are defined in the library to export with a class corresponding to their respective names

    When the page loads...

    Create class names
    for (var i: int = 1; i < = 1; i ++)
    {
    placeBanner ("bannerMC" + i);
    var test: String = "bannerMC" + i;
    trace (test);
    }

    banner of the library import
    function placeBanner(bannerClass:String)
    {
    var tempClass: Class = getDefinitionByName (bannerClass) in class;
    var newBanner:MovieClip = new tempClass() as MovieClip;
    newBanner.name = "bannerMC" + i;
    newBanner.x = 29;
    newBanner.y = 100 + (129 *(i-1));
    addChildAt(newBanner,4);
    trace ("placing entry:" + newBanner.name);
    newBanner.buttonMode = true;
    newBanner.addEventListener (MouseEvent.ROLL_OVER, overBanner);
    newBanner.addEventListener (MouseEvent.ROLL_OUT, outBanner);

    newBanner.addEventListener (MouseEvent.CLICK, clickBanner)

    }


    at this stage for ROLL_OVER I want access to a clip of the bannerMC sup

    for interpolation of alpha but it does not work! I get a "cannot access a property or method."

    a null object reference", I have been unable to solve this problem

    function overBanner(e:MouseEvent):void
    {
    var cBanner:MovieClip = MovieClip (e.currentTarget);
    trace ("Roll_OVER object is:" + cBanner.name);
    var alphaMC:MovieClip = MovieClip (cwork.getChildByName ("borderMC"));
    var hiLite:Tween = new Tween (Regular.easeIn,.8, 1,.25, alphaMC, "alpha", true);
    trace ("child Highlighted:" + alphaMC.name);
    }

    so the above is function of overBanner is my original attempt.  My other attempts also failed as well.   Any help would be great.  Another question: what would be the best way to clear the banner of the scene movie clips when the user is brought to another page of my Web site?

    Thank you

    FM2b

    Don't assign it your bannerMC1 the name of the class object.

    I modified your code just to get a working example.  This example has a movieclip in the library with a class name bannerMC1.  bannerMC1 object contains a mc with an instance name borderMC

    The code below is what worked for interpolation of border in...

    Import fl.transitions.Tween;
    Fl.transitions.easing import. *;
    Import fl.transitions.TweenEvent;

    for (var i: int = 1; i<=1;>
    {
    placeBanner ("bannerMC" + i);
    var test: String = "bannerMC" + i;
    trace (test);
    }

    banner of the library import
    function placeBanner(bannerClass:String)
    {
    var tempClass: Class = getDefinitionByName (bannerClass) in class;
    var newBanner:MovieClip = new tempClass() as MovieClip;
    newBanner.name = "bannerM" + i;
    newBanner.x = 29;
    newBanner.y = 100 + (129 *(i-1));
    addChild (newBanner);
    trace ("placing entry:" + newBanner.name);
    newBanner.buttonMode = true;
    newBanner.addEventListener (MouseEvent.ROLL_OVER, overBanner);
    newBanner.addEventListener (MouseEvent.ROLL_OUT, outBanner);

    newBanner.addEventListener (MouseEvent.CLICK, clickBanner)

    }

    at this stage for ROLL_OVER I want access to a clip of the bannerMC sup

    for interpolation of alpha but it does not work! I get a "cannot access a property or method."

    a null object reference", I have been unable to solve this problem

    function overBanner(e:MouseEvent):void
    {
    var cBanner:MovieClip = MovieClip (e.currentTarget);
    trace ("Roll_OVER object is:" + cBanner.name);
    var alphaMC:MovieClip = MovieClip (cBanner.getChildByName ("borderMC"));
    var hiLite:Tween = new Tween (alphaMC, "alpha", Regular.easeIn, 0, 1, 2, true); I exaggerated the numbers to confirm the interpolation for me
    trace ("child Highlighted:" + alphaMC.name);
    }

  • Access to the header and footer dynamically

    Hello:

    I need to be able to put a header and a footer dynamically in the form during execution.  For example: I have a button on my form, when the button is clicked it places certain text in the header and the footer.  This must be done programmatically. Thanks in advance...

    I will need to see the form in order to determine what the problem... often send you it to [email protected] with an explanation please?

    Thank you

    Paul

  • Add the element as XML using PL/SQL

    I have CLOB column contain data XML (more than 3000 characters)
    something like that
    --------------------------------------------------------------
    < order >
    < header >
    < line1 > < / line1 >
    < line2 >
    < name1 > < / name2 >
    < name1 > < / name2 >
    < / line2 >
    < / header >
    < detail >
    < / details >
    < / order >
    ----------------------------------------------------------------
    Could someone tell me how I can add a * < line3 > < / line3 > * under an element * < header > *.

    Thank you!
    FAH

    Here's one way:

    SQL> create table my_table ( my_clob clob );
    
    Table created
    
    SQL>
    SQL> insert into my_table (my_clob)
      2  values ('
      3  
    4 5 6 7 8 9
    10 11 12
    ') 13 ; 1 row inserted SQL> select appendchildxml( 2 xmltype(my_clob) 3 , '/order/header' 4 , xmlelement("line3") 5 ).getclobval() 6 from my_table 7 ; APPENDCHILDXML(XMLTYPE(MY_CLOB --------------------------------------------------------------------------------

    If you really want to update the column with the new content then:

    update my_table
    set my_clob = appendchildxml(
                    xmltype(my_clob)
                  , '/order/header'
                  , xmlelement("line3")
                  ).getclobval()
    where ...
    
  • Help the fetaching data in dynamic PL/SQL tables

    Hello

    I'm develioping a PL/SQL procedure in which I'm 24 tables of PL/SQL creation of the same type.

    But while inserting data in them, I need to use the table dynamically names for example, immediate enforcement to put the data in the tables would remain even just I need for each loop for the Execute immediate statement, it must use the name in the other table.



    See the code example below:

    Varchar2 column (20);
    Type RA_TABLE is table of the CALL_DETAIL_EXCEPTION. TYPE % IC_CIRCT_GR_CD
    index of directory;

    MY_RA1 RA_TABLE;
    MY_RA2 RA_TABLE;
    MY_RA3 RA_TABLE;
    MY_RA4 RA_TABLE;


    BEGIN

    for idx in 1.cnt_interval loop

    Column: = "MY_RA" | IDX;

    Query1: = 'select Trunk_info bulk collect INTO MY_RA | IDX |' dbl.vw_cgi v where there is no (select 1 of dbl.varun f
    where f.ic_circt_gr_cd = v.TRUNK_INFO and f.call_gmt_dnect_dt_time between
    to_date('''|| stime ||'') (', "yyyymmddhh24miss") and to_date('''|| eTime ||'') ((', 'yyyymmddhh24miss'))';


    Now, when I run this code, it gives me an error for query1 saying that it's a function not implemented in Oracle.


    He is not able to choose this dynamic table name.

    Help, please!
    dbms_output.put_line(l_outertab(1)(1));
    
  • retrieve the value of xml in PL - SQL elements

    Hello

    I invoke the PL/SQL WSDL and WSDL is back after the release.

    + <? XML version = "1.0" encoding = "UTF-8"? > +.
    + < SOAP - ENV:Envelope +.
    xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/".
    xmlns:SOAP - ENC = "http://schemas.xmlsoap.org/soap/encoding/".
    container = "http://www.w3.org/2001/XMLSchema".
    xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
    + < SOAP - ENV:Header +.
    xmlns:SOAP - ENV = 'http://schemas.xmlsoap.org/soap/envelope/' > < / SOAP - ENV:Header > < SO
    AP - ENV:Body >
    + < ser-root: soapIntefraceASVOutput +.
    xmlns:SER - root = http://eai.corpit.microsoft.com/microAccountValidation/provider/Acc «»
    ountStringValidator' > < acctStringValidateOutput >
    + < 112 > status < / status > +.
    + < message > in +.
    account segment is valid
    code < / message > < / acctStringValidateOutput > < / ser-root: soapIntefraceASVOutput > < / SOA
    P ENV:Body >
    + < / SOAP - ENV:Envelope > +.

    I tried to analyze this XML in my PL/SQL block and wanted to retrieve a State <>and < message > element Value.

    Please help me on this.

    Thank you
    AB,

    ABA says:
    Since it is a generic procedure, and we do not know the number of output items... Is it possible to retrieve all the elements of output using pl/sql (without knowing the name of the output items).

     with tab
            as (select xmltype.createxml('
      
     
     
     
        
           
               112
               Invalid account segmentcode
          
        
     ')
                          xml
                 from dual)
     SELECT column_value
       FROM tab t ,
      xmltable( xmlnamespaces('http://schemas.xmlsoap.org/soap/envelope/' AS "SOAP-ENV",'http://eai.corpit.microsoft.com/microAccountValidation/provider/AccountStringValidator' AS "ser-root"), 'data(//SOAP-ENV:Envelope/SOAP-ENV:Body/ser-root:soapIntefraceASVOutput/acctStringValidateOutput/*)' passing t.xml )
    

    Ravi Kumar

  • Deleting files of Time Machine, "the operation cannot be performed because you have not granted access to some of the elements."

    I am trying to remove approximately two weeks (at a time), but I get "the operation cannot be performed because you have not granted access to some of the elements." How can I get around that?

    Thank you

    My OS is 10.11.3

  • How to view the last element in a dynamic table 1 d

    Hello..

    I want to display the value of the last element in a dynamic array 1 d... / I mean... If I stop the vi race, I need to display the last element of the array... How can I do this?

    and is it possible to use a button to start the vi... instead of using the Run button on the face before of the vi?

    An array of index!.  Size of table allows to determine the size of your array, subtract 1, that feed into the terminal array of Index index.

    You start the VI running somehow.  It can be assigned to run when opening.  Assuming that what you want is a way to type values in a front panel, press a GO button you created on the front panel, then have the real part of the VI to run.  You can use a structure of the event.  Or put a while loop at the beginning with a small wait next statement which basically just asks the GO button.  When you press this button, the Boolean value true stops the whole loop and allows the program to move on the main body of your program.

  • To access the elements of a cluster of LV-class

    Elements of a cluster are also accessible using nodes property. Therefore, it is possible to write a generic function to get the "content" (e.g. labels, variant values) of the clusters.

    But it's not possible for a "class pole", even, it is used in a class method. The property is not available here.

    How can I programmatic read items (attributes ' ") of a class (-cluster)?

    For example, I like to read the labels of all the elements / attributes in a class.

    Any idea?

    You can access the items in the class, but this approach is somehow "hackmac" and so I would not recommend you to do. However, it seems to be possible...

    In the attached approach, exchange of with the name of your control that contains the data of the class.

    hope this helps,

    Norbert

  • Ask questions about the elements of access on Blackberry Webwork sample

    Hi all, sorry for such a newbie question, I would like to ask something about the elements of access after im read the sample application blackberry on blackberry html5 webwork site and im find access element script like below

    I would like to ask what is the meaning of this script? IM usually use the site name, and this is the first time that I have, see

    well thank you all answer :-)

    The * character is a wildcard character, which means that your application can access the resources of any URI, not just another specific.

  • Political dynamic VPN access and access to the administration

    Hi all

    I'm testing a scenerio with an ASA 5520 so he could authenticate VPN users against and an environment Active Directory more access to management as well. I created a dynamic access on the ASA policy indicating that, if you are a member of the Active Directory 'Managment' group continue. I have chagned the DefaultAccessPolicy to "Finish." With it, users could not connect VPN because they are not a member of this group, but access to manage the ASA is allowed due to this policy.

    Is there a way through the use of dynamic access policies I can afford access to the administration (SSH, AMPS, etc.) by matching to membership in a group and will allow normal users to VPN in successfully, but not give them access to the management of the ASA?

    I just try this but it seems that I should be able to swing that?

    Thaks in advance.

    Hello

    You can try to apply the DAP and configure the filter ACL network. allowing only the protocols you want to that they can access.

    Kind regards

    Anisha

    P.S.: Please mark this thread as answered if you feel that your query is resolved. Note the useful messages.

  • value of the element is not common when used in dynamic action

    I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.

    When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.

    How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?

    I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.

    dacoellov wrote:

    I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.

    When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.

    How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?

    I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.

    What dynamic action event and what types of action are involved here? Provide details, or better yet share identification information of developer comments for the apex.oracle.com workspace so that we can see the demo.

    If the dynamic action executes an SQL statement or a PL/SQL process on the server that requires page updated element values in session state, specify these items as part of dynamic action Page to submit items .

  • dynamic action sets the value of the element, but not save to DB on submit

    I'm working on a page where the value of several to show only the page elements are defined using a dynamic Action.  They are set when the user selects a value in a list of selection (and is based on the value of the selection list).  Dynamic action is triggered on a list selection change event and then runs the real action "set the value.  The selection list displays the names of sales representative.  The three fields dynamically filled are the org structure (that is, their chain management).

    For the action to set the value, I use a defined Type of SQL statement:

    Select VP, DIR, MGR

    of SALES_ORG where SSR =: P20_SSR

    In the affected elements, I have fixed Type of selection to the 'item (s)"and the value of the Item (s) for 'P20_GVP, P20_DIR, P20_MGR.

    Dynamic action works fine for the display of the page (that is, when I select a sales representative in the selection list dynamic action properly updated only display value fields three).  This page is a form in which the user submits information relating to the rep.  When the page is sent, all fields are filled in a new record of DB with the exception of three that were populated dynamically above.  These fields get the values NULL.

    When the dynamic action updates the values in the three fields is - it does not set the value of session?  Why these fields don't are not taken into account in the submit other ideas > process Page?

    I use 5 APEX with Chrome on Mac (Yosemite).

    Thanks for the note.  I didn't only display the items could not be used in this way.  I think I'll take a different approach with the design; given that the org structure is in another table that I can simply refer to that by rep when necessary rather than saving the information uploaded to the page of the form.  The reason why I have not fill the screen only the points of loading the page is because I don't know what the values should be until the user selects a sales representative in the selection list.

    I'll change the design to one of the following:

    1) change the display only items of standard text field.  NOTE: if I make the text read-only field that causes other problems when loading (I get the message "violation of protection Session state").

    OR

    2) do not include org structure in the download folder and just refer to table org Rep when necessary.

    Thank you!

    Steve

  • I've added two elements (accessibility and analyze) in the Tools menu of right hand.  How to remove or hide?  Or at least rearrange the elements of the toolbar. I want to Sign &amp; certify be the last element/section.  Thank you.

    I've added two elements (accessibility and analyze) in the Tools menu of right hand.  How to remove or hide?  Or at least rearrange the elements of the toolbar. I want to Sign & certify be the last element/section.  Thank you.

    Hi Stacey Nathan,

    To remove the items from right toolbar, click Tools at the top.

    Then open the fall down to the accessibility or analyze and select 'delete the shortcut '.

    In a similar way, select "Add a shortcut" in the Tools drop-down menu to add to the tool on the right pane.

    Let us know if you need help.

    Kind regards

    Meenakshi

Maybe you are looking for

  • Mail will not connect

    My mac pro book was stolen, and since the replacement, I tried to add my gmail account to "mail". The only existing account in mail is an iCloud account. When I try to add my gmail account, it says it already exists. Would it because it might be sign

  • Satellite L500-1U7 - how do I clear CMOS?

    Hello everyone!I have a problem with a laptop Toshiba Satellite L500-1U7.He was blocking down by himself for a reason, and started after the reinstalling with W7 clean blue screens content poping up. I wanted to test the memory and HARD drive with so

  • cannot install self-signed certificates sbs2008 on Vista SP2 with IE8

    I use SBS2008 Setup and it is to use self-signed certificates, My laptop is Windows Vista SP2 with IE8. When I try and connect to my OWA SBS2008 Web site, I get this error: there is a problem with this site's secure certificate. I tried to solve my p

  • Must be able to open the .csv file in Excel separated by two, and; -Windows 7 list separator

    Original title: list separator Windows 7 Hi, I was wondering is it possible to add 2 values to list separator?  I need to be able to open the .csv file in Excel separated by two, and;  At the moment I can only do that if I continue to change the list

  • BlackBerry smartphones can not watch YouTube in HD

    Guys, I can't watch videos on Youtube in HD format. I have tryied 2 BB phones. When I chose the options button, there is no any button HD like on Android OS. What can I do? Thank you!