Dynamic action - action sequence problem?

I have a button whose action is defined by a dynamic action.
Click on the button I want to do some pl/sql on the database, return a value in an item, and then open a url based on a value that is defined within this element.

I created a dynamic action (click on the button), having 2 real actions:
1. run pl/sql code - do some actions of database: generates a line in a table and return a value in an item (say p1_test)
2 run javascript - open source code is a url that uses a value stored in the p1_test item.

I have problem on the order of execution of these real measures: on click of a button, a new line is created in a table, the url is opened, but bad: the url address is incomplete, if I get an error that the p1_test element is not yet populated with the value.

After you open an error window, the element p1_test is filled with a correct value.
This is a problem. :( I need start by filling the value such that I defined by real action, and to open a url.

Can someone help me?
TNX

Hello Valentina,

using APEX 4.0 or 4.1 of the APEX?

(a) If you use APEX 4.0, you can use the "Set value" action after your action "run the Code in PL/SQL" to read the value stored in P1_TEST from the server and place it in the P1_TEST element in the browser.

(1) create an action 'Set value' with the type "PL/SQL Expression.
(2) the value of the expression of pl/sql

:P1_TEST

(3) set P1_TEST as affected item.

The JavaScript code to use $v ('P1_TEST') to read the value.

(b) in the APEX 4.0 just use the 'Page return points' attribute of your "PL/SQL Execute Code" to return the value modified on the server to the client. If you set it to P1_TEST the modified value will automatically be returned to the browser.

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

Tags: Database

Similar Questions

  • Dynamic action problem

    Hello

    I am creating a dynamic action that should fire when a certain value is selected in a Select list. If the value selected is equal to a value from the database, then should display a checkbox. If it is not equal to a value from the database then the box should not show.

    I have the list select (PItem) which is filled by the LOV:

    Select the tableA orderby id id;

    Then I have a checkbox (PCbox) I created.

    I created a standard dynamic action on PItem with a condition that the element must be equal to the output of a select query:

    Select the id from tableA where id =: PItem and other = "Y";

    I applied this to the PCbox.

    If the check box to display only when an id is obtained from the database via the select query. However, this does not work. When I put a value such as 8 in the box of 'value' for the condition "equal to", it works fine. If the box never displays.

    Any ideas on how to solve this problem?

    Thank you

    Hello

    You can accomplish this by creating an item of assistance PItem2.

    Fill it with dynamic action "set" using the query
    Select the id from tableA where id =: PItem and others = 'Y '.
    to change your selection PItem list event.

    Then create a Show/Hide dynamic action on the change event of the item of assistance PItem2 to a condition of 'not null' that will allow to show or hide the PCbox checkbox.

    Kind regards
    Erik-jan

  • Static id usage problem of IR region with dynamic action

    Hi all,

    I have this dynamic action:

    Event: after refresh

    Selection type: region

    Region: region_name

    Condition: no strings attached

    Action: run the JavaScript Code

    this.affectedElements.find ('td [headers = "Alternativen"] table.apexir_WORKSHEET_DATA') .each (function (i) {}

    var lThis = $(this);

    If (lThis & & lThis.text ()! = "" & & lThis.text ()! = "-") {}

    lThis.parent () .children ().css({"background-color":"#7da08a"});)

    }

    });

    $(".apexir_WORKSHEET_DATA") .find ("[headers = 'Alternative']") () .hide;

    $('#Alternativen').hide ();

    I've added a static id called #search_report for a specific use, since this dynamic action does not work, I tried to put in the Type selection of the elements concerned section: jQuery Selector and

    jQuery Selector: #search_report but still does not work. Any help

    aymen_tunisia wrote:

    After many tests, I change the Type of selection to JQuery selector and put table.apexir_WORKSHEET_DATA as the value for JQuery selector tr, it only works for the first page

    Change the scope of your da static to the dynamic.

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

  • Dynamic action - fire on Page Load problem

    Greeeting,

    I created the report with dynamic action event = page loading and action = submit. Scope of the event = Bind,
    But he is permanently on the page, and I want to submit once...

    How I manage... created example, please click the link

    http://Apex.Oracle.com/pls/Apex/f?p=20294:3:1276651806269601:

    Hello
    >
    Earlier you said:
    Sales page 1

    Page 2 sales detail

    sales page items are rate and identity of product name.

    Name of the product on page 1 is related to retail sales page 2.
    >
    How? This relationship is not obvious to your query.
    >
    Now, you say:
    Parameters:
    1 - the date
    2 - date
    3 - choose the area

    >

    You logic is rather mixed up. That is what you want to achieve? What are the default values for the 3 parameters, if any? What value to Page 2 is used when browsing Page 1?

    Two wrongs don't make a right. Then first give up to the DA who Sumbit Page when loading the Page and focus on the fundamental question related to your logic.

    The amended motion proposed below is NOT WHAT YOU NEED for YOUR CONDITION, but I'm posting it so that you can at least get the running report and then work to correct your logic.

    SELECT SS.OUTLET_ID,
      SS.CAT_ID,
      SS.ITEM_CDE,
      SS.ITEM_NME,
      SUM(DECODE(RETURN_IND,'N',ITEM_QTY,'Y',ITEM_QTY*-1)) QTY,
      SUM(DECODE(RETURN_IND,'N',ITEM_QTY,'Y',ITEM_QTY*-1)*ITEM_RTE) AMT,
      O.OUTLET_NME
    FROM
      (SELECT OSM.OUTLET_ID,
        PI.CAT_ID,
        PI.ITEM_CDE,
        PI.ITEM_NME ITEM_NME,
        OSM.RETURN_IND,
        OSD.ITEM_QTY,
        OSD.ITEM_RTE
      FROM OUTLET_PRICE OP,
        OUTLET_SALES_MASTER OSM,
        OUTLET_SALES_DETAIL OSD,
        POS_ITEM PI
      WHERE OSM.OUTLET_SALES_MASTER_ID = OSD.OUTLET_SALES_MASTER_ID
      AND OSM.OUTLET_ID                = OSD.OUTLET_ID
      AND OSD.OUTLET_PRICE_ID          = OP.OUTLET_PRICE_ID
      AND PI.ITEM_ID                   = OP.ITEM_ID
      /* AND OSM.OUTLET_ID                = :P2_SELECT_OUTLET
      AND OSM.CONSIDERED_DTE BETWEEN :P2_FROM AND :P2_TO */
      AND OSM.OUTLET_ID                LIKE NVL( :P2_SELECT_OUTLET,'%')
      AND OSM.CONSIDERED_DTE BETWEEN NVL(:P2_FROM,TRUNC(SYSDATE)-1) AND NVL(:P2_TO,TRUNC(SYSDATE))
      UNION ALL
      SELECT OSM.OUTLET_ID,
        PI.CAT_ID,
        PI.ITEM_CDE,
        PI.ITEM_NME ITEM_NME,
        OSM.RETURN_IND,
        OSD.ITEM_QTY,
        OSD.ITEM_RTE
      FROM OUTLET_PRICE OP,
        OUTLET_SALES_MASTER OSM,
        OUTLET_SALES_DETAIL OSD,
        ITEM I,
        ITEM_CATEGORY IC,
        POS_ITEM PI
      WHERE OSM.OUTLET_SALES_MASTER_ID = OSD.OUTLET_SALES_MASTER_ID
      AND OSM.OUTLET_ID                = OSD.OUTLET_ID
      --AND OSM.OUTLET_ID                = :P2_SELECT_OUTLET
      AND OSM.OUTLET_ID                LIKE NVL(:P2_SELECT_OUTLET,'%')
      AND OSD.OUTLET_PRICE_ID          = OP.OUTLET_PRICE_ID
      AND OP.ITEM_ID                   = I.ITEM_ID
      AND I.CAT_ID                     = IC.CAT_ID
      AND IC.TEMP_ITEM_ID              = PI.ITEM_ID
      /* AND OSM.CONSIDERED_DTE BETWEEN :P2_FROM AND :P2_TO */
      AND OSM.CONSIDERED_DTE BETWEEN NVL(:P2_FROM,TRUNC(SYSDATE)-1) AND NVL(:P2_TO,TRUNC(SYSDATE))
      )SS ,
      OUTLET O
    WHERE SS.OUTLET_ID = O.OUTLET_ID
    GROUP BY SS.OUTLET_ID,
      SS.CAT_ID,
      SS.ITEM_CDE,
      SS.ITEM_NME,
      O.OUTLET_NME
    ORDER BY ITEM_NME
    

    See you soon,.

  • APEX 4.0: Dynamic action problem when hiding point page

    Hello world

    I created a dynamic Action that shows/hides a page element.
    When hide it, if this page is a text box, object, which resizes texarea is still visible... as well as quickpicks (as appropriate).
    If point page corresponds to a date, and quickpicks, quickpick labels are invisible, but the commas that separate them are still visible. Fortunately, date picker icon is hidden.

    I hope this helps
    Oscar

    PS: Tested on apex.oracle.com using IE8

    Hi Oscar,.

    Thanks for this posting. This is a known bug (#9811411) with dynamic stock control show or hide an element of the page currently only the following:

    • The item itself (the input, textarea, etc.).

    • Any other standard compound element (datepicker, color picker icon, all the list items Manager, shuttle elements, etc.).

    • An element label, if defined in the standard way (tag with an attribute 'for' corresponding to the attribute 'id' elements).

    We do control however no other currently defined attributes in the element definition (pre / post text, quick pick item controls, control center, etc.).

    There is a fairly simple solution, and it is to check the box 'Yes' to the ' show / hide all elements of the page on the same line "in the"Setting"region in the actions of 'Show' and 'Hide '. This will control everything, but the limit that you should not have any other elements on page displayed on the same line, because these will be also shown / hidden by doing this.

    Sorry for this current issue, I hope that the workaround can be useful until we can fix.

    Kind regards
    Anthony.

  • Help with dynamic action and the selection list item

    G ' Day Apex gurus.

    I have problems trying to achieve to trigger the Help window from an element automatically select. A Help window is triggered when it is clicked on the label of an item, but my customer wants to be triguered automatically as soon as the user clicks to view the options in the select list.

    I think I should be able to do with dynamic actions but I can't function.

    I know when someone clicks on the label of the item selection list trigger this JavaScript

    JavaScript:popupFieldHelp('277938589795252851','1545903379570909')

    So I want to trigger the javascript also when the user click on the item selection list and pull down the options and for that I think that the dynamic action is the way to go, but I can't do things.

    That's what I have to do:

    I created a dynamic option as follows:

    Name: test
    Sequence: 30
    Even: click
    Selection type: product (s)
    Article (s): P1_RATING <-a selection list item
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: checked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Thank you anyone who can tell me what I'm doing wrong here or bring a solution to my problem to trigger the Help window from an element automatically select.

    Kind regards
    Carlos

    Hi Carlos,

    I've set up a test case of exactly in the same way and it worked fine for me. I've created a page element called P1_DA_DEMO and added some values of the static selection list, then added a help text. I used the settings are lower, I suggest you try again, but also make sure that you have no other Javascript errors on the page. Use a tool like firebug to check.

    Name: Action Dynamics demo
    Sequence: 10
    Even: click
    Selection type: product (s)
    Product (s): P1_DA_DEMO<- a="" selection="" list="">
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: unchecked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Scope of the event set a Bind s.

    Thank you

    Paul

  • Tips: APEX 5 r IR by a dynamic action after the text fields complete

    Hello I hope I can get assistance on this matter and thank you in advance for any information.

    I have an APEX 5 screen, that has 4 fields of entry of text and under this one IR that has these 4 parameters in its SQL where clauses.

    Now if I create a button that submits page or redirects to this page my report can be updated with the values of user entered without problem, basic stuff.  If I create the settings section as a dialog box model once again that I can get the update report as this dialogue submits the page as well as the report can refresh according to closed dialog option.

    What I struggle to reach is to allow the user to enter values in the text fields click on a button called 'submit' and there all stages of implementing dynamic action without page reloading.  I want user to P1_A, P1_B, P1_C, P1_D press on "submit" input, dynamic action that links the values entered into the fields, then fire another dynamic action that updates the State when the button is clicked / modified values what works the best.

    I am struggling to get this to work and I even tried to copy these settings and do them as hidden for example bind input P1_A to P1_A_Hidden by a dynamic action and have the report where clause =: P1_A_HIDDEN, but have not managed to get this working.

    It's possible?  I know its easy to simply send the page and make it work, but I want the experience to be quite uniform for the user and act as you never leave the page.

    I saw on the packages of the app in the chart example.  The bubble chart has a list selector (salary) and the table updates dynamically, it seems so that the process can occur, but I need the user to enter text and not use selection lists.

    My apologies if I missed any, but I can give you more if it helps.

    Concerning

    1972903b-5166-494e-8355-08d9d4006e96 wrote:

    Hello I hope I can get assistance on this matter and thank you in advance for any information.

    I have an APEX 5 screen, that has 4 fields of entry of text and under this one IR that has these 4 parameters in its SQL where clauses.

    What I struggle to reach is to allow the user to enter values in the text fields click on a button called 'submit' and there all stages of implementing dynamic action without page reloading.  I want user to P1_A, P1_B, P1_C, P1_D press on "submit" input, dynamic action that links the values entered into the fields, then fire another dynamic action that updates the State when the button is clicked / modified values what works the best.

    The button simply trigger a unique dynamic action of refreshment on the IR region. Session state for page elements must be processed automatically by specifying them in the property Page to submit Items of the IR region.

    Please ensure that you have updated your forum profile with a recognizable username instead of "1972903b-5166-494e-8355-08d9d4006e96": Video tutorial how to change username available

  • Validation against the dynamic Action

    Hi all

    I have a Submit button which is dynamic in Action, when we click on this button, that pl/sql code is executed.

    Also, I wrote a validation on text box saying that it can not be null. But when I press Submit button dynamic action only to run but not Validation.

    Here is the page, it includes two regions, first region button does not have a dynamic Action, so it is prompting validation error, where, as the second region button is not. Help, please

    https://Apex.Oracle.com/pls/Apex/f?p=9055:2:3349793619276:

    Workspace: KUMAR82

    User: Kumar62

    Pass: Kumar #1

    Thank you

    Kumar.

    Hi Kumar62,

    Kumar62 wrote:

    I have a Submit button which is dynamic in Action, when we click on this button, that pl/sql code is executed.

    Also, I wrote a validation on text box saying that it can not be null. But when I press Submit button dynamic action only to run but not Validation.

    Here is the page, it includes two regions, first region button does not have a dynamic Action, so it is prompting validation error, where, as the second region button is not. Help, please

    Check your 9055 Application-> Page 2. Your problem is solved for the button 'submit for approval '.

    Here are the changes made on page 2:

    • Added real action in your dynamic action to send the page with the query 'SUBMIT' with the following settings:

    Action: Send the Page

    Application/button name: SUBMIT

    See the process facility: No.

    Note: Postings are only performed after the page. The release of DA button was running just your logic, but in order to process the postings you submit page.

    • Changed condition for validations:

    Condition of removed the "when Button Pressed" and game

    Condition type: request = Expression 1

    Expression 1: SUBMIT

    Kind regards

    Kiran

  • 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

  • In table form, a dynamic action to disable and set of columns of text

    Hello!!

    With the help of APEX 4.2.6 with Oracle 11 g R2, someone I work with has a tabular presentation of the need to do the following:

    Tables has the following provision:

    When the user selects the UOM LOV Dollars, the rate must have related associated text box the amount set to 1.  We currently have JavaScript disable and set the background color, but fo rth elife of me that I can seem to help set the value...

    The code we have in dynamic action:

    < tt >

    ROW_ID = $(this.triggeringElement).attr('id').substr (4);

    If (. val() $(this.triggeringElement) == 2)

    {

    $(«#f04_» + row_id) prop ('readOnly', 'readonly');

    $(«#f04_» + row_id) prop ("class", "textinputdisabled");

    .Val (1) $("#f04_" + row_id);  < = Here's where we had the question...

    }

    on the other

    {

    $(«#f04_» + row_id) prop ("readOnly", false);

    $(«#f04_» + row_id) prop ("class", false);

    < /tt >

    Thank you

    Tony Miller
    Los Alamos, NM

    Hi Tony

    What exactly is the problem here? I have no problem setting the value using the method described above. There is even a '1' in the screenshot above, no doubt, which indicates that the value has been successfully changed.

    For ease of improved management, I'd use traversal Dynamics for the form element affected, rather than hard-code the ID (or go with a DA conditional with distinct actions of true/false), but the jQuery code to set the value is the same:

    var uom, rate;
    
    uom = $(this.triggeringElement);
    rate = uom.closest('tr').find('td[headers="RATE"] input');
    
    if (uom.val() === "USD") {
      rate
        .prop("readOnly", true)
        .addClass("textinputdisabled")
        .val("1");
    }
    else {
      rate
        .prop("readOnly", false)
        .removeClass("textinputdisabled");
    }
    

    (I used a static LOV in the column of the unit of MEASURE, so the value of '$' is 'USD' rather than '2').

  • APEX 4.2 limiting size of the value dynamic Action

    Hi all, I'm using ApEx 4.2.5 with 11 g BD and stumbled on this problem.

    I'm trying to set the value of a div within an HTML region. To do this, I use one set dynamic Action launched by a custom event "search" when user press enter or click OK to a search bar. I also use the PL/SQL function as set type body.

    I tested it and it works fine except if the content of the value is large enough (about 30,000 characters or more). I can't find any information about a size limitation for the return value of this type of package. I get this error code: ORA-06502 when I'm looking for a big content, and it seems that this error may occur when "you attempted to assign a value to a numeric variable, but the value is greater than the variable can handle", but I'll be back a PL/SQL CLOB variable in a div, so I don't see any kind of limitation. I think the limitation can be in the call made by apex in the background AJAX...

    I need help on this, thanks in advance.

    Gaël

    Hi gados12,

    gados12 wrote:

    OK, I tried something and the result is weird.

    I created a pakaged function to retrieve the right HTML content that is stored in my CLOB column (because I reached the limit of characters for PL / SQL code in dynamic action)

    So I called my function (allows to name it FNC_GET_SEARCH) my previous dynamic Action Set value. I still get the same error with large HTML content. However... it is there, it's weird.

    So that means the error is not my FNC_GET_SEARCH function, but the dynamic Action itself... So there must be some kind of limitation with this kind of dynamic action?
    Is it because the dynamic action to set the value using the package HTP in the background?

    The DA type 'Set Value' is for session state implementation and display the value of an element of page APEX value that is defined internally as VARCHAR2 (4000).

    As a result, you get the above error. Use the approach mentioned above to manage CLOB based rendering html.

    Also of your FNC_GET_SEARCH function for the display unit test error message.

    Kind regards

    Kiran

  • Bug?, double dynamic action - resequencees actions

    Hello

    just noticed that the 'double' cool feature in the designer of the page copy dynamic actions but the sequence (order) of the actions for change.

    • Request Express 5.0.1.00.06
    • Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production

    Rgrds Paavo

    Hi Paavo,

    Please let us know. Indeed, it is a bug, and I've been able to reproduce. I deposited

    bug #21641330 - the page creator: double dynamic action retains the order of actions

    Concerning

    Patrick

  • APEX 5. Dynamic action on the CHANGE event does not work after applying the filter on IR.

    APEX 5.

    Dynamic action for the CHANGE event does not work after applying the filter on IR.

    Event: Change, selection Type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry

    Real action

    Selection type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry, Action: run the Javascript Code

    Is TI WHEREAS behavior?

    I know, I can work around this problem by using the Refresh event and javascript, but I prefer DA and if possible Change event.

    Concerning

    mdyla

    mdyla wrote:

    It is, how to force them reallocate dynamic Action in the event of CHANGE of the input elements after refresh of IR region.

    Set the dynamic scope of the event action to Dynamics.

  • Dynamic action: apexafterrefresh not firing

    See https://apex.oracle.com/pls/apex/f?p=57688:32

    See the discussion on Cascading LOV - dynamic action time-out

    I extended this approach to a report and another list cascading and things do not work as expected. Here are the components

    1. the list of values for X 1 is 1,2,3

    2. the list of values for X 2 is X1.1/.2/.3, cascade parent's X 1

    3. the list of values for X 3 is X 1. X 2, cascade of parents are X 1 and X 2

    WHAT SQL statement is

    with 
     l1 as (select level l from dual connect by level<=3),
     l2 as (select level l from dual connect by level<=3)
    select
     l1.l l1,
     l1.l||'.'||l2.l l2,
     l1.l||'.'||l1.l||'.'||l2.l l3,
     null link
    from l1,l2
    order by l1.l,l2.l
    

    "Link target page attributes column and the current link class = 'find' x: l1 =" "#L1 #" x: l2 = "#L2 #" x: l3 = "" #L3 # " "

    Dynamic action D1 is on fire on jQuery selector a.search with the following real click

    1 setpoint: Javascript expression $(this.triggeringElement).attr("x:l1"). Affected item: P3_X1. Remove the change event: no

    2. run Javascript code:

    $("#P3_X3").one("apexafterrefresh",function () {
      $s("P3_X3",$(this.triggeringElement).attr("x:l3"));
    });
    

    3 setpoint: Javascript expression $(this.triggeringElement).attr("x:l2"). Affected item: P3_X2. Remove the change event: no

    4 cancel the event

    In my real example, there are reports configured to refresh when X 3 changes and that part works when I change X 3 manually. I'm just unable to set X 3 with these series of dynamic action of shooting.

    Here's what I expect to happen

    1. true action 1: this sets X 1, which is updated X 2

    2. true action 2: This defines a unique event set on fire after the update to set its value X 3

    3. true action 3: this sets X 2 and updates X 3.

    This is supposed to raise the apexafterrefresh event and set the value from X 3 to x: l3, but it remains empty.

    What Miss me? I tried all sorts of things as defining the change event to delete Yes and triggering events manually. change(), change the order of actions, but nothing works. I just can't do the value of X 3 when the dust settles.

    Help? Thank you

    Hello

    had a look at your 57688:32 and copied on app # 19453 playing around.

    1. P32_X3 must only specify P32_X2 as 'Cascading LOV Parent article (s)' otherwise it will refresh when P32_X2 is changed and when P32_X1 is changed. But P32_X1 will trigger a change in P32_X2 anyway (which causes a refresh of P32_X3). I changed P32_X3 and to P32_X1 'Elements of Page to submit' in order to access the value of the LOV.
    2. You code referenced JavaScript P3_... instead of P32_... I changed to P32_...
    3. I also changed the order of the actions in your dynamic action
      1. First register your handler "apexafterrefresh" otherwise you can run into problems of synchronization
      2. Removed your action 'Set value' for P32_X2. See below.
      3. I also created a "apexafterrefresh" for P32_X2, because the definition of P32_X1 clears the value of P32_X2 and you must wait for the update cascading
      4. I also changed the JS code to use the variable auto instead of this, because within the apexafterrefresh, this will point to your agenda of the page list selection and not to the original report column.
    var self = this;
    $("#P32_X2").one("apexafterrefresh",function () {
    console.log(this, self);
    $s("P32_X2",$(self.triggeringElement).attr("x:l2"));
    });
    
    $("#P32_X3").one("apexafterrefresh",function () {
    console.log(this, self);
    $s("P32_X3",$(self.triggeringElement).attr("x:l3"));
    });
    

    Hope that gives you a direction to fix it in your application.

    Concerning

    Patrick

    Member of the APEX development team

  • Issue when executing dynamic action

    Hello

    I've defined two elements on the page of an interactive report. 'P12_ACODE' and 'P12_CLIENT_TYPE '.  I will highlight these elements of "column report link" as below.

    javascript:apex.confirm("Create Client Master Entry ?", { request:"SAVE", set:{"P12_ACODE":'#ACODE#',"P12_CLIENT_TYPE":'#CLIENT_TYPE#'} });
    

    My requirement is to execute the procedure when the 'column link' touches, passing the parameter value by the top two items on the page.  I created "dynamic action" on "P12_CLIENT_TYPE" for "change" event and here's the code from pl/sql execute.

    BEGIN
      abc_package.p_client_master_proc(:P12_ACODE, :P12_CLIENT_TYPE);
    END;
    

    I put "Items to submit Page" attribute as "P12_ACODE, P12_CLIENT_TYPE".

    When I press the "link in the column" button, I see that the value "P12_ACODE" is is passed to the procedure, the NULL value is making passed for the parameter "P12_CLIENT_TYPE".  To debug, I put these two elements of the page in "View" mode only, and I see that, when I click on the button, value is shown in the two areas, but for P12_CLIENT_TYPE, it disappears in some time.  A reason for this?  How to solve this problem?  Can someone help me on this?

    Attribute column for P12_CLIENT_TYPE-

    Parameters

    Save Session State: No.

    Based on: value of the element on the Page

    Show line breaks: Yes

    Source

    Source: replacement always, value that exists in session state

    Source type: static assignment (the value corresponds to the attribute of the source)

    Maintain session state: per session

    Thank you

    -Anand

    Hi Anand,

    (1) I think that you gave the wrong name of the element in

    When-> item (s)

    It's 19_NV_JOURNAL_DATE

    I think it should be P19_NV_JOURNAL_DATE

    (2) also the parameter-> PL/SQL Expression

    bad point for the function

    It must be : P19_NV_JOURNAL_DATE

    difc_generic_package.f_ad_month(:P19_NV_JOURNAL_DATE,:P19_NO_OF_MONTHS)
    

    Kind regards

    Jitendra

Maybe you are looking for