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

Tags: Database

Similar Questions

  • Date and form validation if java is disabled and obligation to hide the text areas to start

    Hi, currently my web page has a form on it where it select where there is a date entry and a speaker, and two text boxes where only is visible depending on the results of the verification of availability.

    Here is an example of the part of the shape of my page.

    Screen+shot+2011-04-06+at+5.32.32+PM.pngScreen shot 2011-04-06 at 5.32.54 PM.pngmy form with spry validation. no date or selected speaker.

    I have a few questions.

    First of all:

    When my page loads first the speaker's text non-reserved area is visible and the speaker is reserved textarea is hidden.  I guess that's because loading my page it refers to my database and nothing is so the speaker is non-reserved textarea is visible and the speaker is the placeholder text is hidden.

    How to get two text boxes to hide on start to the top of the page?  Here is my php code to the beginning of the model.

    ==============

    <? php require_once('.. / Connections/conEmjMarketing.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }


    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);


    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }



    @mysql_select_db ($database_conEmjMarketing, $conEmjMarketing);

    $query_rsCurrEvents = "SELECT speakerRequested, event, place, datebooked, startTime, endTime OF booking ORDER BY datebooked ASC";

    $rsCurrEvents = mysql_query ($query_rsCurrEvents, $conEmjMarketing) or die (mysql_error ());

    $row_rsCurrEvents = mysql_fetch_assoc ($rsCurrEvents);

    $totalRows_rsCurrEvents = mysql_num_rows ($rsCurrEvents);

    $query_rsCurrEvents = "SELECT speakerRequested, event, place, datebooked, startTime, endTime OF booking ORDER BY datebooked ASC";

    $rsCurrEvents = mysql_query ($query_rsCurrEvents, $conEmjMarketing) or die (mysql_error ());

    $row_rsCurrEvents = mysql_fetch_assoc ($rsCurrEvents);

    $totalRows_rsCurrEvents = mysql_num_rows ($rsCurrEvents);

    $query_rsCurrEvents = "SELECT speakerRequested, event, place, datebooked, startTime, endTime OF booking ORDER BY datebooked ASC";

    $rsCurrEvents = mysql_query ($query_rsCurrEvents, $conEmjMarketing) or die (mysql_error ());

    $row_rsCurrEvents = mysql_fetch_assoc ($rsCurrEvents);

    $totalRows_rsCurrEvents = mysql_num_rows ($rsCurrEvents);



    @mysql_select_db ($database_conEmjMarketing, $conEmjMarketing);

    $query_rsSpeakers = "SELECT speaker speaker speaker ORDER BY ASC";

    $rsSpeakers = mysql_query ($query_rsSpeakers, $conEmjMarketing) or die (mysql_error ());

    $row_rsSpeakers = mysql_fetch_assoc ($rsSpeakers);

    $totalRows_rsSpeakers = mysql_num_rows ($rsSpeakers);


    $colname_rsAvailability = "-1";

    If (isset($_POST['speakerRequested'])) {}

    $colname_rsAvailability = $_POST ['speakerRequested'];

    }

    $colname2_rsAvailability = "-1";

    If (isset($_POST['datebooked'])) {}

    $colname2_rsAvailability = $_POST ['datebooked'];

    }

    @mysql_select_db ($database_conEmjMarketing, $conEmjMarketing);

    $query_rsAvailability = sprintf ("" SELECT speakerRequested, datebooked FROM reservations WHERE speakerRequested as AND bookings.datebooked %s = %s ", GetSQLValueString ('%'.") $colname_rsAvailability. ('%', 'text'), GetSQLValueString ($colname2_rsAvailability, 'date'));

    $rsAvailability = mysql_query ($query_rsAvailability, $conEmjMarketing) or die (mysql_error ());

    $row_rsAvailability = mysql_fetch_assoc ($rsAvailability);

    $totalRows_rsAvailability = mysql_num_rows ($rsAvailability);

    ======================

    The second question:

    My form works very well with spry validation.  Validation of date format for the date text box work, validation for the speaker select jobs.  My question is how to validate that the date is a valid date and speaker selection box is not empty if java is disabled?

    Where do I put this code? How do I call? How can I show that the field is in error?

    Thank you winrol

    If you return to the solution I created for the date, you will see that the error messages are displayed by elseif clauses. You must do the same for the message of the speaker.

        Please select a Speaker.    Please select a Speaker.
    
        Please select a Speaker.
    
    
  • Tabular form using dynamic Action set

    I have a tabular presentation created using APEX_ITEM.

    That is to say. APEX_ITEM. SELECT_LIST_FROM_LOV(3,NVL(D.FK_ATTENDANCE_CODE,'%null%')

    I want to use a dynamic Action to set the value based on the value of a hidden page element.
    I created a Page element 'P1358_HOLD_ATTENDANCE_CODE', and I can see he's up to the correct value.

    I tried to create a dynamic Action (run Javascript) to set the form of tab selection list item (f03), but it does not work.

    Here is what I tried:

    var line = $x_UpTill (this.triggeringElement, 'TR');
    var otherElement = $(' input [nom = "f03"]', ligne) [0];
    otherElement.value = $x('P1358_HOLD_ATTENDANCE_CODE').value;

    Any ideas?
    I know, as a backup, I could put the ID = when creating elements in a tabular form so that all the lines are different, but I hope that the JQuery can do it more easily.
    Thank you

    Did change selection that I said fix the prob?

    If this isn't the case, him DA is without a doubt was fired at your event?

  • 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

  • helps with the update of tabular form using dynamic Action

    Hello world

    I'm trying to simplify a tabular presentation based on a collection so that it uses more dynamic actions that will be ultimately more easy for us to debug.

    Our 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,
    c003,
    c004,
    c005,
    c006,
    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,
    c014,
    c015,
    c016,
    c017 additional_measure_flag,
    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 fins_attached,
    apex_item.textarea(28,c028,3,null,'class="hms_info"','f28_'||seq_id,'') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','class="hms_info"''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,
    c030,
    c031,
    c032,
    c033,
    c034,
    c035,
    c036,
    c037,
    c038,
    c039,
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;" class="hms_info"
    ',null,null,null,'f40_'||seq_id,'')  HMS_AREA_CODE,
    c020 hms_flag,
    apex_item.text(41,TO_NUMBER(c041),5,null, 'class="hms_info"','f41_'||seq_id,'') Sale_Price,
    c042,
    c043,
    c044,
    c050 shark_flag
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id 
    

    Note that many of the fields referenced are c0xx... and really serve as place holders so that the c0xx = fxx.  It's awkward, like every time that a movement or move a column, it upsets the fxx value.   So, I tried to use the CLASS if possible.

    I have a dynamic action that had worked perfectly, until I moved one of the columns... and now, it seems not to work when I'm trying to update anything with the HMS_INFO or SHARK_INFO class.  Grrr.

    dynamic action: CHANGE COLUMN

    event: CHANGE

    selection type: JQUERY SELECTOR

    jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], input [name = "f24"], textarea [name = "f28"], select [name = "f40"], input [name = "f41"]

    true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id

    true action2: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value

    true action3: run pl/sql,.

    declare
      v_attr number;
      v_seq number;
    begin 
      v_attr := 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_attr,
                                      :p110_value);
    end;
    

    the safis_collections.update_column package is:

    procedure update_column(v_seq in varchar2,
                            v_attr in number,
                            v_value in varchar2)
    is
    begin
       apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
                         p_seq => v_seq,
                         p_attr_number => v_attr,
                         p_attr_value  => v_value);
    apex_debug.message('updated column. seq='||v_seq||' attribute='||v_attr||' with '||v_value);
    
    end;
    

    I wonder if there is a way to make the CLASS in my JQUERY SELECTOR, so something like reference entry [class = "HMS_INFO"], input [CLASS = "shark_info"]... and if so, what happens if a single item in the class is an option button and the other is a selection list and the other an element?

    is it possible to not have to rely on the fxx.  Currently, my collection columns map to the investment in the form of tables... sense, c024 = f24... because I placed c024 to be the 24th editable column, but this seems crazy.  Is there a simpler way?  I'm just learning class, then maybe there is something extra, or rather that I could use...

    any help is appreciated.   Thank you!

    I think I have solved the problem.

    dynamic action: CHANGE COLUMN

    event: CHANGE

    selection type: JQUERY SELECTOR

    jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], .shark_info, .hms_info

    true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id P110_VALUE POINT KEYS

    true action2: run pl/sql code

    begin
    null;
    end;
    

    items to submit page: P110_ID

    true action3: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value P110_VALUE POINT KEYS

    true Action4: value: PL/SQL expression, the value P110_SEQ = rtrim (substr(:P110_ID,5,4),'0 ') CONCERNED POINT: P110_SEQ

    true Action5: run pl/sql code

    declare
    
      v_attr number;
    
    begin
      v_attr := TO_NUMBER (SUBSTR (:P110_id, 2, 2));
    
      apex_collection.update_member_attribute
                       (p_collection_name      => 'SPECIES_COLLECTION',
                        p_seq                  => :P110_SEQ,
                        p_attr_number          => v_attr,
                        p_attr_value           => :P110_VALUE);
    
    end;
    

    items to submit page: P110_ID, P110_VALUE, P110_SEQ

    true action6: refreshment area

    I think it is the combination of the use of pl/sql expression to calculate P110_SEQ and also your tip on TRUE ACTION2 to submit the item that did the trick.

    Thanks Kofi, for your patience and help!  It was great.

    Ugh... on the next issue.

    Karen

  • Dynamic Actions are disabled in Internet Explorer

    Hi people

    I am a new user to a remote site, completely technique. I finally disagnosed all the problems she reported because the dynamic actions seem to be completely disabled on his PC. It runs Internet Explorer unfortunately. I'll try to persuade her to switch to a real browser, but as it is a laborious process I would be sure that it will solve his problem before undertaking this exercise.

    My problem is that I did not know that das could be disabled. I ran the same application on my PC on using IE and it works fine. So I don't know if the problem is browser related or windows related, or maybe even a firewall or a well-meaning, but overzealous anti-virus/spyware program. I'm not aware of a configuration facility that would allow the application to work to a large extent with the only obvious exception being that not even the simplest "hide the element' dynamic action is triggered.

    The user is running IE 8, on a hosted Apex v4.0. Can anyone suggest what could be disable all DAs for this user frustrated and distraught developer?

    Thanks in advance
    Concerning
    CS

    Have check preferences to see if JavaScript is disabled.

    Jeff

  • Deleting a tabular form with dynamic Action

    Using Apex 4.2

    Is it possible to delete a row in a tabular presentation using dynamic measurements.

    Right now my sql report contains html and javasript for a button Delete
    '<input type="button" name="Delete" value="Delete"  onclick="del(''delete'','''||a.applicationname||''')">' A2
    I then javascript in my page header
    function del(Request, Name){
    var answer=confirm("Do you really want delete application "+Name+"?\r\n* Provider assignments will be deleted\r\n* Application objects will be deleted\r\n* DB-roles will be dropped\r\n* DB-views will be dropped\r\n* User-synonyms will be dropped");
    if (answer==true) {
      document.getElementById('P10_APPLICATIONNAME').value = Name;
      doSubmit(Request);
    }
    }
    Finally, I have a process page to see the button delete that fires when demand = clear

    Is there a better way

    Gus
    Published by: Gus on January 24, 2013 C 01:43

    Published by: Gus on January 24, 2013 C 01:44

    Head of /Slaps
    Of course, Yes. The text is just interpreted as... Text. I was confused with your previous answers where you said nothing replaced, I thought it was empty. Stupid :)

    I changed some things in your page:
    report-> the link of the DISP_SEQ column: replace CUST_ID ZZZ (just for testing of course)

    Dynamic action:
    delete action to confirm
    Created a new action, run the javascript:

    return confirm("You are about to delete "+$v("P8_CUST_ID")+" ?");
    

    Since confirm returns true or false, returning the value will allow to more to stop or continue actions (as when you would do a "return false;" in a function for example).
    To prove that, I added a true other action after the confirmation of the type run javascript, with an alert in it. It will show when you press ok, and he used when you press Cancel.

    My previous point about where appname: If you'd put an img tag in your link TEXT, then a tag IMG is encapsulated in the anchor tag. When you then bind a dynamic Act of shooting on 'a.delete', the triggeringElement of course would be the anchor tag. Then you can not reference the appname using 'this.triggeringElement.appname' because there is no appname on the anchor element. Instead, it's on the embedded IMG tag.
    On your example page you have this in your link text, in your IMG tag

    appname="'||#CUST_ID#||'"
    

    and this, in the attributes of your link

    id="#CUST_ID#"
    

    The correct value is put in P8_CUST_ID, because the value is taken from the ID attribute of the anchor tag. In this case, you can remove the attribute appname on the text of the tag IMG link.
    If you were to remove the link id attribute value and use the appname attribute, then you will need to adjust as indicated in my previous post.

  • Dynamic action on upper and lower region button

    I have a dynamic action where when I click on my first button (add a LINE) I want a 2nd button to be disabled (DELETE).  My second button as the button position "Up and down the region", so that the button is displayed above and below my report.

    After you create the dynamic action, when I click on my first button (add a line), the top of the page button DELETE is disabled, but it does not neutralize my button at the bottom.  When I set up my action dynamic and he say what button to assign, it only shows a button in the list of the button (MULTI-RANG-DEL).  In other words when I set up the button like "Up and down the region" it does not show 2 as the selection in dynamic action buttons, one button.

    So how can access this button down in my dynamic action?

    Using APEX 4.2.4

    Thanks in advance!

    John

    jfosteroracle wrote:

    I have a dynamic action where when I click on my first button (add a LINE) I want a 2nd button to be disabled (DELETE).  My second button as the button position "Up and down the region", so that the button is displayed above and below my report.

    After you create the dynamic action, when I click on my first button (add a line), the top of the page button DELETE is disabled, but it does not neutralize my button at the bottom.  When I set up my action dynamic and he say what button to assign, it only shows a button in the list of the button (MULTI-RANG-DEL).  In other words when I set up the button as "The top and bottom of the region", it shows 2 buttons as choices in dynamic action, a single button.

    So how can access this button down in my dynamic action?

    Use the property Class CSS button button to add a class name (for example delete ) for the button. Change the DA Sélection Type selector to jQueryand jQuery Selector to something like button.delete (the exact required selector will depend on the template theme and used button).

  • Dynamic action to hide and show a button

    Hello

    How to set the dynamic Action on an item Page (P4_DATA)

    When the value is 0, then show the button (P4_BTN)
    When the value is 1, then hide the button (P4_BTN)

    I have a dynamic action that work very well, but only for the display option, does not work for a button


    Thank you

    You must add a handful to the button so that you can access in the Action(make sure that you have #BUTTON_ATTRIBUTES# substitution string referenced in your button template) dynamics.
    in the attributes of the button, specify

    ID = "MY_BUTTON".

    MY_BUTTON is just an example

    "Now, when you choose assigned to the dynamic Action of the elements, you can choose" * selector DOM * "and specify MY_BUTTON"

  • Paging in table with dynamic action form

    Hi all
    I'm having a tabular presentation with 13 columns. I put paging Scheme as, "rank rank 1-15 16-30 in the list of selection (with pagination). And I activated the partial page refresh (because I have a skin and show the process of tabular presentation IE.) When the user presses the button add tabular form will display, otherwise it will be hidden.) For the form of tables, I will have a dynamic action for disabling some fields according to another value of the column. When I run the page in a table is hidden and when I hit Add button tabular presentation displays with disabled columns. But when I select the next in the form of tables button it displays the columns without turning off the column. How to disable, push the button even as previous and next.

    Thanks for the help!

    Hi Christine,

    Sorry for the late response has been far from forum for 3 days!
    See if it works now!

    I created a new action dynamic dis_num_on_next_prev that runs the following JavaScript Code:

    $('.myClass').each( function() {
       if( $(this).val() == 'Number' ){
         $('#f05_' + $(this).attr('id').substr(4)).attr('disabled',false);
         $('#f05_' + $(this).attr('id').substr(4)).css("background-color", "white");
       }else{
         $('#f05_' + $(this).attr('id').substr(4)).attr( 'disabled','disabled');
         $('#f05_' + $(this).attr('id').substr(4)).css("background-color", "yellow");
       }
    });
    

    The point of firing is event after refresh of the presentation table region.

    I hope that helps!
    Kind regards
    Kiran

  • Cannot perform the insert/update on the form of tables, due to the dynamic action

    Hi all

    I created a dynamic action that calculates multiple cells in a table.

    This feature works well, when I change the value of the associated cell then the computed value is changed by the dynamic action.

    But I am not able to insert or update the line in a table when the dynamic action is enabled. When I put the condition 'Never', then the line is inserted or updated without any problems.

    All guess where is the problem?

    Apex version: 4.1.1.00.23

    Jiri

    Nina wrote:

    I don't know why the 123,40 value (or other) is set to the next item in line (f09, fsc, etc.)
    >

    What is hidden and generated Apex elements are always included in the last cell (td) of the line. Thus, it has nothing to do with the next item, only the last cell.
    If you see the last cell of the 888 Page you will see probably the same type = "hidden" entries here also.

    Your problem is not related to the HTML fragment to the last cell in the row showing all those extra items, it's somewhere else.

    Oh, here comes the jQuery selector:

    var clickedRow = $(this.triggeringElement).closest('tr');
    
    $(clickedRow).children('td[headers="SAL"]').find("input").val(myCalculatedTotal);
    

    SAL, COMM, w/e. here you will find the TD with headers = "COMM" and all the input fields and the value of all the entries in total calculated. Your selection is not precise enough in this case.
    So, target the specific entry.
    With the code example:

    
    
    
    
    
    
    
    
    

    change the switch on

    $(clickedRow).children('td[headers="SAL"]').find('input[name="f08"]').val(myCalculatedTotal);
    
  • Dynamic action for 2 fields in a table

    Greetings!

    I have a requirement where I need to disable/enable a field in a tabular presentation for a specific record based on the value of another field in the tabular presentation for this record.

    In a concern for discussion, in my particular case - if FISHCOUNT > 1, then the LENGTH must be disabled. If count < = 1, then the LENGTH must be enabled. It should disable it only records where FISHCOUNT > 1.

    I would do it with dynamic action and I learned through this forum (thank you!) that I can use jQuery for the event (when) the section of the dynamic action.

    So that the part would look like:

    Event: change
    Selection type: jQuery Selector
    jQuery Selector: td [headers = "FISHCOUNT"] select
    Condition: above
    Value: 1

    So far so good. But where I'm stuck is how to reference the LENGTH field of the tabular form in the actions of TRUE and FALSE, so that when the change in the event product (FISHCOUNT), the LENGTH is disabled if FISHCOUNT > 1, or LENGTH is enabled if FISHCOUNT < = 1.

    SEO so the scope of the CASE of my tabular presentation in the actions of True and False, that's where I need help.

    Thanks in advance!

    I use APEX 4.1.1

    John,

    You can do this by creating another dynamic action with the event 'Front Page submit' ("framework events" section).
    With real action that executes javascript, load the page uncontrolled.

    $("input:visible:disabled").prop("disabled",false);
    

    This will select all elements disabled entry visible on the page and remove the disabled property.

  • 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