Dynamic action on link

Hi all

Currently, I have a report that shows column links that direct the user to a second page. My goal is to fill the second page under the form on my current page dynamically. Can someone help me complete my goal.

My sql on my report is:

SELECT A.PLAN_ACTIVITY_ID, A.PLAN_ID, A.ACTIVITY_TYPE_ID, A.ACTIVITY_PLAN_HOURS, B.ACTIVITY_TYPE_NAME
OF PLAN_ACTIVITY A JOIN REF_ACTIVITY_TYPE B
ON A.ACTIVITY_TYPE_ID = B.ACTIVITY_TYPE_ID
WHERE A.PLAN_ID =: P48_PLAN_ID

Thanks for any help.

Ryan

If you are on apex 4, you should do the lower region of (target) an interactive report.
I suppose you want all on page 48 now. ;-)

The hidden field, we had on the other page, must now be on the same page.
Let's call it P48_hidden_value.
Then, you add a region (and it is important to place your interactive report of target in a separate region) on your page.

If your layout will be like this:






You can configure your interactive report it shows no bars search etc and looks like a regular report.
When you change the report int. and go to the second tab "report attributes.

under "Advanced attributes", under "Page elements must send", you must add our field of P48_hidden_value.
This allows the interactive report accept the value in P48_hidden_value.

The request under the interactive report must contain P48_hidden_value in where clause (or well it will not filter).
something like:

select bla from
mytable
where my_filter_value = :P48_hidden_value

We now have the updated interactive report in place.

Next, you set up a dynamic action in the field of P48_hidden_value (you still with me?  ;-)).
What should this dynamic action?
Well, when P48_hidden_value changes (Gets a new value of your click in the report in the upper area of your screen), the lower region, where the interactive report, needs to be updated.

Make a right click on the P48_hidden_value element in the page edit screen and add dynamic action.
Basically, set it to shoot a change on the ground of P48_hidden_value event.

define real action to UPDATE an area, especially your lower region.

result: when the value of P48_hidden_value is changed, the dynamic action brings the lowest interactive report to update and take the new value.
There is therefore no full page refresh, right in the area.

Last piece of the puzzle: how fill us P48_hidden_value?

We use a small piece of javascript to do this.
In top gear, you had a column binding pointing to the other page, P49_hidden value of filling.
Now assign this URL instead of the page in this application.

much gray fields now, and the ungreys URL field.

in the URL field, enter the following:

javascript:$x_Value('P48_hidden_value',#COLUMN_NAME_TO_SEND_TO_LOWER_REGION#)

the x value is a javascript apex trick to set the value of a field.

You need to change #COLUMN_NAME_TO_SEND_TO_LOWER_REGION # at ## of course.

When you go through it, it should work.

Robin

Tags: Database

Similar Questions

  • 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

  • Link between apex and dynamic action images directory

    Hello

    Recently, I upgraded my version of 4.2.0 for 4.2.2 APEX.

    I missed the step where you have to re - setup the WAR of ADR file to point to the new directory of images. The result is that my dynamic actions would not trigger in the application.

    Although the problem is solved (by the missing step), I am interested to know how dynamic action links to the directory of the specific images of version to make it work?

    See you soon,.

    Xrc xarg wrote:

    Recently, I upgraded my version of 4.2.0 for 4.2.2 APEX.

    I missed the step where you have to re - setup the WAR of ADR file to point to the new directory of images. The result is that my dynamic actions would not trigger in the application.

    Although the problem is solved (by the missing step), I am interested to know how dynamic action links to the directory of the specific images of version to make it work?

    Dynamic Actions are implemented using jQuery and JavaScript, so their operation depends on the good jQuery and JavaScript APEX referenced files when the page is loaded. These files are stored in the "images" folder hierarchy ('Pictures' are an unfortunately close label, legacy for shared components that reside on the web server. 'Assets' or 'resources' would be better words to describe the current content of these files.)

    The references that are in charge of these files are included in the page templates. These are stored in the database and thus updated by the upgrade SQL script. If the files specified by the URL in the page template references are not created in the necessary locations by following the installation steps, the referenced files are not loaded and the dynamic actions generated on the page cannot access the library functions they need to run.

  • How to run dynamic Action when clicking on a link in a report

    APEX V4.2.3

    DB EA 11.2

    APEX listener V2.0.5.287.04.27

    13 blue-gray theme

    IE9.0.8112

    FF26.0

    I have classic report and I would like to launch a dynamic action (together a show has confirmed and the value of the alert, submit the page, then run a process) when the user clicks on a link in a report or click on #ID #.

    I can write the real actions that I just need to know what to write behind the report link that will serve as a trigger for the DA?

    Thanks in advance

    PaulP

    It's the link attribute

    onClick = "if (confirm (' do something for #ENAME # with EMPNO: #EMPNO #'")) {$s('P5_ENAME_CLICKED','#ENAME#') ;};$s('P5_ID_CLICKED','#EMPNO#');doSubmit()""

    It's getting a bit long on a single line, if you want, put it in a function

    However, fixed, forgotten pair of single quotes as soon as possible.

    Now you have 2 bind variables to use in the process of page after submit.

    : P5_ENAME_CLICKED and: P5_ID_CLICKED

    I've updated the example page, http://apex.oracle.com/pls/apex/f?p=14308:5

    Good luck.

  • can a column of 'link' (classic) report trigger a dynamic action?

    In order to avoid a complete package and following flicker,

    can the link associated with a column of the classic report

    somehow trigger a dynamic action?

    Something along the lines of

    1. run few PL/SQL (some parameter passing along)
    2. refresh a page region to reflect the changes brought about by the (1)

    In practice, I have a page that emerges already, master/detail

    with the need to manage another set of detail records.

    I can collect a bunch of fields that are not related to the db.

    and generate an insert + update via a button 'Add '.

    Then the report containing the details is updated

    provide visual feedback that a new record has been added

    Indeed, with a column 'delete '. The integrated link is

    currently a javascript that saves the underlying m and

    Removes the secondary details, but it involves a shipment

    and refresh the entire page. It can be avoided?

    (running apex 4.2.1)

    You can use the onchage event to create your dynamic action. Make sure that there is a hidden page element (value not protected). From your link to classic report column, set the value of the page element hidden by using the JavaScript API $s () that will trigger the dynamic action of the onchange event.

    javascript:$s('P1_HIDDEN_PKEY_ID',#ROW_PKEY#);
    

    Thank you!

    JMcG

  • How to add a link to the html area to launch a dynamic action?

    Hey, guys:

    I need to add a link to a region of html hyper (I wish it could be a button :(), the value of the items in this region is loaded by a process of pl/sql before loading the header. And this link must trigger a dynamic action to update the database. I know how to add a link Super in this region, but how to define this link if I can launch a dynamic action by clicking on this link, could someone give me a hint?

    Thank you very much in advance.

    Sam

    Published by: lxiscas on April 11, 2013 17:04

    When I said updateRec I was just a name. Using the class alias_ncic will produce exactly the same result.
    Learn more about what you're trying to do, I wouldn't do that with DA at all. I would probably do the link send page and launch a process that call your PL/SQL. But if you must do a DA I'll try to explain a technique below.

    When you say

    Then, I pass two values of two hidden variables:

    P216_H_NCIC_APPROVE_TABLE_NAME---> "SOR_ALIAS".
    P216_H_NCIC_APPROVE_KEY_VALUE---> #ALIAS_ID #.

    Your link not pass anything because you never actually call the link, you have a DA of the substitution of the link action.

    So... try something like that. Use it for your link attributes:

    onclick="return false;" class="alias_ncic" title="NCIC Approve" id="#ALIAS_ID#" rel="SOR_ALIAS"
    

    This defines two attributes more to enter the values you need to.

    In yourself DA action on a.alias_ncic add two actions to "set the value.
    1.
    Action: Set
    Set Type: Javascript
    JavaScript expression: this.triggeringElement.getAttribute ("id")
    Assigned items: P216_H_NCIC_APPROVE_KEY_VALUE

    2.
    Action: Set
    Set Type: Javascript
    JavaScript expression: this.triggeringElement.getAttribute ("rel")
    Assigned items: P216_H_NCIC_APPROVE_TABLE_NAME

    Now you have your values defined.
    Make sure that in your PL/SQL Execute Code action you both of these elements in the field "Page to go" so that they values are actually passed.

    That should do it.
    Thank you
    -Jorge

    Published by: jrimblas on April 29, 2013 16:49

  • How to create dynamic action of the link column in the classic report

    I have an apex page to display a modal window using jquery. In the modal window, I have a classic report with a column of link I want to capture its click event.
    I thought I could create a dynamic action with selection of type = jquery selector. Not sure if I need to do anything on the link column and do not know the syntax
    jquery selector. Would appreciate help or direction?

    Always zip code using .

    ...\
    

    tags as described in the FAQ.

    I created a region of report with the following query:

    Select empno, ename, 'SELECT' from emp
    where (ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
    or :P2_SEARCHPU is null)
    

    There is no alias specified for the "SELECT" column, Oracle uses so the content of the column as a default alias. It comes

    'SELECT'
    

    Instead of

    SELECT
    

    The necessary jQuery selector would be:

    td[headers="\'SELECT\'"] a
    

    However the need to release the single quote everywhere is a ticking time bug. SELECT an Oracle reserved word means use it as any type of identifier is either too smart.

    You should always use a valid Oracle identifier as an alias explicit when a column contains a literal value or a complex expression:

    select
        empno
      , ename
      , 'SELECT' link_text
    from
        emp
    where
        (  ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
         or :P2_SEARCHPU is null)
    

    APEX will use the column alias LINK_TEXT as the ID attribute of the column header and the cells in the column will reference it in their headersattributes. The jQuery selector is:

    td[headers="LINK_TEXT"] a
    
  • 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: 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

  • 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')
    
  • Service update in relation to the dynamic Action

    Hello

    Oracle 11 g 2, APEX4.2.4, Oracle HTTP Server 10g

    I have a report:

    SELECT empno, ename, sal, APEX_ITEM. POPUPKEY_FROM_QUERY (1, deptno, 'SELECT dname, deptno FROM dept') department.

    saveme null

    WCP

    Image 2.png

    I want to click on the link "saveme" and update the value of the Department of this record with AJAX. (Execute the pl/sql in DA)

    Can I get the primary key of the record and assign an element with DA. (P24_EMPNO)

    can I run a PL/SQL in DA and want to update the value of the Department which has been changed.

    It's my PL/SQL in DA (PL/SQL execution):

    Start

    because me in 1... apex_application.g_f01. Count

    loop

    Update emp

    Set deptno = apex_application.g_f01 (i)

    where empno =: P24_EMPNO; -I can gee the value of PK and place it in this article

    ;

    end loop;

    end;

    Image 003.png

    Any idea please?

    rayanico wrote:

    I get the EMPNO value like this:

    Add the attribute for link attributes: id = "" #EMPNO # "so my link looks like this:"

    then I get this by javascript and set it on the P24_EMPNO.

    so, I have KP. current

    Hmmm. I expected that you would be using jQuery crossed...

    but, on my Popup LOV:

    Edit users and I should get the current value of popup LOV.

    as you know, is not an ELEMENT, and I can't do it like EMPNO.

    How can I get the value of that?

    Using the route above jQuery in a dynamic action step Execute the JavaScript Code :

    var deptNo = $(this.triggeringElement).closest('tr').children('[headers="DEPARTMENT"]').find('input[name="f01"]').attr('value');
    apex.item( "P24_DEPTNO" ).setValue(deptNo);

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

  • Page cancel submission using Javascript not dynamic Action

    I build features requiring little Javascript to validate the page before being submitted and prevent sending if there are errors in treatment.  I got this job with the help of dynamic action that fires before Page submit to a condition of firing of Javascript and an action to cancel the event, and it works fine.  However, the intention is to use this feature in several pages and it would be nicer if the functionality could be implemented in Javascript (for example, the code in the page template).

    According to https://api.jquery.com/submit/ this should be possible:

    $( "#wwvFlowForm" ).submit(function( event ) {

      alert( "Handler for .submit() called." );

      event.preventDefault();

    });

    However, I can't make it work in the APEX.  Can anyone suggest a solution?

    during the presentation of the page using apex.submit () (which is probably all cases?), you can use submit it before event like this:

    $(document).on("apexbeforepagesubmit", function(){ alert("before submit"); apex.event.gCancelFlag = true; });
    

    You can find this by looking at the source code:

    page.js

    // Trigger a 'Before Page Submit' event for the document, and pass the current request value for convenience.
    lCancelSubmit = event.trigger( apex.gPageContext$, "apexbeforepagesubmit", lOptions.request );
    // Cancel submission, if the apex.event.trigger function says so (with a true return value).
    if ( !lCancelSubmit ) {
    

    Event.js

    event.trigger = function( pSelector, pEvent, pData ) {
    
          // Default to false, event cancelling should only be done if an event handler says so
          // (by setting this flag to true).
          event.gCancelFlag = false;
    
          // Trigger event
          $( pSelector, apex.gPageContext$ ).trigger( pEvent, pData );
    
          // Return the value of gCancelFlag
          return event.gCancelFlag;
      };
    })( apex.event, apex.jQuery);
    

    Also found in dynamic_actions.js

    /**
     * cancelEvent function
     * Cancels event processing...
     * */
    da.cancelEvent = function() {
    
        /* Set cancel flag in the apex.event namespace to true. This value can be used to cancel subsequent
           processing, such as in page submission to stop the page from being submitted. */
        apex.event.gCancelFlag = true;
    
        /* Set cancel actions flag in apex.event namespace to true. This value is used in dynamic
           actions processing to stop further actions firing. */
        da.gCancelActions = true;
    
        /* Call the event method stopImmediatePropagation. This prevents any event handlers
           bound to the current event from executing. It also calls stopPropagation to stop the
           event from bubbling up the DOM (if it supports bubbling), so any event handlers bound
           to ancestral DOM elements will not fire either. */
        this.browserEvent.stopImmediatePropagation();
    
        /* Call the event method preventDefault. This prevents the default behaviour of the
           event (for example prevents going to the URL of a link, if a link is clicked). */
        this.browserEvent.preventDefault();
    }; // cancelEvent
    

    It could change, but it would be weird. It works, but it is not really written in other than the one in the code documentation.

    Notice also that the event 'submit' is pulled (it would be strange if she didn't)

    //Submit the current form, defaults to "wwv_flow" if not provided in option map
    $( "form[name=" + lOptions.form + "]", apex.gPageContext$ ).trigger( "submit" );
    

    Thus, binding to 'submit' will work, and work, but note that Event.preventDefault () may NOT work depending on the browser used. For me it works in FF, does not check the others. You can try to use "return false;" instead.

  • Dynamic action pulling pagaination tabular, click on...

    Someone has an idea how to make for a dynamic action of fire when clicking on control of tabular form pagination?  I'm looking to try to catch this case to save data in a collection, when a user pages to a new page, so they don't have to do constant saves the database until they really save and exit a form...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

    Tony, two things.

    Since you used a dynamic action jQuery Selector must simply be:

    Select .pagination

    Because the $ () will be added by the DA.

    Also, for the anchors/links you need a click, but to select, you need a 'Change' event, I think.

    Thank you

    -Jorge

    PS. If she doesn't always... fire, check if that your model is the addition of all the stuff of paging with a paging class.  He could use something different.

Maybe you are looking for

  • How can I update all my files in windows 7 and Windows 8.1 records and they are compatible

    My wife has a new Acer PC to XC-704 which works on windows 8.1.  She needs to migrate all its disk hard win 7 of his acer aspire laptop without loss of functionality.  Can someone give me instructions on how to do it?

  • OCR for Mac software

    What do users of Mac for OCR?  I couldn't find a thing on the READiris Help Center said was delivered with the HP Photosmart 7510.  (Mac 10.6.x full Microsoft Office for Mac)

  • Passing the form variables to a thank you page.

    Hi allI have put code in place so my survey form transmitting data hidden on a confirmation page and displays the appropriate data. for exampletag_reportid = 222776tag_displayname = Point 26My form script is:" < form name ="catwebformform3235"method

  • How to make a mirror image in adobe elements 13

    I have some of my photos that are backward and must be mirrored. Is there a way of 13 elements Adobe to do this?

  • Why the strange Indesign epub air files in ADE3?

    I tried to do a few simple epub, trial fixed layout in Indesign files, then view them in Adobe Digital Editions 3. A folder contained a page of text formatted with paragraph styles and a picture from within Photoshop. The other file was just text pas