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

Similar Messages

  • Multi row portal form based on a single table or view

    Hi,
    I have to create a multi row (tabular format) portal form based on a single table. Please help.
    Thanks

    Hi,
    A workaround to create multi row for based on single table has been discussed in the following :
    http://forums.oracle.com/forums/message.jsp?id=469778
    Thanks
    Vineet

  • Multi-Row Update form with wrapped fields

    Hi,
    I have a multi-row update form with too many fields to fit on the screen without having to scroll. Is it possible to wrap the extra fields onto a 2nd line.
    So each DB record will actually span 2 srceen rows and fit nicely into my browser ??
    Thanks for any help,
    Brandon

    It is possible, but would require some serious work on the report template, to create a custom row template.
    I started to do this at http://htmldb.oracle.com/pls/otn/f?p=24317:191 but realized that it is hard work. Also, where would you show the headings for the second part of the row (split onto the next line)?
    Instead, I would use the Show/Hide columns technique (client-side scripting) to reduce the number of columns shown. Search for it on this forum. Carl and I have some good examples out there.

  • Clone Rows - Tabular form - Client side add rows

    Hello all,
    I feel in love with this particular Tabular form, http://htmldb.oracle.com/pls/otn/f?p=24317:49 because of the Capabilities it has to create a "clone row".
    a very advance feature I like a lot.
    The trouble is when I go under >Report> and select which columns I would like to view, some will be hidden with default values.
    the default values I would like to keep hidden are: a Time Stamp, and :APP_USER.
    So when the user decides to clone a row the first original row will stay intact with all the information including the hidden values, but as for the cloned rows the hidden values are missing.
    Is there something missing in the javascript that permits this from happening?
    Please Help.
    <script type="text/javascript">
    var g_this;
    function fn_delete(pThis)
    var l_tr=$x_UpTill(pThis,'TR');
    l_tr.parentNode.removeChild(l_tr);
    function fn_CloneRow(pThis){
    g_this=pThis;
    l_tr=$x_UpTill(pThis,'TR');
    l_table=$x_UpTill(l_tr,'TABLE');
    l_tbody=$x_UpTill(l_tr,'TBODY');
    l_clone=l_tr.cloneNode(true);
    html_RowHighlight(l_clone,"D0D0E0");
    l_inputs=l_clone.getElementsByTagName('input');
    for (var j=0;j<l_inputs.length;j++) {
    l_this=l_inputs[j];
    if (l_this.type=="hidden") l_this.value="";
    if (l_this.name=="fcs") l_this.value="zzzz";
    if (l_this.type=="checkbox") l_this.parentNode.removeChild(l_this);
    // Change Clone functionality to Delete
    var l_img=l_clone.getElementsByTagName('img')[0];
    l_img.src="/i/delete.gif";
    if (document.all) l_img.onclick=function(){fn_delete(this)};
    else l_img.setAttribute("onclick","fn_delete(this)");
    l_tbody.insertBefore(l_clone,l_tr.nextSibling?l_tr.nextSibling:l_tr);
    </script>

    I have't looked at the specific clone-row sample code you mentioned in your post, but just wanted to point out that we've introduced client-side add-row functionality in APEX 4.0, so if you're using this code to add new rows on the client-side, then using the built-in functionality might be easier. Of course if you actually want to get a copy of an existing row, that might not be sufficient. As for the MRU process, the way APEX identifies new rows is by looking at the primary key or ROWID column value, which needs to be NULL. APEX also looks at the apex_application.g_fcud array, which holds information for each row on whether to do an create, update or delete. This array was introduced in APEX 4.0, and that's what could potentially be causing your example to fail after the upgrade.
    Regards,
    Marc

  • How To Create Multi Row Edit Forms in a JSP

    Hi, Could someone tell me how can i create multi edit rows in BC4J JSP edit page.
    Thanks
    Sirisha

    Refer to
    BC4J Multi-Row Extension API which provides multiple row operations to BC4J-based web application.
    http://sourceforge.net/docman/display_doc.php?docid=19393&group_id=87369
    http://radio.weblogs.com/0118231/2005/04/20.html#a529

  • Multi Row Edit Forms in BC4J

    How in BC4J JSP can you create a form to edit multiple records at once?
    Using JSP/JDBC its fairly straight forward, but in BC4J it doesn't seem obvious. Does anyone have examples?
    Thanks,
    Matt

    here's what i did while putzing around trying to solve this. it's probably not production quality, but may give you ideas...
    in the BrowseEdit form, i replaced the DataTable tag with my own table (built with RowSetIterate), sequentially (by row) numbering all the input field names just like i'd have had to for a CGI.
    i also changed the jboEvent value.
    <jbo:RowsetIterate datasource="ds" userange="true" >
    <tr>
    <td><%= rwcnt %></td>
    <td>
    <jbo:ShowValue dataitem="Id" />
    </td>
    <td>
    <input value="<jbo:ShowValue dataitem="Site" />" name="Site_<%= rwcnt%>">
    <input value="<jbo:ShowValue dataitem="Site" />" name="_Site_<%= rwcnt%>" type="hidden">
    </td>
    <td>
    <input value="<jbo:ShowValue dataitem="Room" />" name="Room_<%= rwcnt%>">
    <input value="<jbo:ShowValue dataitem="Room" />" name="_Room_<%= rwcnt%>" type="hidden">
    <input value="<jbo:ShowValue dataitem="RowKey" />" name="RowKey_<%= rwcnt%>" type=hidden>
    </td>
    <% rwcnt++; %>
    </tr>
    </jbo:RowsetIterate>
    <input VALUE="TableUpdate" TYPE="HIDDEN" NAME="jboEvent">
    i then modified the DataHandler.jsp to add my new jboEvent. the handler loops thru the rows of data and does a SetAttribute on anything that's changed.
    <jbo:OnEvent name="tableupdate">
    <% String rowcntParam = params.getParameter("RowCount");
    int RowCount = 0;
    if (rowcntParam != null)
    try { RowCount = Integer.parseInt(rowcntParam); }
    catch (Exception ex) { }
    %>
    <% for (int index=1; index < RowCount; index++)
    String RKvar = "RowKey_" + index;
    %>
    <jbo:Row id="csbrow" datasource="ds" action="update" rowkeyparam="<%= RKvar %>" >
    <jbo:AttributeIterate id="atts" datasource="ds" >
    <% // atts is an AttributeDef object....
    String oldVal = params.getParameter("_" + atts.getName() + "_" + index );
    String newVal = params.getParameter(atts.getName() + "_" + index );
    if (oldVal != null && newVal != null && !oldVal.equals(newVal)) {
    %>
    <jbo:SetAttribute datasource="ds" value="<%= newVal %>" />
    <%
    %>
    </jbo:AttributeIterate>
    </jbo:Row>
    <%
    } // end row loop
    %>
    </jbo:OnEvent>
    YMMV,
    cb

  • 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

  • Updating fields on Tabular Forms created with wizards

    I have created a Tabular Form using the creation wizard in version 2.0.
    When we update database records, we always place a date and a user ID into the record to track the last time updated.
    In HTML-DB I typically create an "After Submit" process called "Set Hidden" which updates my items LAST_UPDATE_DATE and LAST_UPDATED_BY.
    This works great on non-Tabular forms when I am dealing with one record at a time.
    How do I do this on a multi-row tabular form?
    Any help would be appreciated.

    Sorry, I assumed a basic familiarity with Oracle and HTML DB development concepts
    1. "v" is a HTML DB function to read session state
    2. v('APP_USER') will give you the authenticated username of the current session
    3. For some reason, if that is blank, the NVL will evaluate to USER which is a builtin Oracle keyword just like SYSDATE. USER evaluates to the userid for the currently connected Oracle user (typically HTMLDB_PUBLIC_USER)
    4. FOO is the function which will take the username and convert it to the internal id you seem to want.
    5. NVL is a function that evaluates both its arguments and returns the first non-null expression.

  • Creating a complex tabular form manually

    Hi,
    I am trying to create a tabular form manually. The tabular form consists of
    rows , with each row containing
    1. Select List (of employee names)
    2. JOB (Text box)
    3. Salary (text box)
    I have a add button to add a row, a row similar in appearance to the above, i.e it consists of a select list of "employee names", "job" text box and "salary" text box.
    I should to be able to specify the id for these items in each row that I add, I need to specify id for each item in each row that I add since, there is a lov image attached to each row, that would capture any data entered by the user in that row and take him to a popup page with the values specified in the main page.
    Can anyone tell me how to specify id to the items I add (i.e when I create a new row).I also dont find any id created to the items in the form that I have created manually. Please note i am using the APEX_ITEM package to create the tabular form manually.

    Hi Andy,
    I would like to explain what I have done and kindly let me know if this is right.
    I created a tabular multirow form using APEX built in component, since I wanted to add validations and I could not get a handle to UpdateMRU, I decided to create the tabular multirow forms manually using the example on the APEX howtos link.
    I find that the multirow form which i created manually does not have any id associated with the items.
    1. Please let me know if I need to add validations is there only one way i.e to create the multi row tabular form manually?
    2.How do I specify the ids for each item. The APEX_ITEM APIs dont provide any way to add ids to items?
    3.Is it possible to add validations to the multi row form generated using APEX wizard?In the sense , for eg, I have the employee table presented as multi row table, when a user adds a new row or modifies an existing row, he should not be allowed to add an employee with the same name, Now where do I do this valiation and how can I show the error against that row?
    4. What I need to do further is. I have an image on each row (akin to a button) that would spring up a popup page with search options , so that I can repopulate values back into the parent page, to do this I need to pass the ids of the ITEMS to and fro from the parent to the child and back.
    I would like to understand how to approach the above issues.
    Would appreciate if you could let me know on the same.
    Thanks.

  • Error when pasting 1K of text into a text area of tabular form

    This appears to be a bug to me, put please offer suggestions if you have them....
    Using apex with XE, I have created a table with two varchar2(4000) columns in them. The user will paste large blocks of text into one or both of them (e.g paste text copied from e-mail).
    I created a tabular form and set the two fileds to display as "text area". Insert and/or update works fine unless I paste more than about 1 to 1.5 kbytes of text into one of these fileds, in which case I get a page not found error with the following URL:
    http://127.0.0.1:8080/apex/wwv_flow.accept
    After the error page displays, I can hit the back button and then remove just enough text to get it to under the 1 to 1.5 kbytes and then either insert or update works fine.
    One more bit of info. If I create a single row form then it works fine, it is only the multi-row tabular form that seems to have this issue.

    I don't think the character set is the problem. I used a string of numbers 0123456789 and just copied and pasted it repeatedly to build up the text. The database character set is WE8MSWIN1252.
    Regarding the apache log. I have to admit that I don't even know if I'm running apache. I am using a newly installed Oracle XE on a laptop in order to get some experience with application express. This app is the first one I've done. If someone will direct me to the log then I'll be glad to check it and post the relevent contents.
    I signed up for an apex workspace and intend to see if I can recreate the error from there so I can see if the problem is just in the free version of apex that comes with the Oracle Express Edition for windows database.

  • Help on tabular forms

    Hi all,
    I am new apex. I have couple of questions on tabular form
    1. How to add user selectable no of rows display drop down list box on a tabular form (same type of display list box comes default when you create report and form)
    2. How to add text search on multi row tabular form.
    3. How to call pl/sql procedure when you press button.
    4. How to change the query of tabular form when we you click on check box.
    5. How to popup a new window when you press a button.
    Please help me.
    Thanks,

    Hi James,
    1 - In the Report Attributes for the tabular form, you have an option "Number of Rows (Item)" in which you can specify a page item name (eg, "P1_ROWS"). Obviously, you will also need such an item on your page - typically, this is a Select List with Submit (but could be a normal select list if you intend to reload the page using a button click).
    2 - Do you mean a search across all fields on a displayed tabular form or a filter to restrict the rows displayed?
    3 - A Process (which is what I think you mean) has a "When Button Pressed" option which allows you to pick the button that triggers your process.
    4 - This depends on the checkbox and whether or not you have more than one checkbox. A simpler solution would, perhaps, be to have a select list with the required values (even if that is just "Yes" and "No")
    5 - This depends on what the popup page is designed to do. You could look at the following as a starting point:
    http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html
    If 2 and 4 are both to do with filtering the data, then you need to add a WHERE clause to the underlying SQL statement. Something like:
    SELECT...
    FROM ...
    WHERE FIELDX := :P1_PAGE_FIELD
    OR FIELDY LIKE '%' || :P1_STRING_SEARCH || '%'
    The exact format would depend on the data type of the field being filtered.
    You also need to have something on the page that will trigger the page refresh which is required so that the filter can be applied. Normally, this is an unconditional branch (ie, a branch that is not triggered by a button) that branches back to the same page. In the branch definition, you also need to set the "Set these items" and "With these values" to pass back to the page the values in the search fields (eg, P1_STRING_SEARCH needs to be passed back into itself otherwise the field's value is lost when the page reloads and the filter won't be applied). If you are performing a filter using multiple fields, then you would normally apply the filter using a button on the page, so you would select this button as the trigger for the branch - again, this is a "When Button Pressed" setting on the branch definition.
    Regards
    Andy

  • BI Bean that displays the data in tabular layout (multi-row)

    Hi,
    I know there isn't a graphic type in BI Beans that can display data in multi-row tabular layout as one graphic object. Oracle Forms can actually display this layout but they want to display everything in one page without scrollbars (without the need to scroll for the other records that isn't displayed yet in the screen). Is this at all possible in Oracle Forms using BI Beans? Are there other possible approaches aside from BI Beans?
    Thanks in advance.
    Anthony
    Philippines

    Hello Vikas,
    >> How does one go about troubleshooting & fixing this sort of thing?
    By given us a bit more information :)
    • Is it a manual Tabular Form (using the ITEM API) or a wizard created one?
    • Are the Insert/Update operations work correctly? If not, what is the type of your PK column(s)?
    • If the problem is limited to the Delete operation, maybe the problem lies with the checkbox column. Are you sure that on page it is rendered as the f01 column?
    • As triggers are involved, can you save the PK that the trigger sees? Is it the expected value?
    • Are there any other processes that are fired before the DML process? If so, maybe the problem is with them. You can temporarily disable them and see if it change anything.
    >> Tabular forms are the most frustrating, opaque component in Apex, wish they were easier to troubleshoot
    Yes, I agree. However, I believe that 4.1 made some serious advancement where Tabular Form is concerned. Having simplified Tabular Form related Validations and Process should make things easier, and as a result, prone to less errors. Still, the main problem is that the type of error you are talking about is usually the result of metadata problems and these are indeed very hard to track.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

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

  • Interactive report limits tabular form pagination.

    Hey All,
    I am running into a problem and I was unable to find an answer on the forum, however I did find that someone asked the same question but did not get any replies. So I will ask it again.
    Pagination problem with interactive report and multi row update form
    I created a page which contains both an IR and a tabular form. The IR behaves correctly and there are no issues. The tabular form on the other hand is not functioning properly. The problem I am having is that the tabular form will only paginate to the rows that are currently being displayed in the IR. For instance if I am viewing rows 6-10 on the interactive report the tabular form will start from row 6 even if my pagination scheme is set to view in increments of 20.
    Another example is if the IR is is viewing rows 6-10 and the tabular form is viewing rows 1-2. If I paginate on the tabular form it will jump to rows 6-7 regardless of where its last position was.
    So in short it appears that my tabular form always starts from the first row currently being viewed in the IR. Is there a work around for this or should I just ditch the interactive report?
    http://tryapexnow.com/apex/f?p=700:2
    I made a sample for you to check out.
    Cheers,
    Tyson Jouglet

    Munky,
    Thanks for the suggestion. It does indeed allow me to paginate but I hate the alert you get when PPR is enabled for a tabular form and unfortunately so do the users. :(
    Cheers,
    Tyson Jouglet

  • Multi-Row Hidden Column Submit Processing

    Hi,
    My attempts to select a hidden column value for use in Submit processing only works when I actually display the column in the report region. I want to store the column value in the array (htmldb_item.?????) without displaying it in the report region.
    I have tried using the following htmldb_item functions: hidden, display_and_save, text. When I use the hidden function and set the column attribute to "Show" then the heading displays, no column data displays, and the htmldb_application.g_f01 value is present for use in Submit processing. When I set various column attributes to cause the column to not display then the column value is not present during Submit processing.
    My code snippets for Region Select and Submit processing are:
    "select htmldb_item.hidden(1, sac.student_acad_cred_id) q_acad_cred_id,..."
    "BEGIN
    for i in 1..htmldb_application.g_f01.count
    loop..."
    Couldn't find answer with Forum search or in the Guide. Thanks for any help!

    Bernhard,
    There are two ways to build tabular forms (multi-row update forms). You can either use calls to the htmldb_item API in your query. Or you can use the built-in display types. The build-in types are generally the better option for a number of reasons, for example, the built-in form elements are only rendered for the rows you actually show on your current page. If you use the htmldb_item API and pagination with several pages, then you would make calls to PL/SQL for every row in your report, no matter whether they are shown or not.
    With the built-in display types you can choose the display type “Hidden”, which will actually append the hidden fields to the last column in your report, so the array is there, but you won’t have to deal with column headings and an empty column.
    When using the htmldb_item API, you should simply append the hidden column to a displayed column, e.g. select htmldb_item.text(…)||htmldb_item.hidden(…) [column alias], … from …
    Hope this helps
    Marc

Maybe you are looking for

  • Error while activating MSMP BC set

    Hello, I am getting this error while activating MSMP BCSETS @5C@     GRC_MSMP_CONFIGURATION     V_GRFNMWCNESCTYP     Entry SAP_GRAC_SPM_AUDIT_REVIEW   does not exist in GRFNMWCNPRCS (check entry)     001SAP_GRAC_SPM_AUDIT_REVIEW AGENT     @35@ Thanks

  • Invoice value not updating for limit PO

    Hi Experts, SRM 5, SP 10 ECC 6. Limit PO is created, invoice posted in ECC, the invoice vaue is not updating in the Statistics tab at item level of PO,Calculated Value  is showing 0.00 only any idea. Thx

  • My skype number is going to someone else's voicema...

    I got my Skype number few days back, and when I call it from another phone it simply goes to someone's voicemail. Why is this so? And how to fix it? NOTE: I have set the privacy settings for my account and Skype phone to be called from anywhere/anyon

  • SLO for company code merger

    Hi, I understand that the SLO allows the ability for merging of multiple company codes, eg A1 and A2 become B1 (it also allows conversion from old to new values, eg C1 becomes D1...) However, does it treat records intelligently, eg A1 has $100 loans

  • Downloading Adobe Reader onto my computer

    I can not download Adobe Reader onto my computer. When I try to download it, it states that "it is unable to be installed."