dynamic action if checkbox is enabled

Hello

I've created a report with a checkbox for each line

Select apex_item.checkbox(1,sid,'UNCHECKED') "",

user name,

SID,

Serial No.,

status,

program

session $ v

where username in (select uname vtb.al_anwender)

Now, I want to execute a statement to kill session checkbox if (one or more) is enabled.

How can I identify the sid and serial # checked lines?

Thank you very much

Concerning

Christian

mediap wrote:

Hello

I changed the immediate execution of an insert query to see if the value of var kill_ddl is correct.

but the rows in the ksess table looks like

alter system kill session '% session_uid % '.

a record for each session wheter that the checkbox is checked or not.

is there something wrong with referncing the session_uid variable?

Sorry, missing a setting in there. I have now fixed.

Tags: Database

Similar Questions

  • dynamic action with checkboxes

    DB 11gxe and apex 4.0,

    Hi all

    I want to do,

    If the check box selected

    then

    do something; -set a value of another element, for example

    elsif unchecked

    then

    Delete the value of the item;

    end if;

    How to say (checked and unchecked) in the code?

    Newbi_egy

    Check out this demo

    On the left, the parameters of the dynamic action are listed.

    Use the condition equal to the checked valuevalue.

    Real actions are the action that will run when the check box is selected.

    The false actions will run if the check box is cleared.

    Nicolette

  • Dynamic Action condition javascript checkbox.checked count > 0

    Hi all

    I'm stuck with a condition of the dynamic action. I have the following:

    $("#P302_COMPANY").val () .length > 0 & & ($("#P302_DEPARTMENT").val () .length > 0 | $("#P302_PRODUCT").val () .length > 0 | $("#__P302_INDUSTRY__").val () .length > 0)

    What would be nice if all items were areas of text, but P302_PRODUCT and P302_INDUSTRY are the lists box, and I want to check if 1 or more values in the list are checked... but I can not work how to do it... any ideas?


    Thank you

    TSD

    Hi Tod

    then three is still fair to say if the element has a checked value?

    Yes, but not straight forward.  You need a javascript routine that traverses the dom looking for items of type box to the appropriate div, and then, for each item in the loop, set a flag if the checkbox is set (assuming that you only 1 of the total updated check).

    Another way would be to create a hidden page element, say P302_PRODUCT_CHECKED, then put a dynamic action on the element of the page P302_PRODUCT with the onclick event and a condition that if the box return value is not null, then the real event will mark the beginning session state (PL/SQL Expression - apex_util.set_session_state) and the value for P302_PRODUCT_CHECKED to say 'Y '.  You would need a false event to set P302_PRODUCT_CHECKED to null if the checkbox is not set. You can then test #P302_PRODUCT_CHECKED == 'Y '.

    Concerning

    Paul

  • dynamic action on the selected value shuttle

    Hello

    Can anyone help me in this.

    I guess a requirement

    There is a shuttle Apex and multiple selection is allowed

    and there are values such as:-others, first, second

    but when we choose other no other value should be able to select

    in what other is selected in the shuttle a textbox is displayed by dynamic action

    example on https://apex.oracle.com/pls/apex/f?p=76604:3:4326822625865:

    workspace:-REEMATEST

    username:-test

    password:-test

    76604 application

    page 3

    ReemaPuri wrote:

    can you give me a link for the dynamic creation of checkbox

    FOR EXAMPLE BASED ON CREATED LOV SHARE COMPONENT

    Select the column name as the name of column d, r

    the name of the table

    Boxes are just another way to make a LOV. For a dynamic set of checkboxes, the standard pair of value/label LOV SQL projection is required in the definition:

    select initcap(dname) l, to_char(deptno, 'tm9') v from dept
    order by v asc
    

    If additional values are required, they can be included in the query using unions:

    select initcap(dname) l, to_char(deptno, 'tm9') v from dept
    union all
    select 'Other', 'OTHER' from dual
    order by 2 asc
    

    Checkbox events can be handled by dynamic actions as indicated on page 586 of your test App. Note that I prefer to enable and disable the controls on form rather than hiding and showing them that there is less confusion for the user. It is simple to change the disable/Enable dynamic actions to hide and show if necessary.

  • Theme 11, brought direct dynamic action works only in Internet Explorer

    Hi all
    I use the theme 11, and I have a dynamic action on page 0 which corrects width of the region, because it's too long to match the width of the page. I put the scope of the 'live' event because the region is a report and there as many lines and paging is necessary. When I have to go to page 1-15 16-30 and if there is a folder that is longer than the current 15, page is partially updated and the width is changed, but that works for Mozilla and Chrome. In IE the dynamic action of page 0 is not triggered, despite the magnitude of the event live and I don't know why. Is there a way I can fix this?

    Thanks in advance!

    Hello Ivan,.

    Thanks for the information, it is actually an interesting case. I guess you "Enable partial Page Refresh" in the report attributes the value 'yes '. Please let me know if this isn't the case.

    I don't think that a "Load of Page" event, with a range of 'live' is correct. The event 'live' is a way of saying, fix some behaviors to something on a page (for example, a deletion in a row to report icon is clicked) and keep this behavior 'living', even if this part of the page is updated (for example the report pages with PPR for the next game or the results, and clicking on the delete icon in the report still works). However, here, when the event is the loading of the page, I don't think by specifying 'live' will do what you want.

    Which, in my opinion, you are really interested, this is indeed when the page loads first, but then when the report is refreshed through PPR. Therefore, I would like to try the following:
    (1) set up the dynamic action event "After Refresh".
    (2) select the region report of the ' when > selection ' attributes (guaranteeing your report model contains an id = "REGION_STATIC_ID" attribute, otherwise her DA will not work).
    (3) in your 'Actions', make sure that the 'Fire when loading the Page' checkbox is checked.

    So that said doing the action when the page loads, then always after the report is updated through PPR. It fires after the paging, sorting, or a refresh of the dynamic action.

    It is interesting (at least in my mind!), you can actually define the scope of the event back to 'link' here. That's because registering in DA, deliberately we attach the event handlers to the management report on an element that is not updated during the PPR for the paging or sorting, it is further up in the DOM tree. This gives slightly better performance than to have to use 'live', which is more expensive in calculation and yet still maintains the recorded behaviour.

    Also something else that can help, you can check if the DA is SHOT when scheduled using a JavaScript console (for example in Chrome developer native tools, Firebug with Firefox), associated with the active debugging application (the Application properties) and implemented (via the toolbar) developer. Load the JS console, and you will be able to see when the DA fires.

    As far as the actual IE specific logic goes, not looked into that too because I felt it was more important to get the DA shooting properly first, followed by see where we are.

    Kind regards
    Anthony.

    Published by: Anthony Rayner on November 14, 2011 23:06

  • Apex 5 - error checksum dynamic Action

    Hi all

    I don't cease to Marvel and depress me on apex 5.

    I just had a problem with dynamic action on a page with the checksum protection enabled.

    I need to read a value from a PLSQL table and give it back to a form element.

    So I have a page of submit element in the d.a. (primary key of the table) to fetch the row of the table.

    When I run the page I get an error of checksum on the question.

    What I am doing wrong?

    Thanks in advance for your suggestions.

    Robi

    OK see this

    APEX 4.2.1 - error dynamic Action with SSP

  • Radio button on dynamic Action of change

    Hi all

    I have an example of setting on apex.oracle.com

    Workspace: RWTEST

    username:testuser

    PW:test

    (Page 5)

    I have 2 test items.  We have a radio beside him group with'm ' for the disappeared and "N/a" for not not applicable.  The other has checkboxes with the same values.

    To simplify things, I just added a dynamic action that takes the value of the test points and multiply by 3.  However, when you click on'm ', the value should say 'cannot calculate.  This works very well for the Group of radio buttons and checkboxes.  However, for radio group, when you lorsque vous decochez uncheck'm ', the value is not recalculated. The value of the box is.  I know the option buttons are not supposed to be unchecked and I had to add a function in the html header to allow the radio button to be deselected.

    Can someone explain what to do if the value of the Radio says "can not calculate" only when am ' radio button is selected and why is this the case?  I guess it's something with the function that I have in the page header.

    Thank you

    Brett

    If I understand your post, you want to print 'cannot calculate' when the radio button is selected for "M" or when you uncheck radio button.

    To do this you must trigger DA After unchecking the option button.

    function changeRadio (p) {}

    {if(State[p.Name]&&State[p.Name]==p.value)}

    p.Checked = false;

    State [p.Name] = ";

    $(p).trigger('change');

    }

    else {}

    p.Checked = true;

    State [p.Name] = p.Value;

    }

    Returns true;

    }

    Concerning

    Bartosz Ostrowski

  • How to trigger a conditional display based on a dynamic Action without submitting the Page

    Hello

    Using Oracle APEX v4.2 on 11g, I have the following scenario and wanted to take other people on how to accomplish what I'm trying to do, i.e.:

    In region 1, I have a select item list page called P1_SELECTION, which contains selections from drop down to the user to choose from the following three: A1, B2 and C3

    In region 2, I have two checkbox elements:

    P1_CBOX1 I gave a conditional display of ' point value / Expression 1 column! = 2 expression, where Expression 1 = P1_SELECTION and Expression 2 = B2, so P1_SELECTION! = B2

    P1_CBOX2 I gave a conditional display of ' value of the point / column Expression 1 = Expression 2 where Expression 1 = P1_SELECTION and Expression 2 = B2, then P1_SELECTION = B2 .

    Use of dynamic Action on the evolution of the P1_SELECTION in region 1, how can I trigger the correct display of the checkbox in region 2, with the default view of the region 2 checkbox being P1_CBOX1, without submitting the entire page, just refreshing each of the elements checkbox to trigger the conditional display correct?

    For example, on the changes of P1_SELECTION = B2 then entire submission without page, only P1_CBOX2 is presented to the user in other P1_CBOX1 is displayed.

    Is this possible?

    Thank you.

    Tony.

    Hi Tony,.

    condition your dynamic action on P1_SELECTION with the following condition of javascript: this.triggeringElement.value = "B2".

    Add real actions that will show P1_CBOX2 and hide P1_CBOX1

    Add false actions and going hide P1_CBOX2 show P1_CBOX1

    Set the dynamic actions to fire on Page load

    Kind regards

    Erik-jan

  • PL/SQL in dynamic Action seems to return an incorrect value

    Hi all

    I am very new to the Apex and PL/SQL, so I don't know if I did something wrong here.

    I have a form with a shuttle service (P4_ITEMS) and a field display only (P4_ORDER_TOTAL). I have a dynamic action put in place with the following PL/SQL:

    declare
        tab apex_application_global.vc_arr2;
        total number := 0;
        itemPrice number;
    begin
        tab := apex_util.string_to_table (:P4_ITEMS);
        for i in 1..tab.count loop
            select PRICE into itemPrice from PRODUCTS where PRODUCT_ID = tab(i);
            total := total + itemPrice;
        end loop;
        return total;
    end;
    

    If I understand correctly, tab must contain all the elements that are in the 'selected' part of the shuttle. I try to summarize the prices of selected items and return the set. Pretty simple, right?

    Here is some info on the dynamic Action itself:

    Event: Change; Selection type: Article (s); Article (s): P4_ITEMS (the shuttle)

    The event (the PL/SQL function running) is also set to pull on the loading of the page. It is near the top not to expect results, so during the calculation, display field disappears briefly.

    Here's the number: P4_ORDER_TOTAL updates only correctly when I first load the page. I enabled debugging but I changed my Shuttle, then checked out.

    He recorded the P4_ORDER_TOTAL element. In this case, we will say it was 363.08. I added an item on the agenda and the PL/SQL is executed. The result, however, is 363.08, although he should have gone to the top. If I leave the page and then click its tab again, the order is always there, except that this time that it runs again the PL/SQL and it updates the P4_ORDER_TOTAL field to the correct value.

    Can someone explain what is happening here? I can't understand why it isn't like I intend to work.

    Feel free to ask me more questions if I'm not well explained.

    Thanks in advance!

    klanchman wrote:

    I am very new to the Apex and PL/SQL, so I don't know if I did something wrong here.

    Always include the following information in your question:

    • Full version of APEX
    • Complete version/edition/host operating system database
    • Server Web architecture (EPG, SST or APEX listener/operating system host and versions)
    • Browser (s) and version (s) used

    For the layout and Visual set formatting issues. also include:

    • Theme
    • Type of zone
    • Models used

    Here is some info on the dynamic Action itself:

    Event: Change; Selection type: Article (s); Article (s): P4_ITEMS (the shuttle)

    The event (the PL/SQL function running) is also set to pull on the loading of the page. It is near the top not to expect results, so during the calculation, display field disappears briefly.

    Here's the number: P4_ORDER_TOTAL updates only correctly when I first load the page. I enabled debugging but I changed my Shuttle, then checked out.

    He recorded the P4_ORDER_TOTAL element. In this case, we will say it was 363.08. I added an item on the agenda and the PL/SQL is executed. The result, however, is 363.08, although he should have gone to the top. If I leave the page and then click its tab again, the order is always there, except that this time that it runs again the PL/SQL and it updates the P4_ORDER_TOTAL field to the correct value.

    Can someone explain what is happening here? I can't understand why it isn't like I intend to work.

    At the time the dynamic action is executed, the value of P4_ITEMS is not available for the PL/SQL code in session state, it takes place only in the browser. Include P4_ITEMS in elements of Page to submit property the dynamics of the action so that the changed value is updated in the State of session before the PL/SQL code is executed.

  • Obtain / use value radio in Apex plugin for dynamic action button

    Apex 4.2

    I'm working on a plugin that you run a dynamic action based on the value of a selected option button. I think its more so the syntax that is causing me problems.

    I have a point page (P127_DISPOSITION) reprsented as a group of radio buttons. There are three cases for the Group of radio buttons: CREATE, update, and THROW. The LOV source for the element on the page is:

    STATIC2: create new Inspection; CREATE, update of existing Inspection; Updated, throw; IGNORE

    I have a plugin that displays a map and a few other neat, tools and toolbars other clever tricks. When a user clicks on the radio button under the UPDATE, the card must hide some of these tools. This part is not so bad that I have the code for this. Here's what I or tried so far:

    $("#P127_DISPOSITION").change(function() {
    if ( $("#P127_DISPOSITION").val == 'UPDATE' )
    $("#draw_point").hide();
    $("label[for=\draw_point\"]").hide();
    } else if ( $("#P127_DISPOSITION").val == 'CREATE')
    $("#draw_point").show();
    $("label[for=\draw_point\"]").show();
    } else {
    $("#draw_point").show();
    $("label[for=\draw_point\"]").show();
    }
    });
    

    The statements in the IF statements are not the problem. I tested and been using these statements in my plugin for other reasons. These statements just to show or hide the toolbar. But I'm doing this action happens dynamically on a radio button is selected. So I know there must be some problems in the way I use the onChange function or the statement real himself.

    Any help on this would be greatly appreciated. Thanks in advance.

    NewApexCoder

    I don't think that your problem is with dynamic action, but how the html code that is generated when the plugin looks like.

    If the generated html code is not a type of entry right front, you need to write your own javascript code that overrights the apex.item () .getValue (default).

    To explain what I mean lets take a look at the native radiogroup and popup lov.

    A radiogroup of point P40_DISPLAY_RETURN of the page html code looks like

    Different display and return value


    As you can see the element with the id P40_DISPLAY_RETURN is the set of fields. Because the set of fields is not a value attribute neiter $x('P40_DISPLAY_RETURN').value and $('P40_DISPLAY_RETURN').val)

    the value will give you. Apex. Item ('P40_DISPLAY_RETURN'). GetValue() will return the C.

    And for the lov contextual element P40_POPUP_LOV of the HTML page looks like

    
    

    Now the P40_POPUP_LOV element is an input element, but the value is the value to display. So $x('P40_POPUP_LOV').value and $('P40_POPUP_LOV').val () will give you the display value ' OHare, Edward "Butch" While apex.item('P40_POPUP_LOV').getValue () returns the return value 4.

    Take a look at the getValue for both javascript code, you see that the functions are actually different and depend on the widget that is the element.

    getValue : function() {
      // get checked input value, in the context of the fieldset
      // note: can't use $lRadios here because this is a reference
      // to the initial state
      var lReturn, $lRadio;
      if ( pType === "checkbox" ) {
          // checkbox will return an array
          lReturn = [];
          $( ":checked", lFieldset).each( function() {
              lReturn[ lReturn.length ] = this.value;
          });
      } else {
          // radio group should return a single value
          $lRadio = $( pSelector + " :checked", apex.gPageContext$ );
          if ($lRadio.length === 0) {
          // check if the length of the jQuery object is zero (nothing checked)
          // if so return an empty string.
              lReturn = "";
          } else {
              // otherwise return the value
              lReturn = $lRadio.val();
          }
      }
      return lReturn;
    }
    
  • Interactive report case triggering a dynamic action

    Hello

    My interactive report is built, based on the following query

    SELECT ID_OPERACION, NOMBRE_CLIENTE, TOTAL_PAGAR, APEX_ITEM. CHECKBOX (1, O.ID_OPERACION, "onclick ="f_UpdateCollection (this)"', a.c001") "Seleccionar"

    OPERACIONES o, apex_collections a

    WHERE the a.c001 (+) = O.ID_OPERACION

    and a.collection_name (+) = "OPE_COLLECTION".


    I use a collection because I don't want to lose the selected controls caused by paging.


    I would like to add a dynamic action that each time check box is selected, an element (P5_TOTAL_SELECCIONADO) summarizes the column TOTAL_PAGAR of all the checkboxes that are selected and each time a checkbox is unchecked the Total_seleccionado subtracts the value of the selected item.


    How can I do?

    Hi Eva,

    Please check again your application and see if it's what you thought.

    I made a few changes. First, here you were talking about P5_... the elements in your workspace apex.oracle, the page number is 1, so I changed the P5_... elements of P1_...

    Then, you let the fire on the boxes page laod on, but you don't want t function to begin to evaluate during page loading.

    There were also a few errors in the javascript code, I suggested. The VALOR_PAGAR selector was not correct, I've changed a little bit. Also all selected text values are strings and adding javascript strings will be just concatonate them. I made string number conversion for you, also taken into account that null values (P1_TOTAL_SELECCIONADO on page loading is null) cannot be cast to number.

    The result is:

    var VALOR_PAGAR = $(this.triggeringElement).closest('tr') .find ('td [headers = "VALOR_PAGAR"]') .text)

    var TOTAL_SELECCIONADO = $v ('P1_TOTAL_SELECCIONADO')

    VALOR_PAGAR = (isNaN (parseInt (VALOR_PAGAR) = VALOR_PAGAR)? 0: VALOR_PAGAR)

    TOTAL_SELECCIONADO = (isNaN (parseInt (TOTAL_SELECCIONADO) = TOTAL_SELECCIONADO)? 0: TOTAL_SELECCIONADO)

    var total = VALOR_PAGAR + TOTAL_SELECCIONADO

    $s ('P1_TOTAL_SELECCIONADO', total)

    This is the code to add checkboxes checked, false action is the same except for total, which is:

    var total = VALOR_PAGAR - TOTAL_SELECCIONADO

    Kind regards

    Vincent

  • Dynamic Actions disable button based on the text field

    Hello

    Sorry if this has already been asked but I checked and could not find a job.

    «I'm trying to disable / enable a button "view" among the elements of this region from if a text field has a value or.»  I created a dynamic action for this but its not working only partially.  I can get the button to be disabled or enabled when I leave the text field, but what I'm trying to do is to get the State of button to change as soon as I start to type in the text field or return to people with disabilities if the text is deleted.

    I don't know that I'm missing something simple and help you can give is greatly appreciated.

    I use APEX 4.1 and that's how I got the dynamic action implementation, I tried different but no event types to give them action I want.

    I also install an example (details below)

    Event - change

    Selection type - point

    Article (s) - P1_TEXT

    Condition - is null

    Real Action

    Action - disable

    Fires when the result of the event is - real

    Fire on the loading of the Page - Y

    Items affected - button

    Article (s) - P1_BUTTON

    Action of false

    Action - Enable

    Fires when the result of the event is - fake

    Fire on the loading of the Page - Y

    Items affected - button

    Article (s) - P1_BUTTON

    workspace - show_issue

    user_name - show_issue

    password - show_issue

    app_id - 61707

    http://Apex.Oracle.com/pls/Apex/f?p=61707:1

    It works as expected if you change the event of 'Change' for 'key version?

  • Is it possible to change the definition of LOV uses dynamic action?

    Hello

    I have a multiple selection LOV page article, P27_MULTI_CLASS_CODE, defined as below.  The loading of the page, this list contains only values based on what was passed to P27_OLO_CODE or P27_OLO_CODE_SW.

    SELECT DISTINCT c.class_code d, c.class_code r

    O ORGANIZATION,

    POSITION p,

    CLASS c

    WHERE o.org_wk = p.org_wk

    AND p.class_wk = c.class_wk

    AND o.org_active_flag = 'Y '.

    AND p.pos_active_flag = 'Y '.

    AND c.class_active_flag = 'Y '.

    AND (o.olo_code =: P27_OLO_CODE)

    GOLD o.olo_code =: P27_OLO_CODE_SW)

    ORDER BY c.class_code ASC

    Before submitting the page, I want the definition of LOV's P27_MULTI_CLASS_CODE to change the following (similar application without reference to the P27_OLO_CODE or P27_OLO_CODE_SW) based on the question if the user selects a checkbox, P27_ALLOW_SW.   In doing so, P27_MULTI_CLASS_CODE would contain a wide range of values, rather than the limited values.

    SELECT DISTINCT c.class_code d, c.class_code r

    O ORGANIZATION,

    POSITION p,

    CLASS c

    WHERE o.org_wk = p.org_wk

    AND p.class_wk = c.class_wk

    AND o.org_active_flag = 'Y '.

    AND p.pos_active_flag = 'Y '.

    AND c.class_active_flag = 'Y '.

    ORDER BY c.class_code ASC

    I wanted to avoid writing Javascript.  Is this possible using dynamic measurements... or at least somehow update P27_MULTI_CLASS_CODE so that it ignores the P27_OLO_CODE and the P27_OLO_CODE_SW?

    Tried to create dynamic action to clear the value of P27_OLO_CODE or P27_OLO_CODE_SW, in the hope this would trigger P27_MULTI_CLASS_CODE to display all the values, but it has failed.  Any ideas?

    APEX 4.2

    You can do this by editing the query lov a little:

    SELECT DISTINCT c.class_code d, c.class_code r
      FROM ORGANIZATION o,
           POSITION p,
           CLASS c
    WHERE o.org_wk = p.org_wk
       AND p.class_wk = c.class_wk
       AND o.org_active_flag = 'Y'
       AND p.pos_active_flag = 'Y'
       AND c.class_active_flag = 'Y'
       AND ((:P27_ALLOW_SW = 'Y' AND (o.olo_code = :P27_OLO_CODE OR o.olo_code = :P27_OLO_CODE_SW))
            OR :P27_ALLOW_SW = 'N')
    ORDER BY c.class_code ASC
    

    (of course, use the correct value for P27_ALLOW_SW)

    The "cascade LOV Parent article (s)" value P27_ALLOW_SW and also add "Page elements to submit" element (Note: this item appears only when you have entered a value in the element of parent lov cascading items)

    Now, after changing P27_ALLOW_SW the lov will update to P27_MULTI_CLASS_CODE.

  • help on the use of dynamic action to update the items in a table (more precisely, the radio button) based on the collection

    Hi everyone, I posted this question in the past and made huge strides with the help of Denes Kubicek: https://apex.oracle.com/pls/apex/f?p=31517:294:115851992029365: based on my previous question posted: https://forums.oracle.com/forums/thread.jspa?threadID=2537494

    I'm fighting with a single element in my tabular presentation.  There is a radio button.  The choices all seem correctly, but the value is not saved in the collection (and therefore not recorded in the table).  All the other elements in the form of tables to record properly.

    Here's what I have for the query.   This is element c024 (which maps to;) ("F03'), which is defined as a radio based on an existing LOV LOV.

    Currently I have:

    2 items on the page:

    P110_ID

    P110_VALUE

    Dynamic action called COLUMN of CHANGE:

    event: CHANGE

    selection type: jQUERY Selector

    jQuery:

    Select jQuery = input [name = "f03"], select [name "f08"], select [name = "f09"], input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], select [name = "f40"], input [name = "f21"], input [name = 'f22'], input [name = "f23"], input [name = 'f50']

    scope of the event: Dynamics

    real action #1: set the P110_ID javascript expression this.triggeringElement.id

    real action #2: set the P110_VALUE javascript expression this.triggeringElement.value

    action 3: run pl/sql code

    declare
      v_member number;
      v_seq number;
    begin 
      v_member := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
      safis_collections.update_column(v_seq,
                                    v_member,
                                    :p110_value);
    
    
    

    refreshment area true creation #4: LANDINGS_COLLECTION

    the tabular presentation is based on the query:

    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
    decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 hms_flag,
    decode(c050,'Y',apex_item.checkbox(21,'Y','id="f21_'||seq_id||'" style="background-color:#FBEC5D; " onClick="alterYes('||seq_id||');" onKeyPress="alterYes('||seq_id||');"',c021),'N','N/A') FinsAttached,
    decode(c050,'Y',apex_item.checkbox(22,'N','id="f22_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterNo('||seq_id||');" onKeyPress="alterNo('||seq_id||');"',c022),'N','N/A') FinsNotAttached,
    decode(c050,'Y',apex_item.checkbox(23,'U','id="f23_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterUnk('||seq_id||');" onKeyPress="alterUnk('||seq_id||');"',c023),'N','N/A') FinsUnknown,
    decode(c050,'Y',apex_item.textarea(28,c028,3,null,null,'f28_'||seq_id,''),'N','N/A') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    decode(c020,'Y',
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;"',null,null,null,'f40_'||seq_id,''),
    'N','N/A') HMS_AREA_CODE,
    c020,c050,
    decode(c020,'Y',
    apex_item.text(41,TO_NUMBER(c041),5,null,null,'f41_'||seq_id,''),
    'N','N/A') Sale_Price
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id
    
    
    
    
    
    

    I noticed the following:

    When I change the column C011 (price) the following values are defined in dynamic action:

    P110_ID = f11_1

    P110_VALUE is everything that I change the price.

    When I change the column C024 (hms_flag), the following values are defined:

    P110_ID = f03_0001

    P110_VALUE = change everything what I hms_flag to.

    the region is updated in my dynamic action, and change of hms_flag does not take.  I tested the SQL query that generates the value of v_SEQ in the dynamic action.   Both a change of price and HMS_FLAG, it seems valid

    Select ltrim (substr(:p110_ID,5,4),'0 ') in the double v_seq;

    If f11_1, v_seq: = 1

    If f03_0001, v_seq: = 1

    Thank you!

    solved.  sort of.

    domain c024 references f03.

    dynamic ACtion, step 4 calculated v_member as a substring of P110_ID... and in all other areas, the column and the field (fxx) displayed the same value... otherwise c024.

    I'm not exactly sure how solve it, but see the problem.

  • Dynamic action Refresh

    Hi all

    I use 4.1.1 linux chrome 11 g r2

    I have this dynamic action
    Identification
     
    Page:     216. OFFENDER DETAIL
    Name      xyz
    Sequence 200     
     
     
    Event CLICK     
    Selection Type     jQuery 
    jQuery Selector     a.abc
    Condition     --
    True Actions
     
    The following actions will be fired when the 'When' condition is met, or when it is 'No Condition'.
    
    Edit     Sequence     Action     Fire On Page Load     Selection Type     Affected Elements
         8     Set Value     No     Item(s)     P216_H_APPROVE_TABLE_NAME
         9     Set Value     No     Item(s)     P216_H_APPROVE_KEY_VALUE
         10     Execute PL/SQL Code     No     --which run update statement      
         15     Confirm     No           ---just to display
         18     Refresh     No     Event Source     -- to hide the column link through which it is initiated.
         19     Refresh     No     Region     ABCr --- region to refresh
              
    
    Event Scope     BIND
    Question - does not update the region. Region has several area children but no action is taken on them.

    I tried with the updating of all given the region of parent and child, but it did not work.


    Is it possible that I can submit page or refresh real region successful action.


    Thank you
    NS

    Denes Kubicek wrote:
    As far as I know, you can only refresh a report from the region. Other types of regions will be not updated even though you can select them from a dynamic action.

    As indicated in the documentation, interactive reports, standard reports, charts and lists can be updated using dynamic measurements. Region of plug-ins can also have support for the actions of refreshment DA.

    Hunk09 wrote:
    Region has several area children but no action is taken on them.

    Updating of the region not cascade. Refresh action is required for each region or subregion. For regions classic report and tabular forms enable partial Page Refresh , property report must be enabled.

Maybe you are looking for

  • The claim to the Apple

    Hello. January 16, 2016, I bought an Iphone of GB 64 6 c. After 3 months on the screen appeared a defect in the form of white spots, acknowledged the marriage of the factory. 20 days, I was without a phone until I changed my other defective. Yesterda

  • How can I disable the mode full screen?

    I was playing with the settings I just switched from firefox to google chrome and I activated the full screen mode and don't know how to turn off

  • Windows 8 drivers for hp dv6 3170ee?

    Please, how do I find windows 8 drivers for my laptop (Pavilion dv6-3170ee)? What hp support updating the drivers of windows 8?

  • How to set decimal digits

    Hi all Cascading QML if I calculate A / B and the result 3.45656566 How I round off the number to 3.46 I can not find any function to round or rnd. Thanks for your advice.

  • Compatibility of Windows 8 and ACS ACR122u NFC player problem

    Compatibility issues with NFC ACR122u ACS player when running on Window8.  Application well on XP, Win7, vista work. I guess ACS must release a driver with an update of Windows8. If anyone has experienced the same problem relate to please.