Radio button on dynamic Action of change

Hi all

I have an example of setting on apex.oracle.com

Workspace: RWTEST

username:testuser

PW:test

(Page 5)

I have 2 test items.  We have a radio beside him group with'm ' for the disappeared and "N/a" for not not applicable.  The other has checkboxes with the same values.

To simplify things, I just added a dynamic action that takes the value of the test points and multiply by 3.  However, when you click on'm ', the value should say 'cannot calculate.  This works very well for the Group of radio buttons and checkboxes.  However, for radio group, when you lorsque vous decochez uncheck'm ', the value is not recalculated. The value of the box is.  I know the option buttons are not supposed to be unchecked and I had to add a function in the html header to allow the radio button to be deselected.

Can someone explain what to do if the value of the Radio says "can not calculate" only when am ' radio button is selected and why is this the case?  I guess it's something with the function that I have in the page header.

Thank you

Brett

If I understand your post, you want to print 'cannot calculate' when the radio button is selected for "M" or when you uncheck radio button.

To do this you must trigger DA After unchecking the option button.

function changeRadio (p) {}

{if(State[p.Name]&&State[p.Name]==p.value)}

p.Checked = false;

State [p.Name] = ";

$(p).trigger('change');

}

else {}

p.Checked = true;

State [p.Name] = p.Value;

}

Returns true;

}

Concerning

Bartosz Ostrowski

Tags: Database

Similar Questions

  • 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

  • Button and dynamic Actions

    Hi all
    I need to hide/show buttons with dynamic action, in the Actions of true/false, I tried with the object DOM and selector withjQuery, but it does not work.

    Can someone help me, please?
    Sergio

    Sergio,

    As you guessed, buttons are currently not well supported with dynamic actions, something we hope to treat in the future. However, it is possible to work around this problem. First of all, I assume that you use the "Template" based keys: and not "HTML". The "HTML" buttons automatically generate an ID set to the value of the button name, so if you tried to use "DOM object" with the value of button name, then this should have worked. The "HTML Code" buttons are certainly easier to control with dynamic actions, however if you're set on using the buttons "Template" based, it is a bit more complicated, but still possible.

    The fundamental problem is that "Template" based button generate an ID has the default value, and the simplest for dynamic steps control the individual buttons (and any element) is by referencing by ID. In addition, there is no substitution string available in the template of the button to the name of the button (only LINK, LABEL, BUTTON_ATTRIBUTES, and BUTTON_ID), so you can't do this on the side of the model. (I know there is a BUTTON_ID, but it is the internal ID, and it is a different set of challenges, I don't think it's better to continue to do this). If we want to give the button ID, the name of the button. To do this:

    • Make sure that the substitution string #BUTTON_ATTRIBUTES # is included in your button template, something like:

      
      


    • In your button, verify that the template is selected, and then you have to specify the ID attribute, whose value can be given in the field "attributes button" the same as the name of the button:

      id="my_button"
      

      You encounter so, essentially, to reproduce the name of the button, as well in the name of the button and the added value of ID ideally, you'd be able to do this in the model, as explained, but this is not possible.


    • Now, you can reference this button against the 'affected elements' dynamic actions, using a selection of type "Object DOM" and the value of the button name / ID specified.

    Sorry it's a bit lengthy. As explained, based HTML buttons are certainly easier currently, you don't have to worry about all that extra work to get the generated ID, it's right there already. And in a later version of the SUMMIT, we want to allow just completely declarative selection of dynamic action buttons that work, without having to make these types of additional solutions.

    Hope that helps.

    Anthony.

  • Dynamic action on change the question in table form

    Hi guys!

    I wanted to add dynamic action on the (tabular) changes to execute the PL/SQL that checks if the form in a table column has been changed and if yes go into text field walue Y or N. It does not work... and I don't know why. If I create a validation with this PL/SQL, it works. Can you help me?

    DA:

    On change - tabular

    PL/SQL;
    DECLARE
       nazwa     VARCHAR2(4000);
       counter   NUMBER := 0;
    BEGIN
       FOR i IN 1 .. apex_application.g_f08.COUNT
       LOOP
        SELECT NAZWISKO INTO nazwa FROM SPR_META.M_UZYTKOWNICY WHERE NAZWA_UZYTKOWNIKA = apex_application.g_f02(i);
        
          IF wwv_flow_item.md5(nazwa) <>  wwv_flow_item.md5(apex_application.g_f08(i)) THEN
            counter := counter + 1;
          END IF;
       END LOOP;
    
       IF counter > 0 THEN
       :P5_IS_TABULAR_FORM_CHANGED := 'Y';
       ELSE
        :P5_IS_TABULAR_FORM_CHANGED := 'N';
      END IF;
    
    END;
    Page to submit items: P5_IS_TABULAR_FORM_CHANGE

    What's wrong?

    With respect,

    PsmakR

    In my opinion, a way more simple identify as change is to have just a handler which fires if any editable in tabular form field is changed.
    No connection to the server, without ajax. Do these controls PLSQL when/before submitting the page.

    $('#REGION_STATIC_ID').find('input,select').change( function(){
       $s('P5_IS_TABULAR_FORM_CHANGED','Y');
    });
    

    REGION_STATIC_ID's static ID region

  • How can I get checkboxes, radio buttons and other formdata to change what is displayed?

    Hello ,.

    I am trying to build a website that will allow users to choose the items and browse throu selected item types while having a box showing the current total price and other data, but with out having to press the button submit, in fact I don't want a button "submit" to all the .

    Are there some tutorials or examples of how this can be / is?

    Any help would be nice

    Thank you.

    randijay89 wrote:

    THX guys.

    And lying that I really made a mistake, well I guess that the submit button would be renamed "order".

    Ah, cash! Looking for a shopping-cart-like solution?  Then search the Web for coldfusion ajax basket.

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

  • 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

  • Prevent fireing "Submit BeforePage" - dynamic Action if I click the button CANCEL

    Hello
    I create a dynamic Action on the event "before submitting the Page" which shows me a "Please Wait" - window, if I submit a page. It works very well.

    But if I click the button CANCEL, dynamic Action runs as well. Because of that I put the status "request is NOT contained in the Expression 1" and 1 Expression I put BACK, because demand from the button CANCEL is BACK. Unfortunately it is running if I press the button CANCEL.

    The action is "executing JAVA-code" and the code is:
    $x_Show('AjaxLoading');  
    window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
    What's not here?

    Kind regards
    Mark

    Hi Mark,

    If you change your button 'CANCEL' to a "Redirect to the page of this application" button, the page is not submitted and does not fire the event "before submitting the Page.

    Or if you want to stick with the shipment, you can check for this.data in JavaScript code because that will contain the value of the application to send it. So, for example, you could use

    if (this.data != "ZURUECK") {
      $x_Show('AjaxLoading');
      window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
    }
    

    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

  • Apex 5.0 "session state protection violation" during the change of display only value point in dynamic action.

    The following feature gives us a message "session state protection violation", after we migrated our application from Apex 4.02 to 5.0.

    For example, in apex.oracle.com: https://apex.oracle.com/pls/apex/f?p=50676:1:

    Whenever the value of the input field changes, the URL to test changes. This is done in a dynamic action of 'change' on the version field. The action of the set value changes the value of URL to test.

    When the page is sent to the error message is displayed.

    1. Why do we get this message in Apex 5.0 and not in 4.0.2?

    2. What is the way to do this in the Apex 5.0?

    Thank you

    René

    Just try save session state - no.

  • How can I change a checkbox with a radio button?

    I downloaded a pdf file in Adobe Acrobat Pro DC.  The system automatically made some boxes as boxes and others like radio buttons.  I need to change the boxes to radio buttons as well as a selection can be selected on the lines crossing rather than the columns down.

    Hello well,.

    By default, EchoSign would read the fields of the form already added in the document (if available) and are presented in the same way. If you don't need boxes, then you will need to remove them and add radio buttons with EchoSign himself.

    -Usman

  • can radio buttons show/hide the info in an interactive pdf?

    Hello. I have a question to which I have been faced with during some time... hoping someone can help.

    I create a document in InDesign CS6. It's basically a guide with a joint questionnaire.

    I have forward and back buttons work properly - so that they take you from one page to another.

    However, the more difficult question is I want to have interactivity with the use of radio buttons and eventually the check boxes. Thus, for example, on page 1, I have a question multiple choice where there are three choices. Clicking the wrong answer shows a block of text saying 'no it's wrong' and clicking on the appropriate radio button shows the words "Yes, correct."

    I have created three blocks of text and make it into a multi-state object.

    Three problems:

    1. option buttons seem to be the option for "the State" in the buttons and Forms dialog box
    2. even if that were the case - the State Road seems to be only swf, non-interactive pdf form - is there a way to change this?
    3. script assuming that there IS a way, everything can be put in place so that instead of using radio buttons I have use of check boxes that only give the correct answer if the correct check boxes are selected.

    I would stick to indesign to do this, however, I think that the option is perhaps more suited for this problem?

    Many thanks in advance,

    SunsV

    1 - make 3 images and convert it into boxes option...

    Text blocks 2 2-make (Yes, his right) (No, the wrong) and convert it to buttons - rename it (Righ, evil)

    3 - Click on each radio button and apply action: Show/Hide button and form and on the visibility to activate the globe eye for buttons wrong or right.

  • value of the element is not common when used in dynamic action

    I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.

    When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.

    How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?

    I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.

    dacoellov wrote:

    I'm learning the 5 apex and I wanted to create a page that would update the fields in a record by entering the unique id of the recording using a dynamic action with plsql.

    When I click on the button update the value of the element of the text uses the previous value and not the input current. The 'works' update, but the ID values are not appropriate.

    How can I make sure that when I click on the update button, the dynamic action will get the current value of the text element and not the previous (when the page was submitted)?

    I created a quick demo or what I was testing in apex.oracle.com and always gives me the same result.

    What dynamic action event and what types of action are involved here? Provide details, or better yet share identification information of developer comments for the apex.oracle.com workspace so that we can see the demo.

    If the dynamic action executes an SQL statement or a PL/SQL process on the server that requires page updated element values in session state, specify these items as part of dynamic action Page to submit items .

  • Redirecting to a page after the dynamic action

    I stated a dynamic action of a button (its dynamic action of pl/sql). After its been pressed it fills a line in a table.

    I want to redirect it to another page, once completed the dynamic action. How can I do?

    PL/SQL D.A. have an indicator expected result, make sure that is selected.

    Then, action of true of JavaScript:

    Window.Location.href = ' & APP_ID.: 1: & APP_SESSION. :::'

    or simply add a real action of page submit and manage the re - run by a branch of the page?

  • The award of radio buttons to the signatories Echosign.

    I have a form of EchoSign, which must be completed by the signer1, but cannot be modified by the subsequent signatories. I put all the fields must be attributed to the signer1, but the default value of "Anyone", radio buttons and I can not change this setting.

    Hello Paula3869,

    You can assign the specific role of radio buttons according to the signer by double clicking on it and selecting role as E-sign of Signer1, 2 as needed. Here is the link for reference:

    https://helpx.Adobe.com/content/help/en/document-cloud/help/field-roles.html

    Kind regards

    -Usman

  • can the dynamic action call function already?

    I have a dynamic action that keeps a total on the screen for two columns of numbers.

    Now I need to have a total cumulative where X column > column Y. I don't know if I can do that in an expression javascrip t. I had hoped to call a JavaScript function that returns the value... but the function does not return anything right now.


    This could be a thing of syntax sillly - I hope so, but before you spend more time looking for in this I but I would like to ask - is it still possible?

    Assuming that column1 is apex global table 1(name=f01) and column 2 picture 2 (name = f02).
    Name of the item page that show the total operation: P100_TOTAL
    Dynamic action
    Event: change
    Triggered by: jQuery selector
    selector: * input [name = f01], input [name = f02] *.
    Event type: javascript

    var total = 0;
    /* Go up untile report table */
    var this_table = $(this.triggeringElement).parents('table:first');
    
    /* Loop through each report row */
    this_table.find('tr').each( function(){
    var colX = ( $(this).find('input[name=f01]').val() == ' ') ? 0 : parseFloat(parent_row.find('input[name=f01]').val() );
    var colY =  ( $(this).find('input[name=f02]').val() == ' ') ? 0 : parseFloat(parent_row.find('input[name=f02]').val() );
    /* Add colX if its greater than Y */
    if ( colX >colY)  {
       total += colX;
      }
    }
     /* Assign Page itme with total*/
    $s(' P100_TOTAL',total);
    

Maybe you are looking for

  • Re: My Satellite L500-19Z does support DDR3 memory?

    My Satellite L500-19Z does support DDR3 memory? In my view, it has 4 GB (2x2gb 200 pin 1.8 v DDR2 SoDimm PC2-6400) memory standard (800 MHz I think). I want to move to 8 GB and I saw the following offer: -. 8 GB (2x4gb) 1333 Mhz PC3-10600 memory Kit.

  • Minimum external resistance NI 9269

    Hello I'm trying NI 9269 voltage output. According http://digital.NI.com/public.nsf/allkb/5FDA9006283BB603862578B5006A80E7NEITHER 9269 can take the smallest resistance at 10 k ohms (it's a condition for NI 9263) but the value is not reported. What is

  • Computer to do its own thing

    We have a home group to share on our network.  We enabled streaming and also the detection of network.  Bad idea.  Now, he seems to be crossed or copied files.  Photos and videos are put in folders and hidden behind HABs cards or other items, and the

  • Trojans: ATI Catalyst Control Center

    I have a Dell XPS 8300 with Windows 7. My computer has been infected by several Trojan horses, yesterday. Whenever I've scanned with different software, I'd find more Trojans. My computer works well then I hope it's clean now, but will continue to mo

  • 7 pro with product key but no COA

    If I had to buy authentic 7 Installation Pro discs and an authentic and "NEVER used" 7Pro "Product Key", I would limit (I guess I mean activation, etc) if I do not have a certificate of authenticity?  (The seller messaged me that he has lost it.) In