How to achive multi-line editing (CRUD) with a table-UI on a ejb-model

Hello community,
i'm working on an prototype. we want to migrate an existing web-application to nw 7.1 with web-dynpro as ui-technology. the old application often uses javascript-/ajax- driven table-grid-controls. this table controls allowed editing the data in it. the conrol "records" every action. for example which rows were deleted, which were updated and which were appended.
when the user has finished editing, he simply clicks a save-button. the table-grid control then sends the changes via ajax-calls to the server.
now i want the achive such behavior in web-dynpro (7.1)
for getting the data to be edited, i wrote an ejb and created an ejb-model in web-dynpro. so viewing the data works fine so far. the view-controller with the table-ui-element is bound to the view-controllers context, which is mapped to the context-controller to which again a model-object is bound, which retrieves the data from the ejb.
inserting, updating and deleting single rows with a detail-view-controller also works, using additional context nodes (again mapped to addtional model-classes for crudp.
but i know want to have all rows and cells to be editable. the user should be able to insert, update and delete in that table without neccessarily using a detail-view-controller.
how would you achive this? holding every creates, update, deletes in single nodes? and when clicking a button to fire the save action to go to that nodes and apply that action? Or would you create an addtional flag-attribute in the node that shows what was done with that row? after pressing save also iterating the nodes, checking for the flag and doing the appropriate actions (but this maybee is performance critical when having a lot of rows)?
any ideas how to achieve multiple crud-operations on a context-node, viewed with a table-ui-element would be welcome.
regards
Matthias

Matthias,
Let's address your questions one by one.
1. You can make the table cells editable by chosing 'InputField' as TableCellEditor.
2. Since you have bound your table to 'View Context' and 'View Context' to 'Component Context', all changes made by you in table will be visible in Component Context after every round-trip to server.
3. To modify the data in 'backend', you need to modify your 'Save' method to check for every changed element and modify the data only if element was changed by user. To see if the element has been changed by user, use [IWDNodeElement.isChangedByClient()|https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDNodeElement.html] method. This method returns true if element was changed by user - this is what you need.
To learn more about WD Table UI element, you may want to see [this link|http://help.sap.com/saphelp_nw70/helpdata/en/eb/220a415a47f06fe10000000a1550b0/frameset.htm].   
Hope this helps.
Vishwas.

Similar Messages

  • How to display multi line headings in procedural alv report

    Hi experts,
    How to display multi line heading in alv( procedural alv report) report.
    some columns single line and some columns multi line in the same report.
    ex: 
                  solvent consumed          solvent recovered
                   fresh |   recovery             recovery | spent                            batch no                         storage
    I am using procedural alv .pls give me idea.

    Hi Ram,
    Check the sample report [how to display multi line headings in procedural alv report|http://sample-code-abap.blogspot.com/2008/01/printing-multiple-line-header-and.html]
    Thanks,
    Duy

  • How to draw horizontal line at the end of table for multiple line items

    Dear Experts,
                       Pls can anyone help me how to draw horizontal line at the end of table for multiple line items . kindly help me regarding this
    Thanks
    Ramesh Manoharan

    Hi
       I tried as per your logic but it is not solving my problem .  when i am gone to table painter it is showing line type 1 and line type 2
      is below format.. if u see here line type 1 bottom line and line type 2 top line both are same..  so how to avoid this ?
                              line type 1
                             line type 2

  • FormsCentral PDF Form- How to View Multi-line Fields

    I have a FormsCentral PDF form, which allows users to fill out the form and save as a PDF. However, after receiving the completed forms, I am unable to see all the text in the multi-line field boxes without opening them and scrolling down. Since I will be sharing several of these competed forms with a review panel, please let me know:
    1) How to display the entire content of the multi-line field boxes rather than having the reader scroll down, then
    2)  How to save the completed forms so that its read-only when I send it to the review panel

    I can point you to some online information.  I really don't know the steps myself.
    This blog talks about how to do it in LiveCycle Designer: http://blogs.uoregon.edu/developments/2010/12/29/pdf-making-text-fields-grow-to-accommodat e-text/comment-page-1/
    You could also consider asking the user in this post for their idea on how to do it without making a dynamic form (LiveCycle): http://forums.adobe.com/message/4841774
    Is there a reason you don't use FormsCentral to collect the responses?  You could sign up for a 1-month subscription unless you have security or other reasons not to collect with FormsCentral, and then you'd be able to collect your responses and download each one as a PDF form individually and that form would be locked and have expanded text fields.  You could stop automatic renewal and you would still have access to the form and responses in your Free level account (but could not collect more than 50 responses, if you already have greater than 50 those would remain).
    Thanks,
    Josh

  • How to discover multi-line of String that will come Flex by Java?

    Hi all,
    I am programming a little application by using Java and Flex.
    One of the functions that Flex contains will have the responsibility to
    send the TextArea value to Java as parameter.
    But that value could contain multi-lines string. Java recieved successfully but the problem that Java read it as single line.
    so, how can I fix this problem?

    Hi,
    so, is there any solution available right now for my problem.
    A text that will come from TextArea that could contains multi-lines
    will be sent to Java as paramenter.
    How can I distinguish the multi-lines onec I deal with it as String?

  • How to display multi-line popup message in user exit?

    Hi,
    I need to display a multi-line popup text message with controllable response buttons in a user exit.
    I looked at POPUP_TO_CONFIRM with its DIAGNOSE_OBJECT, but I need substitution parameters and the FM doesn't support this functionality. So this won't meet my needs.
    Does anyone have any suggestions (maybe with some example code?) about how to do this?
    Thx.
    Andy

    Code:
    LOOP AT I_KNB1 WHERE ZTERM NE ZPAGDESCR-ZZTERM.
    IF SY-TABIX = 1.
      IF I_TEXT_TABLE[] IS INITIAL.
         PERFORM HEADER TABLES I_TEXT_TABLE.
         REFRESH :  I_T052U.
            SELECT ZTERM ZTAGG TEXT1
           FROM T052U
           INTO TABLE I_T052U
           FOR ALL ENTRIES IN  I_KNB1
           WHERE SPRAS = SY-LANGU AND
                 ZTERM = I_KNB1-ZTERM.
        ELSE.
        REFRESH :  I_T052U.
        SELECT ZTERM ZTAGG TEXT1
           FROM T052U
           INTO TABLE I_T052U
           FOR ALL ENTRIES IN  I_KNB1
           WHERE SPRAS = SY-LANGU AND
                 ZTERM = I_KNB1-ZTERM.
           I_TEXT_TABLE-TDLINE = TEXT-T01.
           APPEND I_TEXT_TABLE.
           CLEAR I_TEXT_TABLE-TDLINE.
      ENDIF.
         MOVE 'Company' TO I_TEXT_TABLE-TDLINE+0(10).
         MOVE 'Payment' TO I_TEXT_TABLE-TDLINE+10(10).
         MOVE 'Day' TO I_TEXT_TABLE-TDLINE+20(5).
         MOVE 'Description' TO I_TEXT_TABLE-TDLINE+26(100).
         APPEND I_TEXT_TABLE.
         CLEAR I_TEXT_TABLE-TDLINE.
         MOVE 'Code' TO I_TEXT_TABLE-TDLINE+0(10).
         MOVE 'Term' TO I_TEXT_TABLE-TDLINE+10(10).
         MOVE 'Limit' TO I_TEXT_TABLE-TDLINE+20(5).
         APPEND I_TEXT_TABLE.
         CLEAR I_TEXT_TABLE-TDLINE.
         I_TEXT_TABLE-TDLINE = TEXT-T01.
         APPEND I_TEXT_TABLE.
         CLEAR I_TEXT_TABLE-TDLINE.
    ENDIF.
         MOVE I_KNB1-BUKRS TO I_TEXT_TABLE-TDLINE+0(10).
         MOVE I_KNB1-ZTERM TO I_TEXT_TABLE-TDLINE+10(10).
         LOOP AT I_T052U WHERE ZTERM = I_KNB1-ZTERM .
           MOVE I_T052U-ZTAGG TO I_TEXT_TABLE-TDLINE+20(5).
           MOVE I_T052U-TEXT1 TO I_TEXT_TABLE-TDLINE+26(100).
          APPEND I_TEXT_TABLE.
          CLEAR I_TEXT_TABLE-TDLINE.
         ENDLOOP.
    ENDLOOP.
    ENDIF.
    IF NOT I_TEXT_TABLE[] IS INITIAL.
      CALL FUNCTION '/RWD/POPUP_TO_DISPLAY_TEXTLIST'
        EXPORTING
      TASK             = 'DISPLAY'
          TITEL            = 'Inco term payment term mismatch'
    IMPORTING
      FUNCTION         =
        TABLES
          TEXT_TABLE       = I_TEXT_TABLE .
    ENDIF.

  • Multi-cam edit issues with multiple DSLR clips

    Hello,
    Working in CC. I have 2 camera angles that were filmed with 2 DSLRs, and mic'd audio that was recorded into a Zoom H4N. Audio recording never stopped, but due to the nature of DSLRs, the 2 cameras would stop recording every 12 +/- minutes. In this end, I have:
    Camera 1 - 16 clips
    Camera 2 - 17 clips
    Zoom H4N - 1 track
    When using the multi-cam source sequence option, it understandably thinks each clip is a new camera/angle. However, that's not very helpful for me when I have 17 angles (15 of which are blank) showing up in the program monitor. Any suggestions on how to better tackle this dilemma?
    Thank You.

    Thanks, Mark. Appreciate the quick response. After messing around, I combined your method with PluralEyes (seemed less tedious that syncing 17 clips manually). There might be a faster/easier way, but this is what I did, in case any one is curious (sounds more tedious than it actual is):
    1. Select cam 1 clip 1, cam 2 clip 1 and external audio in the Browser.
    2. Left-click, "create Multi-Camera Source Sequence." Two angles and audio are now in a multi-cam sequence. Rename as Multicam_Source_Sequence
    3. Create new sequence, called Sequence_01 and open in timeline.
    3. Excluding cam 1 clip 1 and cam 2 clip 1, drag all remaining clips of cam 1 to V1, all remaining cam 2 clips to V2, and single external audio to A3 into Sequence_01 timeline.
    4. Launch Sequence_01 into PluralEyes 3. Sync and Export.
    5. Open PluralEyes' "Sequence_01_synced" (not "Sequence_01_synced Replaced") in timeline.
    6. Find a good marker point toward the beginning of the audio where it has synced cam 1 clip 2 and cam 2 clip 2. Cut at that point.
    7. Copy all video tracks (exclude audio tracks).
    8. Find Multicam_Source_Sequence and open in timeline (un-nested, so that all tracks are revealed).
    9. Manually find the same audio marker point where you cut in Sequence_01_synced. Place playhead directly at cut point.
    10. Paste video clips. All tracks are now synced in a multi-cam sequence.
    From here, it's the usual steps for preparing multi-cam editing, like you mentioned.
    11. Create new sequence, called Multicam_Working_Sequence. Open in timeline.
    12. Make sure nesting button is turned on in timeline.
    13. Drag Multicam_Source_Sequence into Multicam_Working_Sequence.
    14. Right-click the nested sequence>Multi-Camera>Enable.
    15. Enable Multi-camera view in Program Monitor's panel menu.
    Voila! Took me awhile, but this works.And no 17 angles popping up in the program monitor. Let me know if you'd add (or remove) anything. Thanks, again!

  • How to expand multi-line fields in pdf forms?

    I have a FormsCentral PDF form, which allows users to fill out the form and save as a PDF. However, after receiving the completed forms, I am unable to see all the text in the multi-line field boxes without opening them and scrolling down. Since I will be sharing several of these competed forms with a review panel, I would like to:
    1) Display the entire content of the multi-line field boxes rather than having the reader scroll down, then
    2)  Save the completed forms so that its read-only when I send it to the review panel
    I am not collecting responses via FormsCentral. I am just receiving the PDF via email.
    Can someone please help me?
    Thank you!

    You can use a script to change the font size to Auto, which will cause all of the text to display, assuming it can be even at a font size of 4. For example, the following code can be executed in the interactive JavaScript console (Ctrl+J):
    // Set the font size to Auto for a text field named "Text1"
    getField("Text1").textSize = 0;
    A script that will change this for all multline fields in the form is:
    // Set the font size for all multiline fields to Auto
    for (var i = 0; i < numFields; i++) {
        var fName = getNthFieldName(i);
        var f = getField(fName);
        if (f.type === "text" && f.multiline && f.textSize !== 0) {
            f.textSize = 0;
    This script could be included in an Action if you want to do this for a collection of forms.

  • How to make multi-line report headings?

    Hi all,
    By default, Apex creates a single-line report heading for each column in a report.  To minimize white space, multi-line column headings are sometimes appropriate.  How can Apex be directed to split a column heading at certain place(s)?
    Thanks,
    Kim
    P.S. I'm running Apex 4.2.2. 

    See https://forums.oracle.com/message/11154533

  • How to display multi-lines text correctly (view only mode)

    Hi,
    I have a description field that includes multi-lines format, where the lines are being separated by
    characters: chr(10) and chr(13).
    When I’m using messageStyleText (or rawText) – I’m getting all the data in one line.
    Can you please recommend of an OAF item that will display the text correctly?
    Should I use another character as the line separator?
    Thanks in advance,
    Rona

    Hi Rona;
    rawText item supports HTML tags. so you can use br tag.
    Best Regards;
    GsrC.
    Message was edited by:
    GsrC

  • How to add multi-line text in comments field of song tags in iTunes 12?

    Recently upgraded to iTunes 12 and can no longer enter multi-line text in the comments field of a song tag.  Used to use option+return (alt+enter) to go to a new line (carriage return).  Can it still be done?  Any help in this regard would be appreciated.

    See my other post for the solution to this problem.

  • Multi line pattern search with like

    Hi All,
    I am using oracle 9i. I want to search for multi - line pattern.
    for e.g.
    update tablename
    set columnname .
    I used select * from user_source where text like '%update tablename%set columnname%' but this only seem to work if update tablename set columnname is in the same line .
    Thanks.

    Well, no wonder it does not work. USER_SOURCE stores one line of text per row, so column text by definition can not contain multi-line strings . One solution could be analytic function LEAD:
    SQL> create or replace
      2    procedure p1
      3      is
      4      begin
      5          update emp
      6             set ename = ename;
      7  end;
      8  /
    Procedure created.
    SQL> select  distinct name
      2    from  (
      3           select  s.*,
      4                   lead(text) over(partition by name order by line) next_text
      5             from  user_source s
      6          )
      7    where text like '%update emp%'
      8      and next_text like '%set ename%'
      9  /
    NAME
    P1
    SQL> SY.

  • How to pull multiple lines of info from a table for a Specific Company/Address

    What I would like to do is have one Table that I enter all my information on in Numbers for incoming rent like the one below. Since I have 8 spaces to rent I will have up to 96 plus rows of information to look at. But I would like to have Numbers then on separate pages is have the individual Companies have their own rent break down on a table with the Date Recieved and the amount they payed. From there on their separate page I can have the Late Charges come into play or whatever I choose.
    Date
    Company
    Address
    Rent Recieved
    Jan 1, 2011
    X
    430
    $1,100.00
    Jan 3, 2011
    Y
    440
    $1,200.00
    Jan 5, 2011
    Z
    450
    $1,300.00
    Feb 1, 2011
    Y
    440
    $1,200.00
    Feb 3, 2011
    X
    430
    $1,100.00
    Feb 8, 2011
    Z
    450
    $1,300.00
    Mar 1, 2011
    Z
    450
    $1,300.00
    Mar 2, 2011
    X
    430
    $1,100.00
    Mar 5, 2011
    Y
    440
    $1,200.00
    The following table would be on the separate page with the formula (I do not know how to write) grabbing the info from the above table.
    Company X Rent Recieved
    Date
    Rent Recieved
    From the formula that one of you gracious smart people provide I could create a table for each of the Companies that rent from me on their own Tables on separate Tabs.
    I know I could go to each individual Tab and write it in but I will be primarily working on my iPad and this would make it easier. I can also utilize the fresh Tables to do other calculations.

    I got a soluce with no swap.
    I created a new column (E)
    In E2, the formula is :
    =B&IF(ISBLANK(A),"",MONTH(A))
    Apply Fill Down
    In table of each company, I inserted a 2nd header row so that I may store the name of the company in A1.
    In A3, the formula is :
    =IFERROR(OFFSET(Tableau 1 :: $A$1,MATCH($A$1&ROW()-2,Tableau 1 :: $E,0)-1,0),"")
    in B3, the formula is :
    =IFERROR(OFFSET(Tableau 1 :: $D$1,MATCH($A$1&ROW()-2,Tableau 1 :: $E,0)-1,0),"")
    Select A3:B3 then Fill Down.
    That's all folks !
    Yvan KOENIG (VALLAURIS, France) jeudi 19 mai 2011 17:18:32
    Please :
    Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to find open line items from the BSID table

    Hello Guru's
    I need some fever from you......... please any one tell me that How to find the open line items from the BSID table .
    please replay ASAP..
    Regards,
    Raghunath.S

    Hi Raghunath
    BSID and BSAD are Secondary Index tables for Customer line items. All customer open items are stored in BSID table and Cleared items are stored in BSAD table.
    Regards,
    Venkat

  • 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

Maybe you are looking for

  • Error while resetting the delta in ODS  (BI 7.0)

    Hi all, I face a problem in delta resetting...need your help... Thanks.. I have an ODS-1  which has target cube1, cube2, cube3....One week back a new target has been added as ODS-2....All complete data from ODS1  has been piped into ODS 2..(Note.. OD

  • Stream dvd from macbook pro late 2013 to tv

    Can I stream a dvd from my macbook pro using usb superdrive to tv?  I have a thunderbolt to usb connector.  What else do i need?

  • Ichat won't connect

    With all settings being what they were before, I can no longer reliably connect to AIM. In fact, the menu bar dropdown may indicate I'm online, but my buddy window insists that I'm offline. Selecting an 'available' status has no effect. Settings are

  • X-fi Remote in

    I installed the X-fi driver(s) for X64, and it appears everything works fine except the remote. Would I be correct in a assuming Creative does not have 64-bit drivers for the X-fi remote? If yes, where can a get the driver? Are there any 64-bit drive

  • Error -4 found while trying to ràconfigure m'y export express first generation  through windows7

    Error -4 mentionned while trying to reconfigure my AirPort express 1st gen through windows 7 Look fo à way to succeed