ReadOnly for one row in a table in Web Dynpro

Hallo,
is there a possibility to set rows in a table to readonly if there is a condition to do that.
The rest must be in normal lookout.
Kind regards
Gunter

Hi,
Refer to the flwg thread,
Field in web dynpro table for one row to be read only
Hope it helps.
Regards
Srinivasan T

Similar Messages

  • Get index of row selectable in table in web dynpro abap

    Hi all,
    How i get the index for the row in a table which i selected .
    Help me.
    Points are Sured.
    Sanket sethi

    Hi ,
    in the wdevent parameter of the action get the selected element
    eg
    context_element type ref to if_wd_context_element .
    context_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
    then call the get_index method..
    context_element->get_index( ).
    Regards
    Yash

  • Insert table in between two rows of the table in Web dynpro abap.

    Hi All,
    I have a requirment like this,
    while click on a hide/show button from the first row and last column of the table, want to display  a table(or add some rows to insert data) in between the  rows of the table and insert data in the new table .
    please help me wheather it is possible or not?
    Thanks,
    Raju.

    hi raju....
           if you want to insert rows.... then read the index of the row clicked and then read the node that is bound to the table and insert an empty row at that index and bind it back again....
           if you want another table then make use of table popin.
    --regards,
      alex b justin

  • How to delete multiple rows in a table of web dynpro for abap?

    hi,
    Experts ,
    I want to delete the selected multiple records from a table from that i have inserted a check box ui element in a first column of a table what ever checkbox ix checked i want to delete those selected records from table .
    please suggest me on
    Thanks in advance

    Hi,
    If you have DELETE button, in that action you write this code -
    DATA lr_node type ref to if_wd_context_node.
    lt_set  = lr_node->get_elements( ).
    loop at lt_set into ls_set.
    ls_set->get_staitc_attributes
    importing
    static_attirbutes = ls_row.
    if ls_row-check = 'X'.
    lr_node->remove_element( ).
    endif.
    endloop.
    Check the methods and thier types.
    Regards,
    Lekha.

  • Fetching more than one row from a table after selecting one value from the dropdown

    Hi Experts,
    How can we fetch more than one row from a table after selecting one value from the dropdown.
    The scenario is that I have some entries in the dropdown like below
      A               B               C        
    11256          VID          911256  
    11256          VID          811256
    11256          SONY      11256
    The 'B' values are there in the dropdown. I have removed the duplicate entries from the dropdown so now the dropdownlist has only two values.for eg- 'VID' and'SONY'. So now, after selecting 'VID' from the dropdown I should get all the 'C' values. After this the "C' values are to be passed to other methods to fetch some data from other tables.
    Request your help on this.
    Thanks,
    Preeetam Narkhede.

    Hi Preetam!
    I hope I understand your request proberly, since this is more about Java and less about WebDynpro, but if I'm wrong, just follow up on this.
    Supposed you have some collection of your original table data stored in variable "origin". Populate a Hashtable using the values from column "B" (let's assume it's Strings) as keys and an ArrayList of whatever "C" is (let's assume String instances, too) as value (there's a lot of ways to iterate over whatever your datasource is, and since we do not know what your datasource is, maybe you'll have to follow another approach to get b and c vaues,but the principle should remain the same):
    // Declare a private variable for your Data at the appropriate place in your code
    private Hashtable temp = new Hashtable<String, ArrayList<String>>();
    // Then, in the method you use to retrieve backend data and populate the dropdown,
    // populate the Hashtable, too
    Iterator<TableData> a = origin.iterator();
    while (a.hasNext()) {
         TableData current = a.next();
         String b = current.getB();
         String c = current.getC();
         ArrayList<String> values = this.temp.get(b);
         if (values == null) {
              values = new ArrayList<String>();
         values.add(c);
         this.temp.put(b, values);
    So after this, you'll have a Hashtable with the B values als keys and collections of C values of this particular B as value:
    VID --> (911256, 811256)
    SONY --> (11256)
    Use
    temp.keySet()
    to populate your dropdown.
    After the user selects an entry from the dropdown (let's say stored in variable selectedB), you will be able to retrieve the collection of c's from your Hashtable
    // In the metod you handle the selection event with, get the c value collection
    //and use it to select from your other table
    ArrayList<String> selectedCs = this.temp.get(selectedB);
    // now iterate over the selectedCs items and use each of these
    //to continue retrieving whatever data you need...
    for (String oneC : selectedCs) {
         // Select Data from backend using oneC in the where-Clause or whatever...
    Hope that helps
    Michael

  • Highlighting one row in a table control

    Hi All,
    Can i highlight one row in a table control. I found some stroke color in the properties for a field in table control. But i am not sure, will it be applied to the entire column or to a particular field.
    Anybody aware of this.?
    Regards,
    Manjunatha.T.S

    Hi,
    This is not currently available in VC.
    Lior

  • How to bring the more than one rows from the table into the script

    Hi
    I have to bring more than one rows from the table into the Main windows of the script. so plz help me out.
    Thanks in Advance
    Ananya

    Hi Ananya,
       Bring more than one row into main window of script.
       For this you need to do some changes for data which you pass to main window.At a time you need to pass more than one row,so for this you need to define one structure.See below code.
    Types:begin of ty_rows,
         include structure (your row_structure),
         include structure (your row_sturcture),
    Types:end of ty_rows.
    for example....
    If i need to pass 2 vendor details at a time to main window then the structure should be like this.
    Types:begin of ty_rows,
           vendor1 like lfa1-lifnr,
           vendor1_name like lfa1-name1,
           vendor2 like lfa1-lifnr,
           vendor2_name like lfa1-name1,
          end of ty_rows.
    Data:i_main type standard table of ty_rows,
         wa_main type ty_rows.
    Based on condition you can pass more than one rows of your actual internal table data to i_main internal table.
    Then you can pass i_main internal table to your main window.
        I think this will help you.
    Cheers,
    Bujji

  • Want to disable one row in a table

    Hi,
    I have a requirement where I have to disable only one row of a table.
    Also, I am not using any checkboxes/radiobuttons in the table.
    Please help me in resolving this.
    Thanking You.
    Regards.
    Reinuka.

    Hi,
    Create a Value Node in the below mentioed structure
    TableNode
    ---value1
    ---value2
    ---value3
    ---TableRowReadOnly(boolean)
    Note: - make sure that the attribute TableRowReadOnly is in the same level as the other attributes in the node
    Create an Action for the onLeadSelect event for the table and in that action, write the following code:
    int leadSelection = wdContext().node<nodename>().getLeadSelection();
    if(leadSelection != -1)
         for(int i = 0; i < wdContext.nodeTableNode().size(); i++)
                 if(condition)
                          wdContext().nodeTableNode().getTableNodeElementAt(i).setTableReadOnly(true);
                else
                          wdContext().nodeTableNode().getTableNodeElementAt(i).setTableReadOnly(false);
    Hope this helps u
    Regards,
    Poojith MV

  • How to set fire action event for particular rows in a table

    HI All,
    I have a requirement in which I want to set fire action event for particular rows in a table based on some condition.
    The table has columns like fullname,employee id etc.
    So i want to set fire action event for particulars rows only which will saisfy some condition.

    Atanu,
    Your approach(setting fire action for few rows) seems not possible. Better to go ahead with workaround.
    Do you want this functionality in processRequest(while page loading) or processFromRequest(on some event) method ? Give more explanation regd. your requirement ?
    In either case loop through the rows and when your condition is met write the action to be performed in controller.
    Regards,
    Anand

  • What is the keyboard shortcut for "delete row" in a table?

    What is the keyboard shortcut for "delete row" in a table within a pages document?

    Click on the row number to select the entire row. Right-click, and select Delete Row from the menu. There is no keyboard shortcut.

  • Need a report column to hold data for one row only

    Hey Guys,
    I have a report which has a column that links to another page in my APEX application.
    There is a requirement where only one of the rows in this report needs to have a link so I need the column to show the page link for one row and one row only.
    The report will have about 5 rows at a time so is there a way to just make this link appear for the one row(it will be the top row) in the column attirbute in APEX? or can this be done in the SQL for the report?
    Any help is much appreciated
    Thanks
    -Mark

    Hi
    The only way (I believe) to do this is within the SQL. Then you just wrap the column in a CASE statement and if it meets your criteria then build up the link and if not then display normally.
    Something like this...
    SELECT ename,
           CASE WHEN empno = 7839
           THEN '<a href="f?p='||:APP_ID||':4:'||:APP_SESSION||'::NO::P4_TARGET_ITEM:'||empno||'" >'||empno||'</a>'
           ELSE TO_CHAR(empno)
           END empno
    FROM empCheers
    Ben

  • Radio button for every row in a table

    Can anyone tell me how to get abutton for every row of a table.This button is used for selecting taht particular row.
    Thanks in advance

    Create a table region in Jdev. Then right click on it New--> Choose Single Selection.
    Thanks
    --Anil                                                                                                                                                                                                               

  • Drop down in allready displaying table in web dynpro

    Hi Experts,
    We have  a requirement where we are displaying the data of the table KNA1 in a table form (Web dynpro) which is editable.for the field NAME1 there must be drop down box which contain some values , so that for any row user can select one of the value and then when press SAVE button the table KNA1 should be updated with the new value of NAME1.
    Can you please let us know how to do this.
    Thanks
    Mahesh

    >Can you please let us know how to do this.
    Which part of what you describe and what exactly are you having problems with.  You can of course change the cell editor of your column to DDLB.  Is that where you are having problems.  Or are you trying to decied between DDLBByKey and DDLBByIndex.  For that I would suggest you read the following:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bb/69b441b0133531e10000000a155106/frameset.htm

  • Database table in Web dynpro

    Hi All,
    I am trying to use a database table in Web Dynpro. For this, o already created and deployed a dictionary project and one database table in that project. In my web dynpro project when i am accessing this table columnname it works fine, but its not allowing to insert the data.It is giving following error:
    The SQL statement "INSERT INTO "TMP_2" ("NAME") VALUES ( "ASDFGH") " contains the semantics error[s]: - 1:36 - the column >>ASDFGH<< is undefined in the current scope  where NAME is my column name.
    Also when i change some column name or add one more column to my table and then deploy it. After this, when i run my web dynpro project it doesn't show the updated column name and column count.
    Please help.
    Regards,
    Chirag Aneja

    Hi,
    Try using prepare statement as follows
    PreparedStatement pstmt = con.prepareStatement("INSERT INTO TMP_2(NAME) VALUES ( ?) );
    pstmt.setString(1, "ASDF");
    Regards
    Ayyapparaj

  • How to input multiple records in tables in web dynpro

    Hi
    In web dynpro table I am able to input data in first row only. How to input data in other rows.
    Thanks,
    Saurabh

    hi, okay..
    I summarize in 3 aspects:
    1.You want make the Table row play like "Input field"
    The solution is :
    In the table column, you set the cell editor as "Input field"
    2.You want to use the FILTER function
    The solution is :
    set Filter Value property and realize "OnFilter" event...
    3.You want to add Ready for Input rows to your table
    The solution is :
    You should make use of the Context Node bound to the table. The EXAMPLE coding:
      DATA lo_nd_flights TYPE REF TO if_wd_context_node.
      DATA lo_el_flights TYPE REF TO if_wd_context_element.
    * append the element with initial attribute value
      lo_nd_flights = wd_context->get_child_node( name = wd_this->wdctx_flights ).
      lo_el_flights = lo_nd_flights->CREATE_ELEMENT( ).
    * bind the newly created element
      lo_nd_flights->BIND_ELEMENT( new_item             = lo_el_flights
                                   set_initial_elements = abap_false ).
    4.You want to set N rows ready for input initially
    The solution is :
    Set the Row visible property..
    Best wishes.

Maybe you are looking for

  • How can I get into my locked Dreamweaver files?

    I bought a new iMac last week and transferred my CS4 files from my G5 (not Intel) to the new machine. First I used Apples migration assistant and found I couldn't open any of the CS 4 Adobe programs. So after Googling for answers I copied them all to

  • Font issue - how to troubleshoot?

    Hey all, I'm having a problem with my new MacBook Pro - I've only recently started using OS X. I'm a linguistics major, and Snow Leopard is giving me trouble with accents and diacritics. For instance, when I try to combine i with a grave accent (`),

  • Can I save from InDesign CS4 into a format thatcan be read by InDesign CS?

    Irecently installed Creative Suite 4 on my computer at work. However it is far too advanced for my computer. Is there any way I can save my InDesign file in a format that can be read by my old InDesign CS? I notice there is no other option when I go

  • How to use JOURN.E TOUCH as an e-reader?

    Greetings from Greece! I just bought the new Journ.E Touch Tablet. https://www.toshibatouch.eu/index2.php Although I'm happy with the different facilities, I haven't find a way yet to be able to read my e-books (pdf files), or any other "office" docs

  • How to access  complex data type from a soap web services?

    hello can u please tell me how can i access complex data type from a soap web service from jdeveloper 10g Jdeveloper generates 3 classes serviceStub getproperties response i have to retreview the data which is a complex data type it gives some unknow