How do dynamic actions using work to set the value in all browsers?

I'm having a problem of incompatibility between browsers with dynamic actions to help to set the value.  Dynamic action works like a charm on Chrome but has no effect on IE or Firefox.  The code in oracle.apex.com and here are the credentials:

Workspace: DDBA

Username: [email protected]

Password: redtruck12

These codes is on page 3 and here are the details:

There are two lists of report (Standard and special) and some reports require additional information provided in the lists of selection or text boxes.

If the user selects a report select Standard requiring a list/text box, then the dynamic action sets the value of the special reports to NULL (and vice versa).

Dynamic action is to prevent a simultaneous Standard reports and special selection.  To see how it works on Chrome, follow these steps:


  1. Run the Page 3
  2. Select the "Search report" option in the list Report Standard .  A text 'Search criteria' box
  3. Select the option 'Release report' in the list of special reports .  A selection list appears and disappears from the text box 'search criteria '.

If you do the same on IE or Firefox, the text box does not disappear.

Hi Edward,.

Please check page 4 of your app, I made a copy of your page and made a few changes:

I have set up an example of dynamic action 1 this hanles the report and special report selection list.

Dynamic action games, select the value of the selection list and he accompanies in detail the report lists to null and then submits the page.

For this I have deleted the page submit events to the time the report and special report select lists. Instead I handed them a HTML class. The dynamic action is triggered by a change of this category of html.

When the trigger is the report selection list, select special report is set to null. Also underlying selection sub lists are set to null.

When the trigger is the special report selection list, the selection of the report is set to null. Also underlying selection sub lists are set to null.

The two end of the action with a "Send" page to manage the show and hide appropriate items. Note that there is a lag in time due to the submission of the page. As I have suggested, it would be treated better by a refresh of the region. On the other hand you depend on now submit for the continuation of the treatment of your page. With the help of an update of the region would require a work more javascript and cost more redisgn of your page. If you need IE8 support, additional javsascript likely to cause other unexpected behaviors. In other words, a page is maybe in your case probably better then an update of the region after all.

I checked this page 4, Chrome, Firefox and IE (latest version) and I get the same behavior in all browsers.

Kind regards

Vincent

http://vincentdeelen.blogspot.com

Tags: Database

Similar Questions

  • Dynamic action, you see is not the value of session

    Hi all

    I have a small question.

    My case: a person does not have more than 160 hours of work, but this should not be a restriction, but rather a warning.

    My solution:

    Create a dynamic action on a mouse button press which gives a confirmation and if you want to keep a page submit.

    That this dynamic action is a condition that a variable is greater than 160 hours.

    The problem with this method is that it does not work on the first insertion. The validation is not made that the item is null and no hours briefed.

    Option2:

    Create a hidden item to_much_hours.

    Create a dynamic action on hours of work point lose focus that defines the to_much_hours element hidden with the value true.

    Create a dynamic action on a mouse button press which gives a confirmation and if you want to keep a page submit.

    That this dynamic action has a condition that point to_much_hours = true.

    The problem with this method is that it only works when the page submitted. I mean, it's when I try to present awarded more than hours, can I still do it freely.

    But if I try to send more hours and another field is filled in wrong and a validation error is displayed. On the next try the popup of conformation appears.

    Can U help me?

    Raoul

    Hi Raoul,.

    Replace well confirmed by a piece of Javascript code.

    {if (($('#myitem').) (Val()>160)}

    var r = confirm ("hours high are you sure?");

    If (r is true)

    {

    Apex. Submit ('SAVE');

    }

    }

    on the other

    {

    Apex. Submit ('SAVE');

    }

    I'd say it's something like that, there might be errors because I couldn't test. Check the console for errors if it does not work or make an example to apex.oracle.com and we can help you more.

  • 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

  • How I set the value of a dynamic text field row

    I have a repeated line form that contains a button and several text fields.  There is a text field (input field) above with some information I want to place in the table and several buttons that I want to read the value of and defined on the table.  Excuse me there are several questions I have and I use pseudocode to describe.

    Top shape resembles

    InputField

    | ButtonX1 | ButtonY1 | DescriptionX1 (read the text only field)

    ...

    | ButtonXn | ButtonY1 | DescriptionXn

    OutputRow looks like

    | ButtonOutput | OutputField1 | OutputField2 | OutputField3 |

    So, I want to do

    ButtonX1.click

    {

    OutputTable.OutputRow.addInstance (true) //this works - everything I have questions on

    OutputTable.OutputRow.OutputField1.rawValue = DescriptionX1.rawValue

    /*

    Question 1

    How should I address the location of each table to set a value

    Question 2

    How can I get the value of the description field in the same row as button and table

    I would like to say something to the effect of the OutputTable.OutputRow [?]. OutputField1.rawValue = this.parent.DescriptionX

    */

    OutputTable.OutputRow.OutputField2 = InputField.rawValue

    /*

    Same question as above - how can I specify a dynamic line - it's the syntax appropriate for obtaining the value of the input field?

    */

    OutputTable.OutputRow.OutputField3 is this. ButtonLabel

    /*

    Question 3

    How can I get the value of the label of the button to set the field

    There should be a lot of these buttons and buttons will be added - I'd rather set the value based on the label of the button to facilitate value - not requiring only not to change the code

    */

    Issue 4--unrelated to those at the top.

    Is it possible to build the first table

    | ButtonX | ButtonY | Description |

    from a XML file.  I've seen examples showing how to build if it's just data, but XML can be pushed into a form with the code to perform the above actions?

    Glad you figured it out... nothing wrong with doing it this way.

    Normally XML contains data and no default legends these xml files are bouond to the rawValue property. You can enable the dynamic linking and other properties of the object will be bindable (they appear as links) in the user interface. If you click on the link to legend an Assistant appears allowing you to bind the node in the XML file.

    Paul

  • 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

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

  • dynamic action sets the value of the element, but not save to DB on submit

    I'm working on a page where the value of several to show only the page elements are defined using a dynamic Action.  They are set when the user selects a value in a list of selection (and is based on the value of the selection list).  Dynamic action is triggered on a list selection change event and then runs the real action "set the value.  The selection list displays the names of sales representative.  The three fields dynamically filled are the org structure (that is, their chain management).

    For the action to set the value, I use a defined Type of SQL statement:

    Select VP, DIR, MGR

    of SALES_ORG where SSR =: P20_SSR

    In the affected elements, I have fixed Type of selection to the 'item (s)"and the value of the Item (s) for 'P20_GVP, P20_DIR, P20_MGR.

    Dynamic action works fine for the display of the page (that is, when I select a sales representative in the selection list dynamic action properly updated only display value fields three).  This page is a form in which the user submits information relating to the rep.  When the page is sent, all fields are filled in a new record of DB with the exception of three that were populated dynamically above.  These fields get the values NULL.

    When the dynamic action updates the values in the three fields is - it does not set the value of session?  Why these fields don't are not taken into account in the submit other ideas > process Page?

    I use 5 APEX with Chrome on Mac (Yosemite).

    Thanks for the note.  I didn't only display the items could not be used in this way.  I think I'll take a different approach with the design; given that the org structure is in another table that I can simply refer to that by rep when necessary rather than saving the information uploaded to the page of the form.  The reason why I have not fill the screen only the points of loading the page is because I don't know what the values should be until the user selects a sales representative in the selection list.

    I'll change the design to one of the following:

    1) change the display only items of standard text field.  NOTE: if I make the text read-only field that causes other problems when loading (I get the message "violation of protection Session state").

    OR

    2) do not include org structure in the download folder and just refer to table org Rep when necessary.

    Thank you!

    Steve

  • Set the value hidden with dynamic action

    This is probably very simple, but I don't know exactly what I'm doing wrong.  I would like to use a dynamic action to set the value of an item hidden in the value of a selection list when that select list of changes.  So what I have is:

    Event: change

    Selection type: point

    Article: P1_SELECT

    Action: Set

    Set type: PL/SQL Expression

    PL / SQL: P1_SELECT

    Items concerned:

    Selection type: point

    Point: P1_HIDDEN

    where P1_SELECT is my list selection and the P1_HIDDEN is my element hidden.

    It doesn't seem to work.  I don't know that I'm doing something very simple, bad.  This should be easy points for someone!

    Thank you!

    John

    It's actually a session typical State missunderstanding. When the selection list is changed, it does not change the value of session state, but only the value of the side (browser) client. If you set value action will set the status value for current session on the element hidden, which will probably be NULL (or any value it is on, you can see in the session tab in the developer bar).

    Instead of a type of expression plsql for your set value action, must change to a javascript expression:

    $v ("P1_SELECT")

    who will get the value of the element of page P1_SELECT currently on the page.

    PS: also, in your affected items your article is ": P1_HIDDEN"-is two points in front of deliberate? It shouldn't be there

    PS2: If you mean to send the page, then you can set the property to 'protect the value' of the hidden element to 'No', otherwise you will receive a checksum error!

  • Simple dynamic action does work properly in 4.1 more

    Our application has a page with a large number of boxes while using the same LOV ('Y', ' don't). We defined a simple and dynamic action that fires whenever the first box is changed. If its value is set to 'Y' the value of all the other checkboxes is set to 'Y' as well. A wrong action does the opposite. It worked well in 4.0. 4.1 it fires again, but instead of the complete list of the items affected only the first item in the list has its set value. When we change the action in "value"- for instance - 'hide' or 'Disable' it works fine once again (that is, affect the full list of items).
    Anyone an idea what may be the problem here?
    Robert.

    Hi Robert,.

    I think you're hit "set of dynamic scripts 4.9 value with multiple affected elements ' documented as behavior change in the APEX 4.1 release notes http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21672/toc.htm#CACFHAFB at the same time Mark Lancaster also blogged about this a few days ago. http://oracleinsights.blogspot.com/2011/09/dynamic-actions-changed-behavior-in.html

    BTW, if you have so many boxes O/N, you can take a look at our "Simple Checkbox" plugin to http://apex.oracle.com/plugins item type

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

  • Dynamic action using the box in a table

    Hello

    I'm using version 5.0, apex

    I created a tabular form and a report at the same table on the same page, in tables when I check a record, the report must refresh and display data for the selected record. Need your valuable advice.

    Thank you

    Infantraj

    Hi Infantraj,

    Infantraj wrote:

    Hello

    I'm using version 5.0, apex

    I created a tabular form and a report at the same table on the same page, in tables when I check a record in the form of tables, the report must refresh and display data for the selected record. Need your valuable advice.

    Thank you

    Infantraj

    You mean you want to filter the report in accordance with the selected line in the form of tables.

    1 create a hidden point having a protected value as no. and put it in the where clause of your report query.

    2. in the box click set the value of this hidden element.

    3. refresh the report region (add a real action-> cooling-> region-> Select your area of report.)

    or better to create example on apex.oracle.com and share identification information.

    Kind regards

    Jitendra

  • How to set the value of QUERY using PL/SQL process?

    Hello

    I use APEX 4.2...
    How to set the value of the REQUEST using process of PL/SQL which lies before the header - where the value of the REQUEST should appear on the URL?

    Kind regards
    Fateh

    You cannot set a value of demand in a PL/SQL block. You can run a PL/SQL block on a request which is the id of a button for example.

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

  • Is it possible to use advanced actions to set the value of the question?

    Hi - I am trying to develop a course of Captivate 4 and wish I could on slide enter advanced use of actions to check the value of a user variable, and if the variable is equal to x then set the value of the question (correct) 1. Is there a system variable, that I can use to define?

    This course is to download a package to an LMS (Moodle) SCORM.

    Ideas/suggestions would be greatly appreciated.

    Unfortunately, Captivate is not currently a way to manipulate SCORM score via advanced Actions and the user or System Variables.

    So that you could have OnSlideEnter check and set the value of a variable, you don't have a way to use this information to force sending a question slide.

  • How to set the value of the point of application using pl/sql in the application process

    Hi guys,.

    I want a global variable (application point) whose value will be set to start when a user logs on to the application. The value will be retrieved from the database by using a sql query. I don't exactly know the syntax to set the value of the point of application in the application process. Also, I want to know what type of enforcement process should I use to set the value of the point of application, when a user starts a session. The value of the point of application varies from one user to the user.

    Help, please.

    I use apex 4.2

    Kind regards

    Waqas

    You can use the application element as a link with his name. That is to say. your point of application is named G_MY_APPLICATION_ITEM, then you can / set of access using: G_MY_APPLICATION_ITEM.

    For example

    BEGIN

    -assign as a variable

    : G_MY_APPLICATION_ITEM: = 'LARRY ';

    --

    -use in a SQL statement

    SELECT WHATEVER_COLUMN

    IN: G_MY_APPLICATION_ITEM

    FROM MY_TABLE

    WHERE USERNAME =: APP_USER

    ;

    END;

    Peter

  • How to set the value of a field from the LOV of another field.

    I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).

    The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.

    When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.

    I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.

    Can you please help? Thank you, Laura

    Laura,

    It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.

    Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.

    1 do the P_STATE ' select list submits the Page.
    2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
    3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".

    This is what will happen
    a. when the State is selected Page will be submitted
    (b) it will take the unconditional branch to himself and save the value of P_STATE
    c. the calculation process / fills the value of the P_PROGRAM element when the page reloads

    Kind regards

  • HOW TO SET THE VALUE TO A PAGE OF AJAX ON DEMMAND PROCESS ELEMENT?

    Hi, I have a javascript that calls an ajax on demmand process , and I need a the ajax process variable value is updated about my page: P2_CONTENT:

    • Here's my javascript call:

    doprint() function

    {

    Apex. Server.Process ("GENTICKET", {pageItems: "#P2_PARAM1"}, {async: false});

    }

    • and here is My ajax on demmand process (GENTICKET):

    BEGIN

    declare

    CONT varchar2 (1000); -the return value is less than this length, I have already checked in my table-

    Start

    Here, I call a DB procedure that fills my data. I verifyed and works nice!

    pro_generate (:P2_PARAM1);


    Here, I select the data obtained in the previous step

    Select tic_text

    in cont

    of t_reim

    WHERE f_type =:P2_PARAM1 ;



    Here, I need to set the value to display in my page field


    APEX_UTIL. SET_SESSION_STATE ('P2_CONTENT', CONT);  -< < < < < that doesn't work. I tried: P2_CONTENT: = cont; but does not


    end;

    END;


    Thanks in advance for the help.

    You can do all this declaratively by using dynamic actions, to try jQuery is like trying to swim before you can float.

    You can influence the value returned from JavaScript with this PL/SQL:

    HTP. PRN (cont);

    Then include a function of success (as described in the previous link) to run code like:

    success: function {(pData)

    $s ('P2_CONTENT', pData);

    }

Maybe you are looking for