Dynamic action to refresh the region-> see the message to user

Hello

I have a page in the apex 4.2.2.

In this page, I have an interactive report and a filter sets, users can choose.

When users choose one of the filters, I implemented a dynamic action to refresh the interactive report region, so it should refresh the data being shown without submitting it.

So far so good... but... when the region is refreshing there is point 'charge of circle' which displays and allows the user to know he is done on the page. But this icon is not so obvious.

What I want is to add a message, for example to display a region, which showed a message like "being the updating of the report, please wait" (something like that).

I tried to insert in my dynamic action, as 1st action, to SHOW this area and as the last action to HIDE. But nothing is done, the region is never shown.

How can I perform this task? All I need is to be able to display a message, for the duration of the dynamic action, to inform the user that he or she must wait until the task is completed.

All real common actions have been reported to "wait for result", if I didn't get this wrong, it means that he expects the previous real action remaining to be done, in order to trigger the next... This should show the region and then hide it, but it does not work.

Can someone help me with this? Maybe give an idea?

Kind regards.

You can actually go several routes with a solution for this. A refresh of the IR will start forward and after updating the events that you can hang on to dynamic actions or jQuery, so you can show something at the start of the update and then hide it again. And since you can do all this in jQuery you could easily hold it in a javascript file and attach it to every page of the ir. This is probably the cleanest solution and more independable.

Another way is to use the already existing waiting icon and play with his presentation a little. You know, that you are talking about loading icon. You can change this to something much better with minimal effort!

Example:

Run when the page loads, to execute javascript code:

$("#apexir_LOADER").append("
Please wait. Refreshing the data.
");

Add this css to inline css in the page:

span#apexir_LOADER {
display: block;
width: 150px;
text-align: center;
background-color: white;
border-style: solid;
border-radius: 5px;
border-width: 2px;
top: 20%;
}

It'll make a little white box with black borders rounded around the loading icon and put a text below.

You can get the html code to add a bit more generic, or you can raise some html of the page if necessary. You can put it in a dynamic action on the load, put in a js file, or whatever. The css can be put in a page template or a css file.

It's only less independable hanging in front or after updating because we are taking advantage of the system in place, which means that maybe he could change in the future - but this is hardly on the same scale as the 'hacking' the ir for example javascript.

Tags: Database

Similar Questions

  • Dynamic action - check if the size of the texfield values does not exceed limit

    Hello

    I have a form and I'm trying to use dynamic Action to process the form values. I don't know how to get the length of the value of a textfield and compare to what I said in the values

    The order of the day called P6_USERNAME which can be more than 10 characters long.

    So I tried to create a dynamic Action with the following parameters in the region when .

    EVENT: Press button
    SELECTION TYPE: jQuery Selector
    jQuery SELECTOR: $("P6_USERNAME").val () .length
    CONDITION: above
    VALUE: 10

    Of ACTION GENUINE, I had a view only showing a message "you have exceeded the limit.

    The above didn't work and tried to work it around with:

    $v("P6_USERNAME").val () .length

    that no longer works.

    Any suggestions on how I can achieve this? The only options I got in the Type of selection are: point, area, object DOM and jQuery Selector. What I'm really after is retrieving the value of the element, so I can use it for comparison with the value to run my Real Action

    APEX 4.0 - Oracle XE 11 G - Windows 7 32 bit

    It is not necessary to use a validation/dynamic action. Set the maximum width for the element attribute and the browser will prevent users to enter values longer than that.

  • Dynamic action to display the button

    Hi all

    I use Apex 4.1

    I want to build a dynamic action:
    If a value in the select list is changed - a button must be indicated.

    It does not work!

    Yes, I did:

    In the model of button:
    either:

    < button value = "" #LABEL # "class ="grey button"type ="button""
    #BUTTON_ATTRIBUTES # >
    < span > #LABEL # </span >
    < / button >

    or this:

    "< button value =" "#LABEL #" class = "grey button" type = "button" onclick = "#LINK #
    #BUTTON_ATTRIBUTES # >
    < span > #LABEL # </span >
    < / button >

    The button:
    The button attributes:
    ID = "button_dyn_action".

    In dynamic action:

    Event: change
    Selection type: elements
    Product (s): P51_KW_ID
    Condition: No strings attached

    Action: show
    Fires when the result of the event is: true
    Fire when the Page loads: no

    Items affected
    Selection type: DOM object
    DOM object: button_dyn_action

    Would be nice to get help in this forum about this, as a dynamic action to display the buttons are not described anywhere!

    Published by: oraman on December 12, 2011 07:42

    oraman,

    I think this thread is cursed. He deleted my answer!

    I made a mistake in my first post. Your model of button should look like this:

    
    

    and you must include the following in your attributes of button, then your button is hidden when the page loads:

    style="display:none;"
    

    Here's a demo: http://apex.oracle.com/pls/apex/f?p=43401:34:0

    See you soon,.
    Janet Tyson

    Published by: Tyson Janet December 12, 2011 10:30

    Published by: Tyson Janet December 12, 2011 10:33

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • Dynamic action to change the point label

    Hi all

    How can I use dynamic action to change the point label?

    Thank you.

    Hello

    I don't think that there is a solution out-of-the-box for it. However, it seems that the Apex 4 correct uses of the elements of the label HTML for labels. So you can use a jQuery selector that is simple to get and manipulate the tag of an element.

    Something like this:

    $('label[for="P1_CUSTOMER_NAME"]').html ("new label");

    Note that there is sometimes a scope nested within the tag tag.

    You can use a type of dynamic action "run the javascript" to do.

    Luis

  • Dynamic action to set the value to select the text box list

    Hello

    I want the value in the list box select text box i.e list selection with 5 static values and on the user's selection, this value must be added in a box.

    I am using dynamic measurements. I tried with dynamic action and created the change list box select evnent but now how to set the value of the selection list to
    text box that I don't know.

    Help, please.

    Thanks in advance

    Hello

    I changed the dynamic on this page action to make it work now. I changed the "value Type" action 'Set value' 'Expression JavaScript' and "JavaScript Expression" do the following:

    $v(this.triggeringElement)
    

    This example gets the value of the page element 'DESPROGES', bypassing the server for nothing, as you did before.

    I hope this helps. Let us know if you have any other questions.

    Kind regards
    Anthony

  • Apex 4.0 interactive report row view dynamic action "after Refresh.

    Hello

    It seems that interactive report view row do not trigger the event "after refresh.
    I have not tested other events.

    I have taste.
    https://Apex.Oracle.com/pls/OTN/f?p=40323:76

    There is a dynamic action that show the alert by region "after updating' event.

    When you see a row, the alert is not displayed.
    Change record show no alert ether.

    Is it bug or missing feature?

    Kind regards
    Jari

    Hi Jari,

    I consider this a bug/feature missing as well. I filed bug # 10376989.

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

  • Dynamic action for button update region

    Hi all, how to create a dynamic action for button update region. Suggest me

    Thank you

    Apex-Obin wrote:

    Thank you... with over loading the entire page?

    Updating of dynamic actions using partial page refresh (PPR). However it is supported only on certain types of region: traditional and interactive reports, graphics and plug-ins where PPR support has been implemented by the developer of plug-in. The model of the region must also include an id = "" #REGION_STATIC_ID # "attribute, which means that the model region cannot set model No."

  • I tried in several ways (in line, calls and return on this forum), but no aid has been granted on Edge inspect.  I get the message "your user name and password are incorrect, or your account has no access onboard inspect CC.  Any assistance

    I tried in several ways (in line, calls and return on this forum), but no aid has been granted on Edge inspect.  I get the message "your user name and password are incorrect, or your account has no access onboard inspect CC.  Any help is greatly appreciated.  One of my original case numbers were: 0216572509

    You need installed Adobe Creative Cloud. Check the link for more information below.

    Edge inspect FAQ EAC

  • Customize the message "welcome, &lt; user &gt;."

    Hello

    When connect us to Obiee, we get the message "welcome, < user >."
    We need this to show as < user > on < variable position > customize.
    Could someone let me know how to do it.

    Thank you

    The 'Welcome' message comes from the XML message, uimessages.xml which allows only one parameter insert which is coded for the session display name variable. There is usually an init block in the RPD which defines the full name. OOTB is the init block "properties of the CONNECTION. You can try changing this init block SQL code so that the display name includes extended information you want to display. Of course, if the full name is used everywhere else then it will also include extended information.

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

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

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

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

    Currently I have:

    2 items on the page:

    P110_ID

    P110_VALUE

    Dynamic action called COLUMN of CHANGE:

    event: CHANGE

    selection type: jQUERY Selector

    jQuery:

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

    scope of the event: Dynamics

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

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

    action 3: run pl/sql code

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

    refreshment area true creation #4: LANDINGS_COLLECTION

    the tabular presentation is based on the query:

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

    I noticed the following:

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

    P110_ID = f11_1

    P110_VALUE is everything that I change the price.

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

    P110_ID = f03_0001

    P110_VALUE = change everything what I hms_flag to.

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

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

    If f11_1, v_seq: = 1

    If f03_0001, v_seq: = 1

    Thank you!

    solved.  sort of.

    domain c024 references f03.

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

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

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

    Hello

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

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

    In region 2, I have two checkbox elements:

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

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

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

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

    Is this possible?

    Thank you.

    Tony.

    Hi Tony,.

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

    Add real actions that will show P1_CBOX2 and hide P1_CBOX1

    Add false actions and going hide P1_CBOX2 show P1_CBOX1

    Set the dynamic actions to fire on Page load

    Kind regards

    Erik-jan

  • Generate dynamic elements without refreshing the page

    Hello

    I have a challenge to generate elements on a page dynamically without refreshing the page.

    I tried to do with AJAX, but do not have the elements on the page.

    I see that my process is called as I can warn the outcome of the appeal.

    Here is my code:

    I have a button calling the JavaScript function with AJAX call for the process:

    function f_OnDemand() {}

    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is NEW_FLOW', $v ('pFlowStepId'));

    invoke

    gReturn = get.get ();

    ajax reminder alert

    Alert (gReturn);

    }

    And here is the process that involves creating a few dynamic elements on a page:

    DECLARE

    Meter number;

    number of items;

    number of p_counter;

    BEGIN

    items: = TO_NUMBER(:P7_NUMBER);

    FOR counter IN LOOP 1. items

    p_counter: = counter + 1;

    HTP. P ("Item" |) APEX_ITEM. DISPLAY_AND_SAVE (p_idx = > counter, p_value = >, p_item_id = > counter). ': ');

    HTP. P ('Checkbox': counter |) ' ' || APEX_ITEM. CheckBox(p_idx => Counter, p_value => 'Test'));

    HTP. P(' ' || APEX_ITEM. SELECT_LIST (p_idx = > counter, p_value = > 'Y', p_list_values = > ' Yes;) Y, no.; N') || br / > ');

    HTP. P ("< br / > '");

    END LOOP;

    END;

    The question is - how can I make these elements of rendering on a page?

    I'm on Apex 4.2

    Thank you.

    The return would be inserted somewhere in the DOM of your page. So, regardless of the call ajax returns, must be added to a zone. Use jQuery for this. See this example:

    https://Apex.Oracle.com/pls/Apex/f?p=93000:803

    Denes Kubicek

  • Dynamic action to get the value of the item page

    Hello

    I have user 4.2 APEX with DB11g, I have a dynamic action with 2 real action:

    • 1 (value) in a State of variable defined on page like this
    BEGIN
      IF lecture_pkg.is_guest_submit_poll ('PUSH') THEN
        :P0_URL := 'http://www.google.com';
      ELSE
        :P0_URL := 'f?p=&APP_ID.:504:&APP_SESSION.::::P504_POLL_TYPE:PUSH';
      END IF;
    END;
    

    • 2nd (Execute the JavaScript Code) for javascript with setting of sending call which set step 1 "P0_URL" , for example to draw attention of:
    alert('&P0_URL.');
    

    the problem is in the 2nd step, displaying alert is displayed with the null value

    Note that i 1st stage i chose the option "wait for result"

    Any suggestion

    Step 1:

    Items affected

    Selection type - point

    Objects - P0_URL

    Step 2:

    Alert ($x('P0_URL').value);

    Please, make these changes and see if you get what you want.

  • Dynamic action based on the value in a table

    Greetings,

    I would like to use a dynamic action to disable a button depending on the value selected/entry in a field in tabular form. Thus, for example, if someone enters the value "LKSG", then a button is disabled (in this case, the 'Add Row' button).

    How I would do this using the tools of dynamic measurements? When I create a dynamic action, I see that my choice of Type 'selection' for dynamic action of shooting is point, area, button, object DOM, jQuery Selector. I don't know how to use a field in a presentation of tabular to firing. Or if it is possible.

    I use APEX version 4.1.1.00.23

    Thanks in advance!

    John

    jfosteroracle wrote:
    Tom - it's very useful! A few questions:

    -J' use a 'button of the model '. To use the static code for the button, I see that the model must include the #BUTTON_ID # in the model. I added the #BUTTON_ID # in the template like this:

    #LABEL#

    Where is the the BUTTON_ID should go, in the

    ?

    After adding this, it does not for a button of the model. But if I change the touch of a button HTML, your method works great!

    It is of course the difference between the two buttons: how they react and, above all, how they are marked upward. An HTML button is a real