Dynamic action on tabular forms fields

Hello guys.
As I can see on the tabular form's fields I can't perform dynamic actions. What I want is to have a select list item when at the event Change it changes the values for all the records in that report. For example if I have 40 records in that tabular form and I change the value from "Open" to "Close to the field called Status, I want to see that change (Status value from "Open" to Close") reflected in all the rows of that tabular form. Is that make sense?
Thank you, Bernardo.

Hi Bernardo,
There are several ways to accomplish what you want.
- You can create a PL/SQL procedure to handle an update on all rows based on the value of your changed column value. I once wrote a blog post that might help you with that:
http://vincentdeelen.blogspot.nl/2013/06/custom-multi-row-processing-using.html
-You can create a dynamic action with javascript or jQuery to handle the change event.
The first option is more secure since it's handled by the database, the second one is simpler and can instandly set all the entire column for all displayed rows, without the need to refresh your tabular form, or your entire page. For a secure working you should however have some validation at the database end. Also I think it is not possible to set the values for rows that are not displayed, that again would require some PL/SQL for handling.
If you need any help setting up the dynamic action, please put up an example on apex.oracle.com.
Regards,
Vincent

Similar Messages

  • Dynamic Action on tabular form: to auto set value for all changes rows

    Hi All:
    I am using APEX4.2.3 and I am not very familar with JQUERY or Javascript.
    I am having a tabular form to support Update and Delete action. The tabular form has 4 columns:
    Column A: ID                      (Number)     : Read-only column
    column B: Name                 (Varchar2)   : Editable
    Column C: Age                    (Number)     : Editable
    Column D: ChangeFlag      (Varchar2)   : Read-only column                             ==> however, I want this column been automatically upldated by my APEX application
    Here is the requirement: First user update Column B, or C or both for # of rows; then user click "Save Change" button. For ALL updated rows, I need to automatically update Column D with below logic:
    For a given row,
                   IF Column D IS NULL  THEN
                         set value = 'M'                           -- M means modified
                   ELSE --- column D has a value already
                        IF last character of Column D is 'M', THEN
                               don't do anything;
                        ELSE
                              set value of D = existing value + 'M'                       (here + means concatenate
                       END IF;
                END IF;
    I thought this can be done by creating dynamic action on tabular form ... I have researched this on this forum and can't find a good match example ..
    I know I can implement this using a DB trigger; however, I want to learn if this can be achived via Dynamic Action.
    Thanks!
    Kevin

    Hi Expert:
    Anyone can offer any direction or help on this?
    Thanks!
    Kevin

  • Dynamic action on tabular form

    Hi all,
    I'm working on a page with a tabular form. Based on the value of a radio button group, some of the columns has to be hidden. I have some experience with dynamic actions, but not in conjunction with tabular forms. I guess I have to use a jquery expression, but that's another area I don't have any experience in...
    Can someone help me or give me some directions? I'm on Apex 4.1
    Tom
    Edited by: Tom van der Duin on 22-okt-2011 12:02

    Hi there,
    I am using Apex 4.0 and it seems to generate tabular forms like this:
    <th id="START_DATE" class="header"> headings
    <td headers="START_DATE" class="data" style=""> data cellsSo, you can use the Javascript code below to hide and show a column based on its name:
    function hideShowTabularFormColumn(name, show){
      if(show) {
        $("td[headers='"+name+"']").show();
        $("th.#"+name).show();
      } else {
        $("td[headers='"+name+"']").hide();
        $("th.#"+name).hide();
    onsomesortofevent="hideShowTabularFormColumn('START_DATE', false);"Note that, even hidden, the fields will still be submitted.
    Luis

  • Dynamic actions in tabular forms

    Hi,
    i have 4 columns in tabular forms.
    emp_code emp_name emp_position emp_status
    whenever a user enter the emp_code
    the emp_name,emp_position and emp_status should be automatically displayed.
    i try to use dynamic actions to populate the emp_name , emp_position, emp_status.
    but i cannot identify which columns / item to use since its a tabular forms.
    can anyone help ?
    thanks
    regards
    jerry

    here's what you can do for your situation
    <li>Create an AJAX Callback process(PLSQL type) in your page that is similar to
    DECLARE
      lc_result XMLTYPE;
    BEGIN
       SELECT XMLELEMENT("COL"
                                     ,XMLELEMENT("COL1", wwv_flow.g_x01)
                                     ,XMLELEMENT("COL2", LPAD(wwv_flow.g_x01,10,'0'))
                                     ,XMLELEMENT("COL3", RPAD(wwv_flow.g_x01,10,'#'))
                                     ,XMLELEMENT("COL4", 'blah blah')
                                   ) RESULT
      INTO lc_result
      FROM DUAL;
        OWA_UTIL.MIME_HEADER('text/xml', false);
        htp.p('Cache-Control: no-cache');
        htp.p('Pragma: no-cache');
        OWA_UTIL.HTTP_HEADER_CLOSE();
        htp.p(lc_result.getstringval());
    END;This returns an XML with the rows data. I have just used some simple processing of the input data in this case, but you can modify it for your need
    <li>Then have a Dynamic Action that is triggered on change of the f01 input field
    //value of triggered item
    val = $(this.triggeringElement).val();
    //Call Ajax Callback process
    var a = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=FETCH_ROW',$v('pFlowStepId'));
    a.addParam('x01',val);
    X = a.get('XML');
    //Obtain data from returned XML
    col2 = $(X).find('COL2').text() ;
    col3 = $(X).find('COL3').text() ;
    col4 = $(X).find('COL4').text() ;
    //Set items
    this_row = $(this.triggeringElement).parents('tr:first');
    this_row.find('input[name=f02]').val(col2);
    this_row.find('input[name=f03]').val(col3);
    this_row.find('input[name=f04]').val(col4);This sends the f01 field(triggering source) to the PLSQL that returns the data in XML format for 3 other columns and sets those columns.
    Hope that answers your question.

  • Dynamic actions and tabular forms

    I'm trying to attach a dynamic action to a tabular form item, and it's not working the way I'm expecting it to. Since you can't attach dynamic actions to parts of a tabular form in the "normal" way that you can for page items, I'm using JQuery selectors to pick the parts to link to. For links (such as opening a pop-up window with more information about a row), this is working fine. But I'm really struggling to attach to a simple checkbox.
    On my tabular form, I've got a simple checkbox. I've tried putting text in the Element Attributes, Element Option Attributes, CSS Class, CSS Style, and HTML Expression fields, but none of them appear to be making it through to the source code of the generated page. Which means, I think, that I'm limited to using a jQuery Selector along the lines of "input[name=f07]", but creating a dynamic action on click or on change with that selector doesn't seem to ever fire.
    What am I missing?
    -David

    Ok, this is interesting. When I tried to mock this up on apex.oracle.com, I was able to make it work (though I had to change the selector to "input[name=f07_NOSUBMIT]", which means I'm going to have to walk the DOM to get the actual value...but I'm pretty sure I can handle that). After a bit of scratching my head, I eventually found that my pop-up dynamic action was somehow or other blocking the checkbox dynamic action from firing. Changing the sequence so that the checkbox DA happens first allows them both to fire.
    Here's the javascript from the pop-up DA (it's based on this post by Havard Kristiansen):
    /* prevent default behavior on click */
    var trgt = this.triggeringElement.href;
    var e = this.browserEvent;
    e.preventDefault();
    /* Trigger JQuery UI dialog */
    var horizontalPadding = 30;
    var verticalPadding = 30;
    $('<iframe id="modalDialog" src="' + trgt + '" />').dialog({
         title: "Item Details",
         autoOpen: true,
         width: 570,
         height: 400,
         modal: true,
         close: function(event, ui) {$(this).remove();},
         overlay: {
              opacity: 0.5,
              background: "black"}
    }).width(570 - horizontalPadding).height(400 - verticalPadding);
    return false;At this point, the checkbox DA's action is simply an alert box. Like I said, I'm not sure what's going on, but I'm at least able to move forward...
    -David

  • Dynamic Actions on tabular form items

    Has anyone had success with using dynamic actions on a tabular form item?
    When I create a dynamic action for the selection type I believe I want to use DOM Object, I am just not sure what ID I then need to put into the DOM Object field.
    Any help would be greatly appreciated
    Regards
    Mark

    If you wish to use JavaScript with tabular forms, I suggest looking at APEX_ITEM column types. They allow you to specify the JavaScript array number of any given column in your tabular form and rely on it. Then as you loop through your rows you can positively identify the element.
    Example:
    Original query:
    select colA, colB from myTable;
    select apex_item.text(1, colA, 20,20) as myText,
      apex_item.select_list_from_lov(2, colB, 'LOV_MYLOV', 0, 'NO') myLookup
      from myTable;I also highly recommend Firebug for Firefox. It will allow you to drill down into the DOM on any page to see the element identifications as the browser sees them. Definitely the best browser plugin for web development.

  • Actions tab for form field properties

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/pro/using/WSDFC888F9-219C-4b55-90E6-D316E2A85F08.w.htm l

    I am working in Acrobat. I trying to create a form dealers will complete and submit. There will be no licensing issues. I have created a button and named it SUBMIT. In the Actions tab I have selected “Submit a form.” I have entered “mailto:[email protected]” under “Enter a URL for this link”. I have also selected “PDF The complete document” as the Export Format.
    I saved the file but when I go to the Preview Mode and click the new “Submit” button, I am asked to “Save PDF as” from a menu. Even if I rename the file and click save, nothing happens. I am back in the Preview mode. If I click “Submit” again, I get the same “Save PDF as” routine.
    I am baffled.
      Lloyd Doolittle
    Re:  Actions tab for form field properties
    [Personal information deleted]

  • How To Make A Tabular Form Field Conditionally Readonly

    Hello.
    I am using Apex 4.0.1. I've created a tabular form on the EMP table and have made the ENAME column a select list that is being sourced from a simple SELECT query like:
    select distince ename d, ename r from emp order by 1
    When a user selects "KING" as the value, I would like this ENAME field on this specific row in the tabular form to become readonly. If some other value is chosen from the ENAME drop down, then this ENAME field should remain "changeable".
    If the user clicks the "Add New Row" button on the form, a new row should be added to the bottom of the form with this ENAME field as "changeable". Only if the user selects the "KING" value from this ENAME drop down should this filed become readonly.
    Does anyone know how to go about doing this kind of conditional readonly on a tabular form field?
    Thank you for any help.
    Elie

    Hi Little Foot (I do like that name).
    Here's the link to my thread: "How to conditionally make a specific row in a tabular form readonly":
      Re: How To Conditionally Make A Specific Row In A Tabular Form Read Only.Hope this helps you as much as it does me.
    Elie

  • Refer to Tabular Form field in Condition of Dynamic Action

    I tried to filter on this topic but didn't come up with anything.
    Is there a way to refer to a field in a tabular form as a condition of a dynamic action?
    For example, I want to pop up a message (javascript 'alert') when the value of one field in a tabular form is changed, but only if another field for that same row meets a certain condition.  So let's say the field in the condition is XYZ.  So in the condition section, i would have PL/SQL Expression - XYZ IS NULL.  Something like that.  How would I refer to that XYZ field from my tabular form in the condition section of a dynamic action?
    Thanks in advance.
    John

    Thanks for your help on this.  I think going with the action being an 'execute javascript code' is a good approach.  So here is my situation - I have a tabular form.  I have 2 fields (among others) - SPECIES and WEIGHT.  The SPECIES is a select list in the tabular form.  The WEIGHT is a text box in the tabular form.
    To make this simple, let's say this is for only one species - SNSG.  If the person changes the select list to SNSG and the associated WEIGHT field is NULL, I need to pop up a message that says 'Fill in weight field if selecting SNSG'.
    So here is what I have:
    Event: Change
    Selection Type: jQuery Selector
    jQuery Selector: :.speciesClass
    Condition: In List
    Value: SNSG
    True Action: Execute JavaScript Code
    ** Here is where I am stuck: In the JavaScript code I need to this:
    If WEIGHT is null THEN:
    confirm('Warning: Enter weight if entering SNSG species.');
    I am not sure how to write that "If WEIGHT is null THEN" part in javaScript and be able to refer to the WEIGHT field associated with the SPECIES value I just changed in the tabular form.
    I hope that makes sense!
    I appreciate your help!!
    Thanks,
    John

  • Set value in tabular form field with dynamic action

    Hi Guys,
    I have a dummy field in a tabular form which I am trying to use to populate another field in the tabular form when it is changed.
    In the tabular form I have an ITEM_ID field. Each item_id has an ITEM_NAME which is the dummy field as it is not a field in the database table.
    When the user enters an item name, I would like something like a dynamic action to fire, populating the ITEM_ID.
    e.g User enters part no ABC into the dummy field. When they tab out, I want the value to the item_id field on the tabular form row to be populated based on a SQL query in a similar fashion to how it can be done with dynamic actions on text items on a form.
    I am using APEX v4.0.0
    Thanks in advance
    Chris

    Hello Chris,
    Why can't you use Select List Item on tabular form, which will display all item_names and return item_ids?
    If the list is huge and you need users to type & search, then you can use Pop-up LOV item.
    Regards,
    Hari

  • Dynamic LOV FOR TABULAR FORM 6i

    Hi,
    I have tabular form of two Items(ID,DESC) and I want to Populate LOV for item(ID) every record
    and record_Group & SQL statments are stored in DB.
    ACTION: when query in POST-QUERY Trigger get for every record in tabular form -- the stored SQL-Statment from table then put it into dynamic record_group and populate the dynamic LOV.
    Please advice,
    Thanks in Advance.

    OK daniel
    This form used for get reports
    then header get the name of Report (Table-A) (report_ID),(report_desc).
    then details for get the Parameters will send to report builder (Table-B) (detail_id),(report_id),(sql_stm).
    so parameters may be need for example stock code so this record need to query from stocks table to get stock code and stock name.
    next record for item Code so need to query from Items table to get the Item code and Item name
    another report for employees so the user enter report code then when query and get in details block employee code and employee name.
    so the lov will check if this record have query sql-statment or not if have execute it in the record_group then in lov
    then go to the next record if sql_stm is null then no lov in this record and so on.
    thanks..

  • Dynamic Lov in Tabular form

    Hi,
    I'm creating select lists in tabular forms
    and 2 select lists in it.
    I'd like to use 1st list as a filter of 2nd list dynamically.
    How can I do that?
    Please advise me.
    I found one tips(http://htmldb.oracle.com/pls/otn/f?p=18326:54:10017106699293281168::::P54_ID:1282) and I tried to do it but it didnt work...
    Thanks

    Hi,
    There's several postings in the forum on how to do this, so if this message doesn't make sense, search the forum some, maybe for my Name?
    If I remember correctly, using the following as an example, to something similar. This is based on a country and state lookup.
    field 1 (:P1_country):
    select distinct country from lu_location;
    field 2 (:P1_state):
    select distinct state from lu_location
    where country = :P1_country;
    Make :P1_country a 'Select List with Submit', and it 'should' work. I'm at home, so I don't have access to my database.
    Bill Ferguson

  • Issue with setting a default value to a Tabular Form field

    Hi -
    I'm running into an issue setting the default value of a tabular form column. I'm trying to set the default value to the row number (#rownum#). This used to work in previous versions, but now it's returning 0. Is there a was to set this value in the default value attribute of the field with a substitution string?
    Thank you in advance for help!

    Share with us what worked in previous versions.
    Jeff

  • Tabular form - field to open explorer select file name to same in field

    Hi
    I am using apex 4.1 and would like some help with a tabular form I have created.
    It is based on a table which has two fields
    description
    path_of_source_file
    in the form I would like to be able to open windows explored to select a file name and save the path in the path_of_source_file field
    Does anyone know how to do that
    Many thanks
    Jayne

    >
    Start by editing your forum profile with a real handle instead of "user1647153".
    I am using apex 4.1 and would like some help with a tabular form I have created.
    It is based on a table which has two fields
    description
    path_of_source_file
    in the form I would like to be able to open windows explored to select a file name and save the path in the path_of_source_file fieldYou need to seriously rethink what you're trying do. Not only does APEX not provide support for file browse items in tabular forms (which are horrible anyway; even more so with an ugly file picker in every row), but file path information is not available in standard browser configurations (or at all in most browsers). As has been noted in many previous threads on this topic:
    >
    For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8+ and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\"—and this monstrosity has sadly had to be enshrined in the HTML5 spec...
    Changing IE's security config setting "Include local directory path when uploading files" enables the path to be exposed in IE, but unless you're working in an intranet environment where: IE is the only browser used; it's possible to make remote changes to this setting on every desktop; and this won't break/expose anything else, then trying to achieve this is pointless.
    >
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
    http://developers.whatwg.org/number-state.html#file-upload-state
    {thread:id=2385659}
    Go right back to the start and explain what this is all about. We need to know what the ultimate goal is in order to determine what use&mdash;if any&mdash;can be made of APEX here.

  • Insert Dynamic Action of a Form is not working

    Hello
    I've designed a form and some ratio buttons and some other items. A button fires a dynamic action, first with a submit page true action and then with an insert statement action. The button submits the page too.
    Sometimes the values of the form are inserted into the database correctly, but several times not. A new row is created every time, but in some case with no values in the columns. I tried several configurations but I couldn't find out what the problem is.
    Is there a common reason for this issue?
    Regards
    Felix

    I now found a box in the insert dynamic action saying "Page Items to Submit". I added all Items there and now with three times page submission it now works. Or at least it works according to my testing.
    Regards
    Felix

Maybe you are looking for

  • Maintenance view Events for description in details

    hello i have a maintenance view with 2 screen ( one overview other details ) i want fill a label in the details screen with the description of some code ( custom table with all custom fills ) but i don't find what event is the right , i try the event

  • Passing value from Webdynpro ABAP to Adobe form..

    Hi experts,         In first view of web dynpro, im getting employee id as input and after clicking the create new button, an adobe form is called to create the employee details ( in form i used the submit button and i stored the details ). so, in ta

  • Mail server has just stopped working. No errors in any log. Help!

    I am running OS X Server 3.0.2 on Mavericks 10.9.1. Today at around 14:30 my Mail server, which has been working fine for over a year and for nearly a month under Server 3.0.2 just stopped working! I have tried stopping and starting Mail in Server.ap

  • How far back does script UI go?

    I have a script that runs all the way back to CS I was wanting to update it and add fancy UI I was wondering how far back I can go?

  • Handling Data in JComboBox added to JTable using Rendrers

    Hi All, I have 3 columns with JCombobox with in a table.I have used Rendrers and Editors for handling them. Issue: In table,3 columns droplist have some values populated initially.When i change item in Column1 Droplist in row 0 ,then i have to dynami