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

Similar Messages

  • 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

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

  • 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

  • How to autopopulate fields in a portal form based on database procedure?

    Dear gurus, I am a newbie to the portal world and i have a rather unique problem. I have searched online but still cant find a solution to my problem. I have a portal form (AS version 10.1.4) based on a db procedure that accepts only one parameter. The form has about 12 fields, two of which are combo boxes. Because of the relationship b/n combo box 1 and combo box 2 and the rest of the form fields, the user has to start out by selecting a value in combo box 1. This auto populates combo box 2 (based on the previous selection). However, when the user selects a value from the populated combo box 2, this is supposed to trigger an action to query the database and retrieve values for the remainder of the form fields and populate them accordingly.
    I tried to use p_session.get and set values but discovered that one cannot do this with form fields that are based on a procedure. I could write javascript to call a database procedure but i am not sure how to pass the return values from the database back to the javascript routine and then populate the remaining fields accordingly.
    HELP ME PLEASE!!!
    Thanks

    Hi Venkat, create a section (section control) for each set of columns you want to hide/reveal. Put your columns in that section. Then set a rule on the dropdown so that if dropdown = "this" then show "this" section.
    cameron rautmann

  • Exporting form data to a single table

    I have created a form in LiveCycle Designer ES 8.2  and simply want to export the data into a single table that I can then import into Access. It appears that in LiveCycle the row elements of a table are children of the table element and the column elements are children of the row elements.  I am wondering if there is an easy way to design a form in LiveCycle so that each cell of a table is a root element like the rest of the fields in the form.  I basically want to export one row of data from each form and append it to a larger table. Exporting the data as csv or tab-delimited would be sufficient, but neither of these appears to be an option.

    The only way I've found to do this is to open the form in Acrobat, click Forms, mouse over Manage Form Data, then click Export Data. Your only options are to save as .xml or .xdp. I saved my data as .xml. I was then able to import the .xml file into excel by clicking Data, mousing over xml, clicking Import... and browsing to the Acrobat generated .xml file. I know this is convoluted but it's the only way I've found to get the data into a spreadsheet. Acrobat exports the data as filename_data.xml, i.e. a form named contacts will export it's data as contacts_data.xml. Be aware, I've only tested this on a form that had a table in it and nothing else. If your table is part of a form with other fields in it I have no idea how the other data will look after exporting.

  • Multi-row uipdate with an insert into another table [I think]

    Folks,
    I'm trying to get a multi row region with a checkbox against each row. When a user checks a box I want to insert a corresponding row into another table. So I've tried to simplify the questions and distill the problem down using the EMP table.
    So, here goes:
    I have table EMPS, which looks like this:
    EMPNO     Number     
    FIRSTNAME     Varchar2(9)     
    LASTNAME     Varchar2(10)     
    HIREDATE     Date
    I have table EMP_CANDIDATES, which looks like this:
    EMPNO     Number     
    SELECTION_DATE     Date     
    NOTES Varchar2(53)
    - I want to create a multi-row region based on EMPS, with a checkbox on each employee row.
    - The user should be able to select any number of employees in the region and then press submit.
    - on-submit there needs to be a process, which inserts a record into EMP_CANDIDATES for each checked employee.
    I've tried pre-populating a collection with the EMPS records and using apex_item.checkbox to produce a checkbox, using this code:
    =============
    if apex_collection.collection_exists(p_collection_name=>'EMPS') then
    apex_collection.delete_collection(p_collection_name=>'EMPS');
    end if;
    apex_collection.create_collection_from_query(
    p_collection_name=>'EMPS',
    p_query=>'select
    p.empno,
    p.hiredate,
    p.firstname,
    p.lastname,
    null selection
    from emps p');
    =========
    I can create a report region on this using tthe following SQL:
    select c001 empno
    , c002 hiredate
    , c003 firstname
    , c004 lastname
    ,apex_item.checkbox(1,c005) selection
    from apex_collections
    where collection_name ='EMPS'
    ======
    So how do I now get a MRU that will insert a row into EMP_CANDIDATES for each checked row in my region? Or have I gone about this the wrong way?
    TFH
    Derek

    Hi Derek,
    Firstly, your checkbox should be on the c001 field as this is the one that contains your empno.
    Then, you need a page process that can be triggered by a button. The process should be set to run "On submit (After computations and validations)" and the PL/SQL code would be something like:
    DECLARE
    v_empno NUMBER;
    BEGIN
    IF HTMLDB_APPLICATION.G_F01.COUNT = 0 THEN
    raise_application_error(-20001, 'Please select at least one employee!');
    END IF;
    FOR i IN 1.. HTMLDB_APPLICATION.G_F01.COUNT LOOP
    v_empno := TO_NUMBER(HTMLDB_APPLICATION.G_F01(i));
    INSERT INTO EMP_CANDIDATES VALUES (v_empno, whateverdate, whatevernotes);
    END LOOP;
    END;
    This will firstly count the items that have been ticked - if there aren't any, the user gets an error message. If there is at least one item ticked, the code will loop through these, get the empno relating to the ticked box and insert a record into the emp_candidates table. Please note that no account is taken here of any validation on this second table - if you need to ensure, for example, uniqueness of records in this table, you will have to update the above to perform this validation.
    Regards
    Andy

  • APEX  How do I create a Form based on a Database Table from other schema

    My APEX schema is WISEXP. I have a database table that resides in WISDW schema on the same database. I want to create Tabular form based on this table.
    I am not able to create a FORM based on the table from WISDW schema. I am able to create a FORM based on SQL though from this table in WISDW schema - but it does not do any action on Update/Insert rows.
    Appropriate Synonyms and grants are created. Is there a limitation or am I missing something? Please advise.
    thanks
    Rupen

    If Rupen is using 2.2 or 2.2.1, it is likely he is running into the bug described here: Re: Workspace to Schema Assignments
    In that case, it may be a necessary and sufficient workaround to assign the foreign schema to the workspace.
    Scott
    Message was edited by:
    sspadafo

  • How to create a Form based on a dynamic table?

    Hello,
    The Select statement below creates a table based on a string (string is a value of an item):
    select * from table (pkg_util.fn_get_table (:P18_VALUE))I need to create a region on a page with a Form based on this table.
    I was able to create a Report, but not a Form.
    I need to create a Form, which would return updated string to the page item.
    How can I solve this please?

    Hello Gentlemen,
    I have created a Tabular Form, based on APEX_ITEM API, as you suggested, here is the code below:
    SELECT apex_item.checkbox (30,
                               CATALOG_ID,
                               'onclick="highlight_row(this,' || ROWNUM || ')"',
                               NULL,
                               'f30_' || LPAD (ROWNUM, 4, '0')
                              ) delete_checkbox,
           CATALOG_ID,
              apex_item.hidden (31, CATALOG_ID)
           || apex_item.text (32,
                              LANG,
                              80,
                              100,
                              'style="width:100px"',
                              'f32_' || LPAD (ROWNUM, 4, '0')
           || apex_item.hidden (33, wwv_flow_item.md5 (LANG, DESCRIPTION)) LANG,
           apex_item.text (34,
                           DESCRIPTION,
                           80,
                           100,
                           'style="width:255px"',
                           'f34_' || LPAD (ROWNUM, 4, '0')
                          ) DESCRIPTION
      FROM V_SYSTEM_CATALOGS_PR
    UNION ALL
    SELECT     apex_item.checkbox
                              (30,
                               TO_NUMBER(9900 + LEVEL),
                               'onclick="highlight_row(this,' || ROWNUM || ')"',
                               NULL,
                               'f30_' || TO_NUMBER (9900 + LEVEL)
                              ) delete_checkbox,
               NULL,
                  apex_item.hidden (31, NULL)
               || apex_item.text (32,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:100px"',
                                  'f32_' || TO_NUMBER (9900 + LEVEL)
               || apex_item.hidden (33, NULL) LANG,
               apex_item.text
                                               (34,
                                                NULL,
                                                80,
                                                100,
                                                'style="width:255px" '  ,
                                                'f34_'
                                                || TO_NUMBER (9900 + LEVEL)
                                               ) DESCRIPTION
          FROM DUAL
         WHERE :P180_TEMP = 'ADD_ROWS1'
    CONNECT BY LEVEL <= 1however, the update process doe not work on that form:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
          lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Can you please see what's wrong with the code?
    Also, I tried to set a temp. item with the value, to see if the process returns something, like that:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
          lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
         :p18_temp := lc_string;
    END;and it did not work.
    Also, it is the second Tabular Form on this page. The first one is created using wizard, and it works perfect, with the same update process:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*01*.COUNT
      LOOP
          lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*03*(i) || '|' || APEX_APPLICATION.G_f*04*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Also, both forms are opening in a modal pop-up dialog window.
    I use a Dialog Region plug-in for that.
    May be this is causing a problem?
    But still, the first form works fine!?

  • 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

  • How to consolidate rows of data based on a single column?

    I have a large amount of data that is currently formatted like this:
    18 - 2 - 0 - 0 - 0 - 0 - 0 - 0 - 0
    18 - 0 - 4 - 0 - 0 - 0 - 0 - 0 - 0
    18 - 0 - 0 - 5 - 0 - 0 - 0 - 0 - 0
    19 - 0 - 2 - 0 - 0 - 0 - 0 - 0 - 0
    19 - 0 - 0 - 0 - 5 - 0 - 0 - 0 - 0
    20 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0
    20 - 0 - 0 - 0 - 0 - 0 - 3 - 0 - 0
    20 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2
    I would like to sort it all based on the value in first column. Currently, each row has only 2 (non-zero)
    values. The first in column A, and another in only ONE of the other columns. I want to consolidate the rows according to the value in column A. The final product should look like this:
    18 - 2 - 4 - 5 - 0 - 0 - 0 - 0 - 0
    19 - 0 - 2 - 0 - 5 - 0 - 0 - 0 - 0
    20 - 1 - 0 - 0 - 0 - 0 - 3 - 0 - 2
    How can I go about doing this?
    Thanks in advance

    Use advanced data filters to create a unique list based on column A in another range, then use SUMIF formulas keyed to those values to sum the other columns.
    Or use a pivot table, with column A as the row field, and the others as data , each set to sum. and then drag the data button to the column field area.

  • Forms based on  PL/SQL table/ref_cursor

    I fail to tetrieve selected records from a stored package.procedure(which I have created as a ref_cursor to PL/SQL table and specifying a criteria in the forms where clause)
    Please any one suggest ?

    I suggest you read the [url http://forums.oracle.com/forums/help.jspa]FAQ and [url http://blogs.oracle.com/shay/2007/03/02]The 10 Commandments on OTN Forum Posting
    Forms version and an error message would help us to help you, we don't have crystal balls, we cannot guess.

  • Form based on a denormalized table

    I have a denormalized table. And the form has 2 data blocks, header and detail.
    The header is a 'From clause query', which is actually distinct of a few columns. Detail is direct to the table.
    Understanding that it is not possible to update the header directly, is there any method that can simulate a header-detail relationship. That is when user change something on the header, that change will automatically propagate to the related detail records.
    Thanks in advance!

    Hello,
    Well, the task can be achieve by following the below steps. But i would like to know the need of this task.
    Anyway if you need it badly here is a way. Not very pretty. But you can use.
    1. Go to the property pallet of From Clause Query block and set the DML TARGET TYPE to NONE and DML TARGET NAME to blank (do not specify any value).
    2. On From Clause Query block which is header create two trigger (block-level) called ON-UPDATE and ON-LOCK and write the code inside like this.
    NULL;3. In last create one trigger on form-level called KEY-COMMIT and use the code like this...
    IF :header_block.customer_id!=:detail_block.customer_id THEN
      UPDATE table_name
      SET customer_id = :header.customer_id
      WHERE order_number = :header_block.order_number
      AND customer_id = :detail_block.customer_id;
    END IF;
    COMMIT;So, while updating the header block and when you will press save it will execute this update statement which is on form-level trigger. And will update the data in actual table which is detail table. So, no need of query again. It will work as it is. And if you want to update the detail table as normal form's practice you can also it will work as normal behaviour and will not execute that update statement.
    Keep the relation between blocks as it is.
    In addition if you don't use form then through backend it is very easy to create one view using the query which you are using for block and then use INSTEAD OF trigger to update the actual table.
    -Ammad

  • Multi-row single table form

    Hi,
    Is is possible to create a portal form based on a single table which can display/insert multiple rows in a single action?
    I have tried the custom display which supports displaying multiple rows. However, it sees these as duplicates since there is no way of specifying a distinction between each row, so only one row is inserted although values for multiple rows are entered.
    Here's an example of the BODY section of my custom display:
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR>
    </TR>
    <TR>
    <TD><#PARAMETER_NAME.LABEL#></TD>
    <TD><#PARAMETER_VALUE.LABEL#></TD>
    <TD><#PARAMETER_DESCRIPTION.LABEL#></TD>
    </TR>
    <TR>
    <TD><#PARAMETER_NAME.ITEM#></TD>
    <TD><#PARAMETER_VALUE.ITEM#></TD>
    <TD><#PARAMETER_DESCRIPTION.ITEM#></TD>
    </TR>
    <TR>
    <TD><#PARAMETER_NAME.ITEM#></TD>
    <TD><#PARAMETER_VALUE.ITEM#></TD>
    <TD><#PARAMETER_DESCRIPTION.ITEM#></TD>
    </TR>
    </TABLE>
    </TD></TR><TR><TD>
    This displays multiple rows, but I don't know if it's possible to use a special syntax so each rows values are seen as separate, e.g. _1 added after ITEM?
    Any ideas??
    Thanks in advance.
    Regards,
    Gillian Channer

    Hi,
    This feature is not supported by Portal Forms right now. The only way you can do it is to create your own dynamic page.
    Thanks,
    Sharmila

  • How to create Form based on a table to display multiple record

    Hello All,
    Would somebody please tell me how to create a Form based on a single table ,
    to view and insert multi record based on a single table.In other words I would like
    to have a form as shown below ,where the users can Insert,update,delete,query and so on
    Item Id PArt Number List Price
    100 Item-1 $120.oo
    200 Item-2 $150.00
    300 Item-3 $50.00
    I know I can do it as Single Record block using Tabular Format,but multiple record ?????
    Thanks in Anticipation
    Babu

    Try this method,
    1. Creat a Master Detail Form (Custom Layout and not tabular)
    and in the master block select one field.
    2. In the HTML layout for master remove the reference for
    that field(so that nothing will appear in the master block
    of the form).
    3. Before the update (in the Pl/SQL event handler select the 'Save' event and write the following code to avoid updating master block).
    p_session.set_value(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'MASTER_ACTION',
    p_value => 'None');
    doSave;
    For eg, let's say
    Master is from 'Dept' table and Detail is from 'Emp' table(with join condition Dept.dept_id = Emp.dept_id). In the master remove everything except dept_id field and in the HTML layout for master remove the reference of the dept_id field(you cannot remove this field physically from the master layout). Now the form will look like multirow form rather than master detail form but only problem with this workaround is 'Detail Action' will be present in the detail block.
    I hope this will help you.
    Thanks
    -Krishnamurthy

Maybe you are looking for