How to populate a multi row form in Apex

Hi
I have a form in Application Express built using "Tabular Form" option while creating the page. The table being filled by the form is as follows
Cell_ID(varchar) reading_date(date) Value1(num) Value2(num) Location(varchar2)
Now I need to do the following
1. I want the page to display 200 rows for data entry on page load itself instead of user clicking Add Row button 200 times. ( For every location 200 entries need to be made for 200 diff Cell_IDs at the same date )
2. I want each row to take value for the Date column from the single date picker item displayed on top of page instead of entering the same date 200 times by user.
3. The cell_IDs are automatically populated with values loc1_001 loc1_002 .......... loc1_200 on selection of Location from another Item (select list) placed on top of the page.
Please Help anyone. Looking forward to a response.
Regards
Saurabh

<h3>Please help any one guys.</h3>

Similar Messages

  • Updating Multi-Row Form Data

    Hi Folks,
    I have the following multi-row form:
    !http://img216.imageshack.us/img216/7250/screenexample.jpg!
    This is based on the following query:
    SELECT id,
           ticker,
           deal_date,
           deal_type,
           no_shares,
           price_per_share,
           commision,
           stamp_duty,
           APEX_ITEM.CHECKBOX( 1, NULL ) AS group_ind,
           trade_group_id
      FROM trades
    WHERE ticker = 'FXPO'
    ORDER BY trade_group_id,
              ticker,
              deal_dateWhen I tick the GROUP_IND Checkbox, I want only the TRADE_GROUP_ID column value to be updated in the database for the associated row. Obviously, I could tick the checkbox in multiple rows.
    My questions are:
    1. Is it possible to modify the ApplyMRU routine to do this?
    2. If not, how would I go about submitting the ID and TRADE_GROUP_ID columns to a stored proc via an array from the APEX front end?
    3. Is there a best practice solution for my reports.
    I have some layout questions aswell, but I'll post those on a separate thread once the main functionality is working.
    Cheers.
    James

    James,
    You have access to the checked IDs using the apex_application.g_f01 array. You can pass it to your pl/sql ie:
    procedure test(p_arr in vc_arr2)
    begin
    for in in 1..p_arr.count
    loop dbms_output.put_line(p_arr(i));
    end loop;
    end;
    now you can just call your procedure with a process test(apex_application.g_f01);

  • Multi Row Form and onload

    Hi,
    I've a wizard based Multi Row Form (MRF) based on a view (on 2 tables) with Instead of triggers to handle the DML. I have an onchange event on one particular Select List based item in each row that simply disables/enables other row items depending on the value. All this is working fine, but I need to repeat the disable/enable of items for each row once the page has loaded.
    My initial thought is to use an onload event in the Page definition, but can and should I be handling this in a Page Process instead (bear in mind that this is a wizard generated MRF)? Also, I need to ensure that new rows (via the Add Row button) are handled correctly. If I go down the onload event route, then is the simplest way just to get an array (getElementsById?) of the items and loop through them? Any thoughts would be most appreciated on the most efficient way to do this.
    Cheers,
    PaulB

    Hi,
    Yes, it appears the same as an onload but, fortunately, doesn't interfere with any existing onload code - you can only have one onload function call for the window object.
    You can loop through the items on the form using something like:
    function disableItems()
    var x = document.getElementsByName("f03");
    var y = document.getElementsByName("f04");
    for (int k = 0; k &lt; x.length; k++)
    if (x(k).value == 'A')
      y(k).disabled = true;
    else
      y(k).disabled = false;
    }This assumes that the select list is in column 3 (which should mean that the SELECT objects should have a name attribute of "f03") and that the item you want to disable/enable is in column 4 ("f04") - so adjust as necessary.
    As you have the same number of items in column 3 and column 4 - the above loops through the ones in column 3, checks the value selected and then disables/enables the item in the same row in column 4.
    Andy

  • Multi-Row Form Validations - Cannot Re-Use Phone Nos from select LOV

    1) I need some help with a "Multi-Row" data-entry form (page 9)...I have a select list of phone-no's that user picks from the drop-down lov list on a page multi-row select list-drop down - P9_PHONE_ID (has built in lov). The data form is built on 'site_phone_assign' table.
    However, I need to put a page-level validation where the user CANNOT select a pre-assigned phone id (reuse a phone) that's already been assigned (used) and a record exists in the site_phone_assign table. I built the following page level validation on the multi-row edit form which is built on 'site_phone_assign' table...NOT WORKING!
    PLEASE HELP WITH THE BEST WAY TO DO THIS..Thanks!
    --validation type: Function returning boolean
    <code>
    DECLARE
    v_count pls_integer default 1;
    BEGIN
    IF (:P9_PHONE_ID IS NOT NULL) THEN
    select count(*)
    into v_count
    from datahub.site_phone_assign s
    where s.phone_id = :P9_PHONE_ID
    and s.ASSIGN_START_DATE <= SYSDATE
    AND NVL(s.ASSIGN_END_DATE,SYSDATE+1) >= SYSDATE;
    END IF;
    IF (v_count) > 0 THEN
    RETURN (FALSE);
    ELSE
    RETURN (TRUE);
    END IF;
    END;
    </code>
    2) How can I apply validations on a multi-row edit form page where say - start_date is always less than end_date? Both start/end dates are date-picker type of items.
    3) Can ITEM NOT NULL validation be applied on a multi-row edit page? I guess its page-level validation right? Please advice.
    Edited by: Shravanv on Feb 18, 2010 1:50 PM

    Hello,
    In a Tabular Form you need to loop through the records on the screen, so doing a check on :P9_PHONE_ID doesn't work...
    Patrick Wolf made a general solution for this problem, you can read about it here: http://www.inside-oracle-apex.com/plug-play-tabular-form-handling/
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.sumneva.com/

  • Multi-row form with button to save and add another row

    Can you have a button on a multi-row tabular form that would save the current changes, and than open a new row up on the fom for a new entry to be entered? This would combine the save and add a row button functions.

    Add Row button is doing exactly what you are asking for - it will save the chages you
    made and add a new row.
    Denes Kubicek

  • How to configure Oracle SSO for forms and apex

    Hi All,
    I am trying to configure oracle SSO for forms and apex using third party external authentication. Please help me how to configure. I a have tried all possible things
    from web but I am not able to do it. Is there any doc or links are much appreciated.
    Info: Some reason my oiddas web link is not working it used to work fine before and also the from /pls/orasso/ link I am not able to login may be because of my oiddas issue
    Thanks

    Hi Andreas,
    Thanks you for your help. I am trying to implement third party external LDAP authentication for APEX and Forms.
    So I started with OID and SSO setup to create external Partner Applications. Some reason my oid and sso web login links are not working. I didn't find any errors. I need some help in finding the problem and direction, I already read docs on web but no proper direction. I appreciate your help.
    Thanks

  • How to populate the Data into Form

    Hi,
    I would like to know how we can populate value when it opens into form manager.
    For ex A person opens a form he enter the emploee id and all corresponding fields should get populated in corresponding with that from database.

    Hi,
    i m using live cycle designer 7.1, i have mapped the form with default values for example in a table if all the rows of the table is mapped with one default value and if one user info is populated in the table then all the default value is not printing ie in the remaining rows can any help in this regard

  • Need idea on how to replicate muti/multi choice form

    I am working on trying to "computerize" a set of NCR forms we use for Home inspections.
    So far, so good.  I have check boxes, radio buttons, and more....
    BUT...
    I have a lot of lines that are multiple/multiple choice entries that work fine on paper, but I can't figure out how to present them on a electronic form...
    Example:
    Oven/Cooktop
    [ ] Deterioration/Damage/Not Functional/Unsafe/Near End of Lifespan*
    [ ] Not Inspected (power/gas off) [ ] Upper/lower Element-burner - not functional [ ] Heavy Corrosion/Wear
    [ ] Recommend anti-tipping device (2) [ ] Gas shutoff valve not visible / none (2)(4)
    On paper, I could select (check) the initial box, then circle "Damage " and  "Near end of Lifespan"
    Without creating a checkbox for EVER option, does anyone have an idea about how to present these type multi-option options.
    I have 16 pages PACKED with choices like this.  Pull downs don't help me much, as then the user can't see all the options.
    We will use Pull downs for some of the canned comments, and other field type for simple (short) lists...
    PS...thanks to this forum I figured out how to have text fields appear & disappear based on check boxes. Anytime there is a *,2 or 4 I need a comment to appear on the summary page...now if only I can figure out how to make the summary page look nice with missing fields....

    One possible option is to use a button that trigger a pop-up menu to open,
    where the user sees all the options at once and can select one of them.
    This would require a bit of scripting, though, and the only advantage over
    a drop-down menu is that all the options are visible in a single window, as
    opposed to a scrollable list.

  • How to Process a Multi-Line Form

    Hi:
    I've created a pl/sql portlet that displays a multi-line html form. The desired functionality is: user enters data into one or more lines, clicks a button, and all lines get inserted. Currently, to perform the insert I have a Javascript function that cycles through each line of the html form then uses the window.open function to call a url (that is a pl/sql procedure). The window is opened once for each inserted record.
    Does anyone know of a better way of doing this? I'd like to run the procedure without opening a window, but I don't know how.
    Thanks for any suggestions.

    hi Christ,
    let me understand what you are trying to do first. it appears to me that you may be trying to do one of the following two things:
    1. you may have more than one field and the user may enter one or all of those fields. and then press the submit button to enter/ insert the data in some table.
    2. or you have more just one field with a data value which is large enough to span over several lines. in that case you have one field with larger data value. and when a user enters a value for such a field and press submit then you want it to be entered into the table.
    a. in any case, it would be much simpler if you develop a portal form based on procedure. there you will need to create just a regular form based on a procedure in which you should put just insert statement for the data to be entered into that certain table.
    b. you can still do it with you customized form where you may create a form from an embedded html in the pl/sql. if you really wanna do it then there is a simple way to do that too but not simpler than the portal form technique.
    now this is all if i understood your little description correctly. let me know if your problem is different. please be specific in your description, if you choose so.
    syed

  • Struts: how to populate info into a form?

    Hi there,
    quick question in struts: a user logs in the system and immediately sees his account information (composed of name, address...)
    the user's info is retrieved from the db during the login phase.
    Q: after the login, how can I populate the user's info in the form of the accountPage.jsp?
    I tried to do this (login.java):
    UserInfomationFrom uif = new UserInformationForm();
    uif.setUser(user);but that of course dies because of the scope
    thanks

    PjonesCET wrote:
    Right Click Desired Field to create multiples of:
    this menu will come up : http://screencast.com/t/NzI4ZDA1
    Choose  and then place fields as needed.
    Phillip, this won't work as it creates fields with different names. grafiti's answer is the best.

  • How to populate the selected row details of table in the next view?

    hi,
    Im having a table, on selecting a particular row of a table by clicking on a radio button. i need that row details to be passed on(populated) to the next view when i navigate to that view by clicking on a button?
    Thanks & Regards,
    Suresh

    Hi Suresh,
    Your scenario is simple. Just follow the ex as shown below
    (Assuming you want default selection view provided by table itself.)
    1>Create 2 views (Ex:A and B)
    2>Create a Context with a node and attributes(For Ex:Person as node and Fname and Last Name as attributes
    2>In A view create a table with F name and L Name(map to context as well) and a action button to navigate to B view when you selected a particualr row o.k
    3>In B view, create a TextView with mapping to LastName(or all the data if you want from input selection) from the context
    If you want you can add back action button from B view to A view for easy navigation.
    4>Execute the application and select any row in the table appeared, press next action button,you can see that the selected row details will be shown in second(B) view.
    If you do the above example, I think you can easily find the solution for navigation issue.. try it out.
    In case if you are not able to ...let me know..I have that example.
    Hope that helps
    Regards
    Praveen

  • How to simulate the copy row feature in Apex

    Ver: 4.1.0
    Hi there,
    I have a application (Report and form) where users can do the standard edit, create, delete and save features.
    We had to add a "Copy" row option also for which I have added a radio button against each row in the report next to the edit pencil item. And that in turn is a hyperlink which opens the "Edit" page again. Right now it opens the form in edit mode for that record, which if any changes are made, updates the record. I wanted to
    1. When the user makes changes and hits the save button, a new record is created and inserted. (no worries on the duplicates etc)
    2. Only 2 fields need to be passed from the original report page to the copy page.
    3. Or if this is not possible, then maybe if I can capture the radio button row values and try passing that onto the form using some hidden fields maybe? But how can we capture the radio button value when it is selected?
    Wondering if anyone has done this before? any suggestions on how best to implement this
    Thanks,
    Sun
    Edited by: ryansun on Oct 16, 2012 6:29 AM

    Haven't done this but I'm gonna take a guess.
    1. Have the copy row link do the same thing that the edit row does so that your row is displayed on the edit page. However somehow pass another parameter such as a unique request value or something so that the called page can "know" that it was arrived at via the intent of copying a row.
    2. In the called page, have a process that detects whatever flag you passed (to know that the user wants to copy a row) and have that process null out the PK item in your page (assuming that your page drives its DML via a PK field and not ROWID). You also might need to alter your button conditions accordingly so that your create button shows (since you will be creating a new record) and your save/apply-changes button (existing records) is hidden.
    3. Hopefully this is enough to fool Apex into creating a new record (since the PK is now null) and the user would be now pressing the create button to save changes to the database.
    Hope this helps...if it's managed by ROWID though this approach may not work and also if there's any MD5 checksum getting in the way it might not work either but this is the approach I would try first.

  • Multi row tabular form

    can someone repost the instructions for tricking the master
    detail form into emulation a single table multi row form. I
    found someone who poited to an old posting that is no longer
    available

    repost

  • Inserting new rows in a JSP multi-row page

    Hi all.
    I´ve been implementing a JSP multi-row editable page according to the paper:
    http://www.oracle.com/technology/products/jdev/tips/mills/JSP_Multi_Row_Edits.html
    I noted that the code provided in the example just considers handling updates from the multi-row page, by comparing the existing rows in the ControlBinding rangeSet with the ones that came from the page.
    However, I need the ability to handle new rows from the same multi-row form that came from the page. So how can I achieve this task? What code should I include in the processUpdateModel method to handle new inputs?
    regards.
    Denis

    I think I will have to look inside the JHeadStart source code that extends DataAction, understand how that code works, and finally get the pieces I'm interested in...

  • How to populate data in TargetCube from SourceCube for a particular product/currency dimension selected in form1.

    Hi,
    Need help regarding Business rule scenario "How to populate data in "Target Form (plantype2)" from "Source Form(plantype1)" for a particular product/currency dimension combination selected in form1"
    Scenario 1) :  I have data for Product(Computer)/Currency(USD) dimension combination in Source Form
                        When i open Target Form and then select a Product(Computer)/Currency(USD) combination and then right click on form to invoke a Business rule to get data for this same                     product/currency combination from Source Form.
    Scenario 2) : If there isnt any data in Source Form for product(Computer)/Currency(USD) combination, then the data for product(computer)/Currency(Default Currency) to be populated into Target                     Form.
    The members in Currency Dimension (Shared Dimension) are USD & Default Currency.
    Can anyone please help.
    Thanks,
    Rajkumar

    Adding to what Celvin Kattookaran has said
    You can either write a Business Rule / Calculation script with @XREF function and also you can check condition if there is data in USD then populate USD else "Default currency"
    If you want that data in source to be available in target, then you can use @XWRITE in a rule from source cube to push the data to Target.
    Amarnath
    ORACLE | Essbase

Maybe you are looking for