Edit a ligne in a Table

Hi,
I've a Table component bound to a database table.
I've added a column with 2 button visible(delete and modify) and 2 button not visible (validate and cancel)
When I clic on modify , I want the 2 first button to disappear and the 2 other to appear.
I don't know how to do ...
When I clic on modify, all the button of the table appear (validate and cancel) and disappear(delete and modify).
What is the way to do the same thing, but only on the line where I clic ?
Nicolas

Hi Nicols,
Please take a look at the following blog entry by a Creator engineer which might be of help to you:
http://blogs.sun.com/roller/page/winston?entry=single_selectable_row_table_component
Cheers
Girish

Similar Messages

  • How to insert a text edit UI element  in a table

    hi all,
    I want a text edit UI element in a table .I do not want input field because text entered can be very long and whole text cant be seen then.Is there any way to increase the width of input field if i insert an input field ? or what can be other solution for this?

    Hi Govind,
    You can't insert Text Edit as a cell variant in table. But you can increase the 'Width' property of Input Field, say to 500px or as per your requirement, so that you can display the full text at one go. Or you can bind the 'Width' property to a context and set the width at run time as per the text length.
    Thanks,
    Sumit

  • W to add a editable DFF to a Results table

    Hi,
    How to add a editable DFF to a Results table.When i am enabling the DFF, i can see the segments of that DFF, but if i am entering any data and clicking on apply, the data is not getting saved.Could any one help me in this?

    Books made  with iBA, when  viewed on iPad already have a Notes facility.
    Tap on the iPad screen to open the top menu bar, third icon from left opens the  Notes and will tell you how to use.
    Your readers will be able to  add a note and create study cards.
    Check this....  https://discussions.apple.com/thread/5567848?tstart=0

  • How to get edited row values from ADF table?

    JDev 11.
    I have a table which is populated with data from Bean.
    I need to save changes after user make changes in any table cell. InputText is defined for table column component.
    I have defined ValueChangeListener for inputText field and AutoSubmit=true. So when user change value in inputText field, method is called:
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    getSelectedRow();
    SaveMaterial(material);
    This method should call getSelectedRow which take values from selected table row and save them into object:
    private Row getSelectedRow(){
    RichTable table = this.getMaterialTable();
    Iterator selection = table.getSelectedRowKeys().iterator();
    while (selection.hasNext())
    Object key = selection.next();
    table.setRowKey(key);
    Object o = table.getRowData();
    material = (MATERIAL) o;
    System.out.println("Selected Material Desc = "+material.getEnumb());
    return null;
    Problem is that getSelectedRow method doesnt get new (edited) values, old values are still used.
    I have tried to use ActiveButton with same method and it works fine in that case. New values are selected from active row and inserted into object.
    JSF:
    <af:table var="row" rowSelection="single" columnSelection="single"
    value="#{ManageWO.material}" binding="#{ManageWO.materialTable}">
    <af:column sortable="false" headerText="E-number">
    <af:inputText value="#{row.enumb}" valueChangeListener="#{ManageWO.SaveMaterial}" autoSubmit="true"/>
    </af:column>
    <af:column sortable="false" headerText="Description">
    <af:inputText value="#{row.desc}" valueChangeListener="#{ManageWO.SaveMaterial}" autoSubmit="true"/>
    </af:column>
    </af:table>
    <af:activeCommandToolbarButton text="Save" action="#{ManageWO.EditData}"/>
    What is a correct place from where save method should be called to get new (edited) values from ADF table?
    Thanks.

    Did you look into the valueChangeEvent?
    It has oldValue and newValue attributes.
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    Object oldVal = valueChangeEvent.getOldValue();
    Object newVal = valueChangeEvent.getNewValue();
    // check if you see what you are looking for.....
    getSelectedRow();
    SaveMaterial(material);
    }Timo

  • Get data in editable ALV back to internal table without data_changed ev?

    Hi,
       I have an editable ALV using classes to whch I have users the option to edit directly on the screen or upload data from an excel. The event data_changed gets triggered when users edit the table on the screen.
    However when EXCEL is uploaded, I refresh the table display. So, I need a way to get the data from the ALV into a internal table to check which rows were update using the excel and save them into the db table.
    Prakash

    Hi!
    For more information, inspect programs suiting the mask "BCALVEDIT*" and the thread with header "How to make a row of ALV editable " (I know this is some more steps further from your demand but it may be useful) at URL " How to make a row of ALV editable " .
    If you want to study more BC412 "EnjoySAP Controls" may help you.
    *--Serdar

  • How to create editable tablecells for a single table row dynamically?

    Hi
    How to make the cell of a tablerow editable based on flag in backing list object bound to row? I can't decide the editable property while creating table columns. So i can't use setCellFactory() during creation. However setCellFactory() makes all cells in table column editable.How to make non-editable table row cell editable and vice-versa based on flag?

    hi
    good
    if you want to create two different view for a same table than you cant give the same name for the same view,otherwise it would allow you to create the view.Try out with different view name as well as the function group name,i hope this ll work.
    thanks
    mrutyun^

  • How To Edit Selected Row In ALV Table

    Hello Experts,
    In My Webdynpro Application, I am displaying records from database table into an ALV Table.
    I want to edit only selected record from  ALV table.
    Please Suggest How to achieve this.
    Thanks,
    Pratibha

    The link given above is for the UI element 'Table' and does not pertain to ALV.
    To Make an ALV Editable on lead selection for that particular lead selected row.
    1. The ALV should be made lead selectable, when initializing
    2. The ON_LEAD_SELECT function should be invoked.
    3. Withing this function the index has to be retrieved to know which row was selected.
    4. Based on the index retrived all the columns have to pass FALSE to read_only in the column properties.
    Regards,
    Pramod

  • Unable to edit the data in z-table

    Hi All,
    I can create new entries in a z-table.
    But i am unable to edit the existing rows of a z-table in the Production server.
    The same can be done in DEV and test servers.
    How to come out of this issue?
    Kindly Help me....
    Regards
    Pavan

    Hi,
    For this you have to maintain table maintenance generator....
    go to se11....your table name
    utilities--->table maintenance generator...
    build a table maintenance generator..and transport the table...
    then only you will be able to edit data in production server...
    Regards
    Debarshi

  • How to edit data from a "View Table"?

    I am importing data from a "table view" where in sql it joins several tables into one view. When I passed it in using the template it doesnt have the "Edit command column" like other direct link tables. Is there anyway I could make a view table editable? Can I manually try to do it or I have to edit the individual ables? thanks

    oh sorry about that.The "template" I mean in HTMLDB when I start building a new application I used "Based on existing tables" method and with single tables it generates everything fine with search fields and edit column to the left. I have a table view that combines about 4 tables together and I used the same template (Based on existing tables) and it has the search and create but it doesnt have the "edit" column on the left. Is there a way I can edit the view table's information so that the other tables that the view combines will be updated/edited?
    The reason is that lets say I dont know this person's ID number but I know his name. I search for his name on table A and it returns some general data including his ID number. Instead of going to another Table B with the person's ID number and edit that table I really want to see the information just from one search (Table A)- if a global search can be implemented that would be great too. Thanks Sergio.

  • Is there a way to edit, or link to other tables Forms on Numbers?

    I was trying to edit a Form in Numbers, and also try to use multiple tables for a Form, and on that same topic, how can I link a cell from a table on a different tab to another table, i also tryed to format a cell as popup menu, and than poin the options on that menu to a cell on a table so it would update it self every time a new cell would be add.. is there any one with ideas how to?

    What you are asking about is possible.  I don't have an iOS device with Numbers.  Referencing others cells (linking) is found in the Numbers Users Guide:
    http://manuals.info.apple.com/en_US/Numbers09_UserGuide.pdf  page 127
    you can get more focused help on this question in the forum dedicated to Numbers on iOS: https://discussions.apple.com/community/app_store/iwork_for_ios

  • SET_TABLE_FOR_DISPLAY - Edited value from dynamic internal table need to be captured

    Hi all,
    I have created  2 tabstrip screns which contain ALV GRID DISPLAY  in a container with dynamic internal table and editable columns .I want to capture the edited value from this ALV GRID display.I have used SET_TABLE_FOR_DISPLAY  and for this dynamc internal table is passed which is Field symbol and editable columns have to be captured for further updation into another ztable.
    When i used check_changed_data  i am getting dump as field symbol not assigned.
    Below is the code :  How can i get edited column value from below code
    call method alv_list->set_table_for_first_display
        exporting
                is_layout                     = gs_layout
        changing
          it_outtab                     = <fs_dynamic_table>
          it_fieldcatalog               = it_fieldcat[]
        exceptions
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          others                        = 4.
      if sy-subrc <> 0.
    * Implement suitable error handling here
      endif.
    Kindly help me to solve this.
    With Thanks,
    Dina.

    please provide more info about the dump to try to help you
    as max said, it could be because the field symbol is not global and if its global maybe you are not refering well to the column
    i assume that you are using "ASSIGN COMPONENT comp OF STRUCTURE struc TO <fs>" to capture the value changed
    validate always the sy-subrc after the assignment.
    but the check changed data have parameters that have the old and new values
    please provide more info...
    Regards

  • Edit only single line of table control

    Hi All,
    I have one scenario. Suppose i have created one table control. I have two row initially which is in display mode but I want to add one more blank row which should be only editable.
    Thanks,
    Anjaneya.

    DATA: wa_col TYPE cxtab_column.
    In PBO
    LOOP AT tctrl_ti-cols INTO wa_col.
          wa_col-screen-input = 0.
          MODIFY tctrl_ti-cols FROM wa_col.
        ENDLOOP.
    this is to make the entire column display mode.
    For  row wise display mode option,
    in the table control loop module, write the code to make the screen input as zero based on the condition
      loop at  it with control tctrl_it
                               cursor tctrl_it-top_line.
        module toggle_display.
      endloop.

  • Not able to edit the records in the table

    Hi Experts,
    I am not able to edit the records or delete the records from a database table.
    Those fields are not enabled.
    Edit icon is not at all there.
    Wat can i do.
    Cheers,
    Karthick

    Hi,
            In SM30, u can edit or delete records from a table.Before goin to this u need to create table maintainance generator for this table.
    regards
    lakshmi

  • Edit All Cells In All Tables

    Hello,
    This is my first post, but I have been working with InDesign scripting for a while, and am pretty fluent in Javascript.
    My scenario is, I have a document with about 1,000 pages. On each page is a table with approximately 100 cells, 10 rows and 10 columns with a description at the 0-space of each, followed by a floating point number (in the form of a percentage) in every other cell. What I need to do is format the text color of each percentage in each row depending on its value. For instance, in the first row, every percentage under 80.00% is red, while everything else needs to be green. All I need to do is color them based on their value. However, this value changes throughout the course of the 10 different rows.
    I was able to make a script that would allow me to go over each cell in row 1 of every table on a single page, then iterate over all the other remaining pages in the same way before continuning onto row 2. This is a VERY long process, typically leading to a crash in any document over ~30 pages in length. Given that I want to run this over a gigantic 1,000+ page document (granted there is only 1 table per page), it becomes slightly impractical...
    I'm simply curious if there is a way to run this in a more realistic manner. There has to be a quick way to iterate over each row, simply check the values, mark green or red and be done with it. My idea was to, perhaps, do every row in the table on one page and then go onto the next page, as opposed to row 1 over the entire document, followed by row 2, and so on and so forth? Perhaps that would help?
    The code is FARRR too long to post here, but the rough process I have right now is the following:
    1.) Setup variables to define the cells in each row:
         var allTables = app.activeDocument.stories.everyItem().tables.everyItem();
         var firstRowCells = allTables.rows[1].cells.everyItem().getElements();
             (There has to be a way to optimize that???)
    2.) Call a bunch of for statements for the amount of rows I need to process (10) per table:
             for(var i = 0; i < firstRowCells.length; ++i)
                   var a = parseFloat(firstRowCells[i].contents);
                   if(a <= 80.00)
                         firstRowCells[i].texts[0].appliedCharacterStyle = "FAIL Red";
                   } else if(a > 80.00){
                         firstRowCells[i].texts[0].appliedCharacterStyle = "PASS Green";
    ...all of this (about 10 for statements) results in a pretty rough crash. Anybody have a solution? Or at least an optimization tip?
    Thanks,
    -Chris

    The goal is to make it as automated as possible, as these 1,000 page documents will be occurring about twice a week (as far as I know).
    Here is what I'm looking at now with six rows programmed for a demo of my situation (figured I'd include a dummy first row for example):
    The grep style hasn't changed, except varies from line to line to meet the goal criteria, but here is the code for the six rows. Again, all I need it to do is make the same code work in the same way on all tables in the document and we're golden. This seems like the right approach, though, as it is much faster than the parseFloat() call method. (Sorry about the hard to read code...for some reason it doesn't paste well into these forums??)
    var cStyles = app.activeDocument.characterStyles;
                                  if((cStyles.item("FAIL Red") != null) && (cStyles.item("PASS Green") != null))
                                            for(var i = 2; i < 6; ++i)
                                                      firstRowCells[i].appliedCellStyle = "80";
                                                      firstRowCells[6].appliedCellStyle = "Trend";
                                                      firstRowCells[7].appliedCellStyle = "80";
                                            pBar.hit();
                                            for(var i = 2; i < 6; ++i)
                                                      secondRowCells[i].appliedCellStyle = "80";
                                                      secondRowCells[6].appliedCellStyle = "Trend";
                                                      secondRowCells[7].appliedCellStyle = "80";
                                            pBar.hit();
                                            for(var i = 2; i < 6; ++i)
                                                      thirdRowCells[i].appliedCellStyle = "80";
                                                      thirdRowCells[6].appliedCellStyle = "Trend";
                                                      thirdRowCells[7].appliedCellStyle = "80";
                                            pBar.hit();
                                            for(var i = 2; i < 6; ++i)
                                                      fourthRowCells[i].appliedCellStyle = "40";
                                                      fourthRowCells[6].appliedCellStyle = "Trend";
                                                      fourthRowCells[7].appliedCellStyle = "40";
                                            pBar.hit();
                                            for(var i = 2; i < 6; ++i)
                                                      fifthRowCells[i].appliedCellStyle = "50";
                                                      fifthRowCells[6].appliedCellStyle = "Trend";
                                                      fifthRowCells[7].appliedCellStyle = "50";
                                            pBar.hit();
                                            for(var i = 2; i < 6; ++i)
                                                      sixthRowCells[i].appliedCellStyle = "30";
                                                      sixthRowCells[6].appliedCellStyle = "Trend";
                                                      sixthRowCells[7].appliedCellStyle = "30";
                                            pBar.hit();
                                  } else {
                                            alert("Please setup character styles for PASS Green and FAIL Red, and re-run the program.");
    Thanks again, Trevor, for all the help!!
    -Chris
    Edit: Actually...it didn't paste too too poorly after all once I clicked "Post"...hmmmm...

  • Create a edit link from a dynamic table data to the correct record

    ok i have made a dynamic table with the correct information from the MySql database to populate it but i want to add an edit button to take me to the correct information i want to edit / delete. what is happening is no matter what record i want to edit it just takes me to the first record in the database?
    the link i am using is detail.php?userid=<?php echo $row_Recordset1['userid']; ?>
    where the detail.php is where the data can be edited
    thanks in advance for any help
    Jon

    There are 2 things you need to troubleshoot.
    First is the page where you have this link.  In the browser are you being taken to the right page?  Does the address bar show the proper id?  If so, then the problem most likely does not exist on that page.  Then if that is the case how are you pulling the data on the next page to get the right record?  Can you show us the query being used?  It is very hard to troubleshoot without seeing any code.

Maybe you are looking for

  • Mac OS X 10.8.3 causes random reboots.

    I bought my MacBook Pro in October 2007 (2.2 GHz Intel Core 2 Duo). After updating to 10.8.3, my computer randomly re-boots. I can also provoke it by opening a page with a couple flash videos or other processor intensive content. My computer became e

  • Music keeps coming on by itself on my iPhone

    All of a sudden my phone just starts playing music out of no where. On the middle of calls or just sitting on the table. Very annoying. Is it iTunes ? Please help

  • Ibatis fails to return int value...

    I've been trying to get IBATIS to execute a complex query and null is returned every time. I've tried to locate the error by using simpler queries and so far this is what I have discovered. This query works: select 1 as value from dual And this one f

  • How to convert select-options table into single field internal table

    Hi, My requirement is to convert select-options table into single internal table which has one field. e.g. select-options: s_matnr for mara-matnr.        select-options table can have options  'BT',"EQ", "NE", "GE", "GT", "LE", "LT", "CP" etc. select

  • No of print labels based on Product (printing of shopfloor paper)

    Requirement is to print labels during the confirmation of production orders. Number of print labels is determined based on the Finished Good product. For example Finished Good A --> 1 print label for production order confirmation of 1 unit Finished G