Dynamic action - control multiple non-null

Hello

I have a requirement that only if the two elements (P3_ITEM1 and P3_ITEM2) are not null, then the button should display.

When I create a dynamic as action below

Event = > release button

Items = > P3_ITEM1, P3_ITEM2

State = > is not null

Show the button with a false action as well.  The sample is here https://apex.oracle.com/pls/apex/f?p=62495:3:

But in this case, the condition does not work as I want. If one element is not null indicates the button. If I give Expression Javascript as a condition with $V ("P3_ITEM1")! = null & & $V ("P3_ITEM2")! = null is also not working.

Can someone help me with this.

Thank you.

Hi Benjamin-Oracle,

Jeremiah-Oracle wrote:

I have a requirement that only if the two elements (P3_ITEM1 and P3_ITEM2) are not null, then the button should display.

When I create a dynamic as action below

Event-online unlock key

Elements-online P3_ITEM1, P3_ITEM2

Condition => is not null

Show the button with a false action as well.  The sample is here https://apex.oracle.com/pls/apex/f?p=62495:3:

But in this case, the condition does not work as I want. If one element is not null indicates the button. If I give Expression Javascript as a condition with $V ("P3_ITEM1")! = null & $V ("P3_ITEM2")! = null also does not work.

Try with Condition = Javascript and JavaScript Expression Expression as:

($("#P3_ITEM1").val().length > 0 && $("#P3_ITEM2").val().length > 0)

Kind regards

Kiran

Tags: Database

Similar Questions

  • Dynamic action fails using the null value on the list of selection change event

    I have a selection list that I created a dynamic action to which I added a value set to to clear the values of other controls on the form by assigning the value NULL.

    This doesn't seem to work, and I can't understand why it does not work.

    Event = change
    Selection type = Items
    Items = P4_MYSELECTLIST
    (no other condition for this action, I want it to reset for each change in the selection list).

    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Set Type = static assignment
    Value = NULL
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)
    Remove the Change = No event

    Xanas,

    If you set the values NULL and not the literal string "NULL" you must change your DA slightly. Modify your game to run JavaScript Code.

    Action = run the JavaScript Code
    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Code = this.affectedElements.val ('');
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)

    Edit:
    You can also change the real action to the following if you want to leave your DA as setpoint:

    Fire on the Page Load = False (I only want what he reset values when I use this list of choices, not the page load).
    Set Type = Expression JavaScript
    Value = "
    Items = P4_ITEM1, P4_ITEM2, P4_ITEM3 (including 2 other lists of selection and control of text)
    Remove the Change = No event

    Good luck
    Janet Tyson

    Published by: Tyson Janet on January 10, 2012 09:52

  • Dynamic action with multiple values of PL/SQL Expression as a condition

    Hel

    I am currently using Apex 4.0 for a schoolproject.

    I have two selectlists (P8_BUSINESSRULETYPE - which has al businessruletypes) and (P8_OPERATOR) that has a select statement based on the businessruletype.

    I want to hide the selectlist operator when P8_BUSINESSRULETYPE = 7,8,9 and 10 or P8_OPERATOR = 9

    When: change

    SelectionType article (s)

    Elements P8_BUSINESSRULETYPE

    condition: equal to 10

    Real actions: hide items p8_operator

    False actions: show p8_operator items

    ConditionType PL/SQL EXPRESSION

    : P8_BUSINESSRULETYPE = 10 OR: P8_BUSINESSRULETYPE = 8 OR: P8_BUSINESSRULETYPE = 7 OR: P8_BUSINESSRULETYPE = 9

    What is the problem with my dynamic action? Because he does not hide the operatorfield when businessruletype 10 or 9 are selected in the selectlist. Sessions has also said operator = 9 and Businessruletype = 10

    I hope you guys can help out me.

    Thank you very much.

    2843640 wrote:

    Please update your forum profile with a real handle instead of '2843640 '.

    I am currently using Apex 4.0 for a schoolproject.

    I have two selectlists (P8_BUSINESSRULETYPE - which has al businessruletypes) and (P8_OPERATOR) that has a select statement based on the businessruletype.

    I want to hide the selectlist operator when P8_BUSINESSRULETYPE = 7,8,9 and 10 or P8_OPERATOR = 9

    When: change

    SelectionType article (s)

    Elements P8_BUSINESSRULETYPE

    condition: equal to 10

    Real actions: hide items p8_operator

    False actions: show p8_operator items

    ConditionType PL/SQL EXPRESSION

    : P8_BUSINESSRULETYPE = 10 OR: P8_BUSINESSRULETYPE = 8 OR: P8_BUSINESSRULETYPE = 7 OR: P8_BUSINESSRULETYPE = 9

    What is the problem with my dynamic action? Because he does not hide the operatorfield when businessruletype 10 or 9 are selected in the selectlist. Sessions has also said operator = 9 and Businessruletype = 10

    The first thing is that a Condition that is applied to a control of dynamic action if the dynamic action is made the see page. She has therefore no impact on the question of whether the actions of true or false are performed. Control conditions which are those defined in the when the properties of the dynamic action. As they are evaluated in the browser, they must be specified as JavaScript.

    Secondly, this expression is not valid because it is a space between the colon and the identifiers. Link the names of rating, the colon and the variable element must be contiguous:

    :P8_BUSINESSRULETYPE = 10 OR :P8_BUSINESSRULETYPE = 8  OR :P8_BUSINESSRULETYPE = 7 OR :P8_BUSINESSRULETYPE = 9
    

    However the latter is only of academic interest, in this case you need to remove the condition of dynamic action.

    In the dynamic of change when action section, P8_BUSINESSRULETYPE, P8_OPERATOR, Condition of JavaScript Expressionand value to the value of the item (s)

       ($v('P8_BUSINESSRULETYPE') == '7')
    || ($v('P8_BUSINESSRULETYPE') == '8')
    || ($v('P8_BUSINESSRULETYPE') == '9')
    || ($v('P8_BUSINESSRULETYPE') == '10')
    || ($v('P8_OPERATOR') == '9')
    

    If you are using a browser that supported, this can be simplified to

       (['7', '8', '9', '10'].indexOf($v('P8_BUSINESSRULETYPE')) >= 0)
    || ($v('P8_OPERATOR') == '9')
    
  • Dynamic action - two types of options of "condition"?

    I would like to create a dynamic action that runs when a SQL condition exists is met.  If this is the case, then it will run several true Actions.  If this isn't the case, it will run several wrong Actions.

    I see there is an option of Condition in the when section of her DA, however, seems to be limited to static value comparisons or Javascript.  There is also another section of Condition where you can select SQL exists or various other PL/SQL expressions.  What is the difference between these options two condition?

    Also, when I set the status section to Exists and in the SQL query include an equivalence to an element of the page it does not seem to recognize the value of the page element. For example:

    Select * from my_table

    where PARTY_NUMBER =: MY_PARTY_NUMBER

    It still fails the condition even when a valid part number is entered on the page (him DA is run when MY_PARTY_NUMBER is changed).  I should be able to enter a reference point of page here, Yes?

    Thank you

    Steve

    P.S. I use 5 APEX

    Steve. 1234555 - Oracle wrote:

    I would like to create a dynamic action that runs when a SQL condition exists is met.  If this is the case, then it will run several true Actions.  If this isn't the case, it will run several wrong Actions.

    I see there is an option of Condition in the when section of her DA, however, seems to be limited to static value comparisons or Javascript.  There is also another section of Condition where you can select SQL exists or various other PL/SQL expressions.  What is the difference between these options two condition?

    Also, when I set the status section to Exists and in the SQL query include an equivalence to an element of the page it does not seem to recognize the value of the page element. For example:

    Select * from my_table

    where PARTY_NUMBER =: MY_PARTY_NUMBER

    It still fails the condition even when a valid part number is entered on the page (him DA is run when MY_PARTY_NUMBER is changed).  I should be able to enter a reference point of page here, Yes?

    N ° you won't achieve what you're trying to do. The standard Condition section in dynamic action controls if the code of the dynamic action is rendered the see page. It has no impact on the question of whether the actions of true or false are performed during the intervention of the user. Control conditions which are those defined in the when the properties of the dynamic action. As they are evaluated in the browser, they must be specified as JavaScript.

    To perform actions conditionally based on the existence of rows in a table requires DA type body of the PL/SQL function or SQL, submitting the values of the requested page, runs the necessary query and returns a value to an element of [probably hidden] page, followed by either an action to run Javascript Code containing conditional logic , or another DA triggered by a change on the hidden element event.

  • The dynamic action of javascript

    Hello

    Good evening.

    I am aware, that we can trigger dynamic actions in multiple ways, based on events of the DOM.

    can someone help me triggering a dynamic javascript action.

    But not based on events.

    Ex: name action dynamic, based on its name or sequence or in any other way.

    There are situations where I have to call dynamic measures to avoid hand-written Ajax calls.

    Thanks in advance

    Hello

    The correct answer to this post:

    Not sure why the following code lines failed to trigger a dynamic action

    $("#P0_SIGNAL").val (123) .changes (); --Also failed
    $("#P0_SIGNAL").trigger ("change");  --Also failed

    This line would trigger a dynamic javascript action.
    Apex. Event.Trigger ($("#P3_TEST_ID"), "change","" ");


    Steps to make it work.


    I need to trigger a dynamic action when a value is set to hidden JavaScript element


    P3_TEST_ID is a hidden item.

    Create a dynamic action to shoot the P3_TEST_ID change event.

    Setting the value of p3_test_id of javascript wouldn't trigger a dynamic action.

    Run the following code to fire the javascript DA

    Apex. Event.Trigger ($("#P3_TEST_ID"), "change","" ");

  • Refresh the Source Action query dynamic triggers point report on Null

    I have a page that is updated in place on apex.oracle.com. It has one element of the shuttle and a report that is updated when change the values of the shuttle.

    When the value of the shuttle is not null when you enter the page, and then you move the left and right elements the report refreshes properly until there is no item in the right pane. At this point, it seems to go back to the original value of the loading of the page.

    The session state popup shows the empty value, the net tab in Firebug shows the xmlhttp sets request that the value empty and debugging output shows the value is set to white as well.

    What I noticed I look at all the different scenarios in the debug output is that once the value is null, the source of the element query is executed, so the reset of the State than to the loading of the page. The setting for the source query is always rather than when Null. Anyway I didn't know the source of the item to use in the course of an action dynamic updating of the report

    This is not expected behavior given that the query runs only when I put the value null. I have actually only supposed to run during the loading of the page and not during a refresh of the region by dynamic action.

    My solution is to remove the source item query and put it in the page loading area.

    You can check it out yourself

    Workspace: ferguson
    User: Tester/Testerperson
    App ID = 13546

    Run it and then click the appointment tab. From there just click on icon of change in one of the lines report. It has region named sellers then under it a region of Notes. Notes refreshes when you move items around the element of shuttle box suppliers.

    I have a copy of the application running on 4.1 and it happens here too.

    Greg

    I just changed a little bit, and if I understand you correctly, it will now keep the selected values if you refresh the page.

    What I have is:

    1 moved the motion of the source of the item to a calculation and subordinated to be executed only if the element is NULL

    What I couldn't know, is what process is implemented with the shuttle on change session state?

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • BUG? Presentation of elements via Dynamic Action in Internet Explorer generates "null."

    I first noticed this using the newly improved apex.oracle.com. When I have dynamic action that must send the values of page element and the value is null / empty, the call to post/ajax result includes the literal 'null' as the value for this parameter.

    for example
    p_flow_id = 65928 & p_flow_step_id = 2110 p_instance = 574862348021401 & p_request = FLOW_PPR_OUTPUT_R1858426911545391_reset_R_1858426911545391 & p_arg_names = P2110_VENDOR1 & p_arg_names = P2110_VENDOR2 & p_arg_values = 3754 & p_arg_values = null

    This only happens in Internet Explorer. I use IE9, but it seems to work that way, if I put it in IE8 mode as well.

    I returned and tested in the Apex 4.1.1.00.23 and I got the same result.

    Greg

    Hi Greg,.

    Thanks again for the follow-up. You are right, it is the "Set Value" operation that causes the problem when it is called with a null value. In fact, it's a bug of IE underlaying.

    See http://stackoverflow.com/questions/5387038/null-values-shown-in-form-fields-in-ie and also http://bugs.jquery.com/ticket/5163 strengthening jQuery

    I will file a bug to use jQuery.val () workarounds to the problem.

    Thank you
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Masking multiple elements with dynamic action me gives error

    Hello

    I have a selection list, and I tried to create a dynamic action on this subject. When the list is zero I want to hide items. The problem is that I thing 200 articles on my page and when I try to list them all under the dynamic action, it gives me an error or cut off my list. I tried created two separate actions of dynamics, but it did not work. Any suggestions? Any help would be so appreciated. Thank you!
    The problem is that I thing 200 articles on my page and when I try to list them all under the dynamic action, it gives me an error or cut off my list.

    Is it that you were able to cross the mark of products/page 100? But the official documentation has to say otherwise:
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/limits002.htm#BGGIECDF

    It is possible to define and to return more than 100 items on a page, but you will get a 404 error when running if you submit a page with over 100 articles (including the hidden objects and elements of page zero). You will not be able to present and process a page that has made more than 200 points. You will be able to set more than 200 items in your page and send, and then process the page If the actual number of elements returned is limited to 100 or less by using permissions and conditions.

    * Specify error messages you received

    Error message: error failed to create dynamic action.
    ORA-20001: error creating dynamic action sub-action name = "NATIVE_HIDE" id = "" ORA-01461: can bind to a LONG value only for insert into a LONG column > "

    You seem to have exceeded a 4000 or 32 K bytes on a column of metadata for dynamic action when you set the dynamic action. Because you cannot use all 200 points at the same time, you must create multiple dynamic actions that correspond to some subsets of items are actually rendered.

  • Validation on the page point is lost when creating dynamic action button


    Nice day

    I have some page elements like empno, job etc in my application to learn the goal where I validations

    to check the length of the point/numeric field and check for null

    I have 4 buttons [create, delete, cancel, apply changes] do dml basic operation

    Initially, all validations were shot when there was not any trigger attached to the buttons

    Once a dynamic action was created for a button by button create account to make these features as the insertion in arrays that are passed as a packaged procedure

    It works in all cases (for example) even if an entry is garbage does is allow inserts into the table and all the controls as EMPNO, JOBNO validations are ignored

    How can we ensure that these validations must be taken into account first and fired before and only if it is a valid entry before you create key

    otherwise it should always display error message when you enter invalid

    Tried to use the point of application by the shared components, then set value of Validation for function returns the error text a different value for the same point of the application

    [Like global variable]

    Don't know if the method described above is correct but stuck in this

    Not too much competent in JavaScript and didn't want to try if there is any possibility

    Kindly help on this

    Thank you

    Why not use page instead of dynamic action processes, they fire after validations

    Gus

  • 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.

  • Dynamic action does not not on the first attempt to load page. Work after refreshing the page

    4.2.1

    Hello

    I have a page with a list of selection Order_id and a display _item Product_name.  There is action dynamic PL/SQL that fills the element displayed when the order_id is changed. The problem is that when I opened the page for the first time, if I change the select order_id list, nothing happens. But if I refresh the page once, and then it starts work and the display_item is filled.

    No idea what could be the problem?

    Thank you

    Ryan

    ryansun wrote:

    On a more serious note,.

    1 when you load the page for the first time and try selecting the order_id, nothing don't be past, try refreshing the page once and you will see the option to display with the null value. What I do is. I have two tables

    Orders

    1

    2

    3

    Products

    1A

    2B

    2 Z

    3 C

    When I select the command 1, then since there is only one line of products, the displayed item will indicate A populous. If I select 2, since there are two product lines, I should see the list box.

    Doesn't seem to work and I'm sure, I'm doing something wrong.

    Difficult to be certain that as it appears that someone has been editing the page before you start watching (rather than copy the page experience their own copy). Your article P1_PRODUCT_NAME_DISPLAY he a point value / Expression 1 column = Expression 2 condition P1_HIDE_SHOW = 1 condition on that? Or any other condition of rendering?

    These conditions do not match the dynamic actions. They are applied only during the page see the transformation when the page is displayed first; When it is linked to another page; or after a branch to him. They are not applied dynamically during the activity of the user on the page. In this case, that the status is set to false when the page is rendered first, the same element does not exist in the page sent to the browser. If you want these items to appear conditionally because of the interaction with another user control, then you must initially return the elements and control their visibility using hide/show the dynamic actions.

  • 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

  • Condition of dynamic Action with and/or Expression Javascript

    Hello

    Anyone know if it is possible to have multiple values assessed in a Javascript Expression in dynamic Action?  For a DA on click of a button with status as a Javascript Expression, I want it to be worth...

    $v ('P5_ITEM_1')! == « X » || $v ('P5_ITEM_2') is nothing

    Therefore all true subsequent actions should be triggered when the P5_ITEM_1 is not equal to add or P5_ITEM_2 is null.  This does not work for me.  Only the first condition seems to be considered. The second seems to be ignored.  In other words, I can pass the two around and I have rated P5_ITEM_2 and the other ignored.

    Thoughts?

    -Seth.

    If you would like to evaluate both conditions then have nested If statements or use and operator instead where operator

    in one or the Organizer if the 1st condition is true then the whole expression must be set to true so that the rest are not evaluated

    Kind regards

    Vishal

    Oracle APEX 4.2 reports | Packt Publishing

    Vishal blog

  • Apex 4.2 newbie: dynamic action, PLSQL expression & bind variable

    Hello

    I'm in the Action page dynamic editing > settings-> Expression PLSQL.

    A test, I want to do a textfield equal to the value of another field. All of the remaining work, I need to do on my form is based on this capability, for example, if I can filter the content of my shuttle with a textfield. But for now, nice and simple: a textfield equal to another.

    The problem is that my link variable appears to return a null value when it's non-zero.

    Thus, for example, field entering the PLSQL Expression NVL(:P1_PAGE_ITEM_TEXT,'No') returns always 'no' to a textfield in the page. However, P1_PAGE_ITEM_TEXT is not null - I put a refresh on shot down and I am happily adding text... but the textfield shows simply "no".

    Googling, I see other people had similar problems a few years back and resorted to JS instead of PLSQL. But I think it's more likely that I'm doing it wrong that it's a bug! (Dynamic - Action Alert view the value in the field

    I would be grateful if someone could confirm that it is possible to do what I want to do - and how!

    Thank you
    Emma

    Published by: 995005 on March 21, 2013 05:46

    Published by: 995005 on March 21, 2013 05:47

    Construction IN is always a nasty...
    because you get: where id in "a, b, c" (where a, b, c is the value of P1_PAGEITEM)
    and you should get: where id in ('a', 'b', 'c')
    There is no easy solution for this. If you must certainly construction IN you "convert" the value of P1_PAGEITEM to a table (with a function in pipeline and apex_util.string_to_table). Just Google for a solution.

    Try to make it work with a single value first (before that you increase the complexity)

    And the definition of LOV should be: SELECT description, Àtable FROM returnvalue to display the description.

  • Dynamic action on the region

    Hello

    Request Express 4.1.0.00.32

    I have a report region on a page that is conditionaly displayed depending on the value of an element of page Pn_ITEM = "HIDE".

    I have dynamic stock running on the page that fill a collection and update the report without the need to submit the page. However, I need to show the report somehow when the collection contains at least one of the members present.

    I tried the following:

    1st real action running pl/sql that adds a record / member of a collection, then a 2nd action sets the value to a page Pn_ITEM = true 'SHOW' action item and a 3rd that should show the region based on the value of the real action 2.

    My collection has an added member. The value 'SHOW' is applied to my article on Pn_ITEM page by the dynamic action but the region of report I want now displayed is not displayed. Obviously if the page is submitted, the report will now be shown however I can't send the page at this stage that's why I need to do this dynamicaly or through javascript and on the application process.

    Any ideas how to get my region report to display once the collection has at least one member without submitting the page?

    Thanks in advance.

    Remove the requirement for the view from the region. You don't want this here since it completely stops rendering region if the condition is not fullfilled to the render time. You want that he made, but not displayed.

    Add css to the region (inline, class):

    style="display: none;"
    

    Add real action that will do a refresh on your area (component - refresh, select your report as an affected item region).

    Now, either:
    Add a real action of type run javascript. Since you can not put conditions on the real actions, we will test the condition in javascript.
    Choose one:

    if($v("Pn_ITEM")=='SHOW'){
    //if you want to target the region to be shown by an ID (static id?)
    $("#region_id").show();
    };
    
    if($v("Pn_ITEM")=='SHOW'){
    //if the triggering element would be the region to be shown
    $(this.triggeringElement).show();
    };
    
    if($v("Pn_ITEM")=='SHOW'){
    //if you'd want multiple affected elements to be shown at once drop the [0]
    $(this.affectedElements[0]).show();
    };
    

    Create a new dynamic action that has the same conditions of release as your other dynamic action.
    Specify a when condition:

    $v("Pn_ITEM")=='SHOW'
    

    Create a real "Show" type action to show the region.

    Final result should be your dynamic action creating an item in the collection, an update of the report based on the item (but still not represented) and finally a show in the region.

    Remember that stocks will also fire on page load (so don't forget to check the box on the actions of true), otherwise the region does not appear initially.
    I would say that the item is probably not necessary, but depends on any other logic, you might have on your page and possibly interacts with it.

Maybe you are looking for