JSF multi row editable detail form -- moving backwards or forward

Innocently trying to create an intuitive editable master detail JSF form. Similar to what you would want in any application and something that can be done in less than a minute in Oracle Forms
The master form is a just a simple editable single master form based on the dept table. and the detail is the emp table. I have create the model using the wizard and made sure a link view is created.
The details form is a multirow form with all the editable columns
I added two button for the details form (create, remove)
I entered the master record (no commit yet)
then i moved the cursor to the details form and created a few records, i found an error in the second row in the detail form, therefore, innocently, i selected that row and pushed the Remove button. shocked to find out that the first row in the details form is deleted regardless of which row is selected. Additionally, when a row is created using the create button, the row is created above the first row of the details form (as if the first row in the details form is always current).
Such requirement should be easily satisified by a Framework?
Ammar Sajdi
Oracle
Amman

thank you frank for your response
Actually, my DETAILS form DOES include the Select Option, and i was really expecting (and accepting) the fact that i need to point to the row i need to delete. Actually, 20 years back i was 8080 assembly language programmer, and used to handle thing at very very low level. However, i do select a row, and i can see the Radio activated for that row, unfortunately though, the seemingly selected item in the DETAILS form is not the one that is removed, it is instead, the first row that is actually removed. It seems as if the form rows are not synchronized with the ROW selector you mentioned,, The first row is somehow internally selected (always)
This is the interesting part.
I created another project with a single multi row editable table (without master details) only a master, and guess what, it is working beautifully! exactly as you descirbed. Select a row, press delete and there you go, the record no longer exists
Ammar Sajdi
visit me
www.e-ammar.com/Oracle.htm
regards

Similar Messages

  • Multi-row editable Detail Component on the same Page as Master (WSG)

    Hello. There was a trick to place editable (with Update button and Delete? checkboxes) Detail Component on the same Page as Master. Something about a Creation of Detail Component in Property Palette Mode (against of Dialog). Can anyone point me please to those hint?
    great thanks,
    Wit.

    Look at the page branches. There will be one or more which goes to the first page. Change it to go to the current page instead of the first page.

  • Multi row edit without having to use htmldb field

    Hi guys,
    a question: have someone ever implemented a multi-row edit report, like the one on Oracle HTML DB Handbook, without having to use htmldb field?
    If so how? Only describe the steps or provide me some links. I think is enough.
    Other little question:
    When you use the syntax like:
    htmldb_application.g_f05(i) (inside a for loop), can i use another naming style instead of using gf05 ?
    Let's assume that g_f05 is sal, for me would me more clear use a synthax like htmldb_application.sal(i).
    I think would be a good improvement in the future version of APEX.
    I
    thank you very much

    hey,
    i think that what i saw in the sample application / section admin can't work for my needs, such i'have a quite complex query (pl/sql f body ret sqlquery).(infact the demo is based on a simple query, while i need to use a psqlf.b.r.q)
    However what i need is only a row selector, using a report based on a psqlf.b.r.q.
    By me i've to use the htmldb_item.
    Maybe for my purpose a collection can simplify the problems, however this is briefly what i'm trying to do:
    I've 2 set of data.
    D1 and D2.
    D1 is based on complex filter(which i think it can't be managed from a normal query at all / you have to use pfbrq)
    D2 is not(quite simple).
    D1 AND D2 have the same type and nr of columns.
    The user can choose from a radio group this 3 mode of view.
    1 - The user see D1 (UNCHECKED) UNION D2 (CHECKED).
    2 - The user see only D2. CHECKED.
    3 - The user see only D1 UNCHECKED.
    Both D1/D2 can be displayed in the same report.
    If Data of D1 are already in D2 they are checked.
    (i think here a not in select can do quite well the job).
    Hope that somebody understand what i've tried to explain, or maybe has had the same type of problem.
    Thank's a lot
    Message was edited by:
    Marcello Nocito
    Message was edited by:
    Marcello Nocito

  • JSP Multi Row Edits and Struts Validator

    Hello,
    I followed this howto: http://www.oracle.com/technology/products/jdev/tips/mills/JSP_Multi_Row_Edits.html and implemented multi row editing. Now I'd like to use Struts Validator for validating data in multiple rows. Is there any howto document on this subject?
    Thanks,
    Anna

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

  • Moving backward and forward doesn't work as it used to do

    The latest update, 32.0.2, or perhaps the one earlier, 32.0.1, has created a problem with Fx.
    Moving backward and forward doesn't work as it used to do; and if it is done quickly, backward and then forward again to the last page, Fx gets confused and both pages get the same address and the browser shows the same page.
    Guess it has something to do with the latest changes to how Fx handles the cache, or that in combination with how some pages use scripts.
    As it is it can be a pain to use sometimes.

    Are you able to switch songs from control center when Spotify is playing on your phone?
    If you have Spotify playing on your computer then it won't show in control center on your phone. You will have to open up the app to control music on your computer. 
    This is because iOS does not show anything on the control center unless an app is outputing audio. The Spotify app is not outputing audio, it only shows what is playing on your computer.
    Does that make sense?

  • 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

  • Add a new Row in detail form

    Hello Everyone ,
    I have add row Botton on details form to add row and save button to save data .
    When I clicking to add row its creating new row but as i am saving it it says 1 row inserted but when i am accessing the same data the new added row was not showing there .
    I am not getting any error .I have master detail form
    Thanks in advance

    I'm having the same issue.
    However, I've noticed that the ROW in question is getting added to the database, but it's not populating the KEY column that links the sub table.
    MASTER TABLE
    MK_ID number
    MK NAME varchar
    SUB TABLE
    SK_ID number
    MK_ID number (should link to above)
    SK_NAME varchar
    I get the message that the row has been added in APEX, but then nothing shows on the web form.
    Doing a quick query of the Sub Table, I can see the row (minus the Master Table key).
    MASTER TABLE
    MK_ID = 1
    MK_NAME = KEN
    SUB TABEL
    SK_ID = 3
    MK_ID is NULL !!
    SK_NAME CHILD1
    It "ALMOST" works.
    I used the wizard to create this, and did NOT modify anything, so I assume this should be an open bug, and people shouldn't use it.
    Cheers!
    Edited by: Canucklehead on Nov 23, 2008 4:52 PM

  • Change color multi-row highlite tabular form

    I would like specific instructions on a quick way to change the highlite color when the multi-row check
    box is chosen on a tabular form.
    Thanks,
    Sabrina

    Sabrina,
    To change the background color of the rows selected using the row selector, edit the report template you’re using, scroll down to row highlighting and type the color you like into the field labeled “Background color for checked row”. You can type in the name of the color or the code.
    Hope this helps,
    Marc

  • Add a new row in Detail form in MASTER DETAIL FORM

    Hello Everyone,
    I need help on the following.I have master detail form .In detail form i have Add Row button which adds a new row and i have save button to save the record .But now if i am adding a row its not adding a new row .It says it process but didn't show the new row .
    Can somebody help me on this
    thanks in advance

    Hello,
    How many records do you show in your detaii region and how many are there for that master? Maybe the new row is in the next set of records - or at the 'bottom' of the last set of records?
    Did you check if the row is inserted in the database (and just didn't show up for one reason or another)?
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

  • Add multiple rows in detail form in master detail form

    Hi,
    I have a master detail form to enter survey responses. The master form captures the participant information and the detail form will carry the survey responses. After entering the master record, I need the detail rows to be populated with the survey questions stored in another table. The respondent will then update the response for each row in the detail form. Only after all the responses are filled out, clicking the save button should the detail records be committed.
    Is there a good way to achieve this.
    Thanks in advance
    Gopal

    Sorry, did not check OTN until this afternoon. Busy checking existing Apex pages on my project :)
    Our region to populate the tabular form has the tabular form fields defined as Display As Text (saves state). Non-enterable fields are defined as "Display as Text (saves state)". A tabular form results from these definitions.
    Because Apex won't generate code to handle multipe row tabluar form inserts we wrote our own as an After Submit PL/SQL process, something like
    DECLARE
      v_rows_found_n number;
    BEGIN
      --code for debugging
      raise_application_error(-20000,'Hello World: '||
        apex_application.g_f03(12)||':'||
        apex_application.g_f04(12)||':'||
        apex_application.g_f05(12)||':'||
      for i in 1..apex_application.g_f01.count loop
        BEGIN
          --attempt update first
          update whatever
             set field4 = apex_application.g_f05(i)
           where field1 = apex_application.g_f03(i)
             and field2 = apex_application.g_f04(i)
             and field3 = apex_application.g_f02(i);
          v_rows_found_n := SQL%rowcount;
        --if no rows were updated perform an insert
        if (v_rows_found_n = 0) then
           insert into oe_metric_values(
             field1,         --1
             field2,         --2
             field3,         --3
             field4          --4
          values(
            apex_application.g_f02(i), --1: field1
            apex_application.g_f03(i), --3: field2
            apex_application.g_f04(i), --2: field3
            apex_application.g_f05(i)  --4: field4
        end if; --did update operate on any rows?
      --exception
      --  when others then
      --    raise_application_error(-20000,'i'||':'||
      --      apex_application.g_f03(i)||':'||
      --      apex_application.g_f04(i)||':'||
      --      apex_application.g_f05(i)||':'||
        END; --internal loop block
      end loop; --loop through tabular form submit elements
    end; --pl/sql blockI had to get the identities of the f01, f02 etc. identifiers by looking at the HTML code in the rendered form because Apex assigns those values as it will. Anytime the column display changes in any way i have to go through and make sure the identifers have not changed.
    Hope this helps.

  • Moving backwards and forwards in a song/audiobook

    If I want to move backwards or forwards in an audiobook, the manual says I push on the center button - a scrubber bar will appear and then I move the wheel to go forward and backwards. This is how it worked in my old iPod.  However, with my new 160gb iPod classic, another screen appears asking whether I want it to playback faster or slower. How do I get the scrubber bar to come up so I can move backwards and forwards. Thanks

    Then it's time for a new keyboard.  If you are still under warranty, call AppleCare. 
    For DIY keyboard repair check out the following websites: 
    iFixit 
    YouTube “How To” tutorials.

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

  • Moving backward and forward during narration

    Dear guys,
    I've recorded a narration in my keynote presentation. The problem is that i can't move through slides during narration itself: with keyboard arrows or mouse clicks etc. I can't back to the previous slide or move forward. It's like all is 'blocked' during voice playing. I would like to have narration voice, but if i decide to view again a slide (for example a previous slide), I would come back to it and the narration of that slide would 'restart' to play;the same if i would like to go to the next slide. Also exporting the presentation with quicktime, what you I get is just a video that can't be put on pause or controlled to view previous or next slides. The problem of this may be explained because keynote records just a single, long audio track (at least it seems so); instead it should record a little track for each slide and stop that track when, during recording, i move to the next slide.
    Any solutions?
    Thank you very much in advance and sorry for my bad english,
    LogicBomb
    P.S: I'm running keynote '08, version 4.0

    A slideshow with a Recorded Soundtrack (the narration in your case) cannot be interrupted during playback; doing so will cause the entire slideshow to stop and restart from the beginning. This is one of the many shortcomings of Keynote with respect to how it manages audio.
    Unless you need a "seemless" audio track, the only way you can accomplish what you have described (being able to go back or advance slides manually) is to record the narration for each slide as an individual audio track and insert it with that slide (Build-in). This will ensure that it is locked to and plays with the slide any time it is on the screen.
    If you want a "seemless" audio track, I'm afraid that with the current version of Keynote, this will not be possible.

  • Master-Detail Multi-Row Insert

    Im still using Oracle forms 6i. How do we create here in ADF for the transaction in master-detail operation specially in inserting multi-row in detail. In forms we can use key-next item trigger next_record for new record transaction for drugs or we can use bar code scanning to insert new records & automatically go to next records waiting for another input...
    pls help me i want to upgrade & pls sorry for my english...
    just want this adf behave like forms in terms of master-detail transaction entry...
    i appreciate if someone can help me or give me demo file to download & play with it...
    Edited by: user8983555 on Nov 10, 2010 10:30 AM

    tnx for the fast reply..
    im new with jdeveloper and no knowledge in java or html. im concentrated in pl/sql , forms 6i.We still using this until now in character base in unix environment but some module in gui mode.im working in hospital which is complete informations sytem (stock,pharm..etc...gl...) which in bulk transactions specially patients outclinic & inpatients charges.now we have also this reservations system for out clinics thats the reason im like to develop for in a web that a patient can reserve on line and i dont like running our application in different front end (forms 6i &jdeveloper).
    (now currently checking form10g & just set up AS10g which is working.can deploy and connect,LAN). but im very interested in ADF when i see the demo on Oracle website.
    now our company pplanning to change our application to power builder whiich is not good in performance regarding in hadling big databases (slow query,needs burst AS...) thru to the demonstration of the
    apllication vendors.
    im very glad if you can help. can you post a links or demo file to do this as you said....(You can replicate the code in the button in some other event on your page, for example when the value of the last field in the row is changed.
    It all comes down to the question of when you actually want to create a new row, and in that event you call the createInsert method.)
    this is my only problem now to make this master-detail multi-row insert like ora form.
    again sorry for my english...

Maybe you are looking for

  • Email on iPad and iPhone 4S

    I've had an iPad for a few months and get my email on it. This week I got an iPhone 4S. I set up my email using icloud and all was working fine the first day. All yesterday and today I haven't received a single email on my iPhone. I have checked the

  • Signal ILL trying to debug java process with dbx

    Hello, I'm trying to debug a java process to find an error in JNI code. I get this message when dbx stops in a C breakpoint: t@18 (l@19) signal ILL (illegal trap) in (unknown) t@18 (l@19) signal ILL (illegal trap) in (unknown) at 0xf848ed28 0xf848ed2

  • How do I turn internet usage of (expect in WiFi zones)

    I am on a price plan that does not give me any internet acces, only in WiFi areas.  But i recently went on the internet without knowing and was charged.  Is there a way I can turn the internet off expect in WIFI zones to stop this from happening agai

  • Delta replication of Sales Org, Sales Off and Sales Group (ECC to CRM)

    HI All, I am struck with the delta of the Sales Area. Sales org with 6 Sales Offices and 6 Sales Group were created in the ERP and all this were replicated in to CRM in Initial but now my client wants to add 3 more sales offices with 3 Sales Groups.

  • Can you make a bootable 10.8 disk drive and add tech tool pro

    Can you make a bootable 10.8 Disk Drive and add TechTool Pro