Disable Lead selection for table row cloumn

HI Team,
I have table with multiple rows and multiple columns.
Based on the lead selection of the row we are displaying the some form.
But in table row there are some columns like enter date, when the user is trying to enter the date, it displaying the form because of lead selection and it is not allowing the user to enter the date.
So, I want disable the lead selection for some columns.
How can I do this?
Regards,
BAla

Hi
I think that you can get  the UI Table in the wdDoModifyView method, and then the UI Column and play with his values, is something like this:
IWDTable table =(IWDTable)view.getElement( ");
And then play with the "column" methods.
Josué Cruz

Similar Messages

  • On Lead Selection for table.

    Hi,
    Can u provide me with some sample snippets of how to implement On Lead Selection.
    The requirement brief : I have to populate another table wrt the selection made on the first table.
    Regards
    Piyush Deora

    Hi,
    Once you get create the table UI element, there is a property defined called "visible". create a context with element type wdy_boolean and bind the context to this property.
    Set the property to abap_false initially, so that the table is invisible and on lead select, set the property to abap_true, so that the secondary table is visisble
    IF itab_sflight is  INITIAL.
          get single attribute
           WD_CONTEXT->SET_ATTRIBUTE(
                   EXPORTING
                       NAME = 'FLAG'
                       VALUE = ABAP_FALSE ).
          ELSE.
            WD_Context->set_Attribute(
                      exporting
                        Name =  `FLAG`
                        Value = ABAP_TRUE ).

  • How to diasble selection for particular rows in a Table?

    im currently working on a multiple select table.. i need to disable the checkbox for some particular rows. How can i get runtime control over that cell??

    To disable one or more rows of single or multiple selection in your table, add the following code to your controller processRequest method:
    OATableBean tableBean = ...;
    tableBean.setSelectionDisabledBindingAttr("Disabled");
    In the example above, "Disabled" represents the Boolean view attribute that returns 1/"Y" if one or more rows is (are) to be disabled, otherwise it returns 0/"N". The view attribute "Disabled" must belong to the same view object as the one associated with the table items.
    If its an advanced table, use the same method on OAAdvancedTableBean instead.

  • Multiple row selection for table element

    Hi,
    I have a requirement where I require to select multiple rows from a table element in a WD for abap application.
    I have defined a node with cardinality and selection set to 1..n.
    The contex node contains 4 fields : emp_name, pernr, manager and position.
    The attributes of the table element for selectionmode is set to 'multi' and 'selectionchangebehaviour' is set to 'auto'.
    I have defined an action on the 'onleadselection' event.
    The code in this method also includes the statement 'lo_el_team_view->set_selected( EXPORTING flag = abap_true ).' 
    When I execute the application only 1 row is highlighted at any one time when I select it. You can select multiple rows by holding down the 'ctrl' key but I want to avoid having to do this. Is there anything I have missed out causing multiple row selections not to be all highlighted.
    Thanks in advance for any assistance.

    Hi raj,
    you can try the following code in the 'onleadselect' event of the table,
    create one attribute ' Flag'  of type WDY_BOOLEAN under the node which has been binded to the table.
    DATA lo_nd_node_tab1 TYPE REF TO if_wd_context_node.
      DATA lo_el_node_tab1 TYPE REF TO if_wd_context_element.
      DATA  lo_elements TYPE wdr_context_element_set.
      DATA  lo_ele_select_new TYPE REF TO if_wd_context_element.
      DATA lv_deselect TYPE wdy_boolean.
      DATA lv_flag TYPE wdy_boolean.
      DATA lv_select TYPE wdy_boolean.
      DATA lv_index TYPE i VALUE 0.
      lo_nd_node_tab1 = wd_context->get_child_node( name = wd_this->wdctx_node_tab1 ).
    get the current selected element
      lo_ele_select_new = wdevent->get_context_element( name = 'NEW_ROW_ELEMENT' ).
      CHECK lo_ele_select_new IS NOT INITIAL.
    check whether it has been selected or not
      CALL METHOD lo_ele_select_new->is_selected
        RECEIVING
          flag = lv_select.
      lo_ele_select_new->get_attribute( EXPORTING name = 'FLAG' IMPORTING value = lv_deselect ).
    check whether element has been previously selected or not,if not, set the flag to select it
    IF lv_select IS NOT INITIAL AND lv_deselect IS INITIAL.
        lo_ele_select_new->set_attribute( name = 'FLAG' value = 'X' ).
    if selected currently and previously then set the flag as false,in order to delect it
      ELSEIF lv_select IS NOT INITIAL AND lv_deselect IS NOT INITIAL..
        lo_ele_select_new->set_attribute( name = 'FLAG' value = ' ' ).
      ENDIF.
      CALL METHOD lo_nd_node_tab1->get_elements
        RECEIVING
          set = lo_elements.
    according to the falg, select and delect the elements
    LOOP AT lo_elements INTO lo_el_node_tab1.
        lo_el_node_tab1->get_attribute( EXPORTING name = 'FLAG' IMPORTING value = lv_flag ).
        IF lv_flag = 'X'.
          lo_el_node_tab1->set_selected( abap_true ).
          lo_nd_node_tab1->set_lead_selection_index( lv_index ).  * this statement deselects the lead selection index*
        ELSE.
          lo_el_node_tab1->set_selected( abap_false ).
          lo_nd_node_tab1->set_lead_selection_index( lv_index ).
        ENDIF.
      ENDLOOP.
    I hope this resolves your problem.
    Thanks,
    krishna

  • How we can disable lead selection programitically?

    Hello,
    I have a standard SAP's WDA and it has a TABLE (not ALV pls.) node, I mean, the node is defined as Cardinality 0...n; Selection 0...n; Lead selection is checked
    For some reason, we need to disable/uncheck this Lead seelction so that default lead selection will not occur and user has to explicitly select the row
    Pls. let us know how can we achieve our requirement, code snippet pls. if u get a chance
    Thank you

    Hi,
    I agree with Mr. Jozef's suggestion to use CLEAR_SELECTION
    You can achieve your requirement as below
    Create post exit enhancement for WDDOMODIFYVIEW( ) method
    Identify the context node bound for standard table and write the below code
              data lo_node type ref to if_wd_context_node.
             " Clear the selected row(s) only for first time
              if FIRST_TIME eq abap_true.
                   lo_node = wd_context->get_child_node( name = wd_this->wdctx_my_node ).
                   lo_node->clear_selection( ).
              endif.
    Note: Replace 'my_node' with your node name
    Hope this helps you.
    Regards,
    Rama

  • Unable to lead select the table

    Hi All ,
    i i have some requirement something like this i have three table side by side in a view when i select the row of the first table the data in the second table should be dislayed and similarly for the third table as well .
    Now my problem is when i am lead selecting the first table i a able to fetch the data and display but i am unable to lead select that rows in the table to display the lead selection i used Lead selection by Index then is is displaying properly BUT when i click on the second row or the third row or so...... It is not getting lead selected. I am Surprised i tried to check but did not found a single clue please help me with this.......
    Good Day....................
    Thanks and Regards,
    Sana.

    hi ,
    did u check the LeadSelect property of ur context node to which ur table is binded ?
    http://help.sap.com/saphelp_nw04s/helpdata/EN/79/555e3f71e41e26e10000000a114084/content.htm
    regards,
    amit

  • How to remove lead selection in table dynamically

    I have a table in webdynpro which allows multiple selections of row. I have a button which is supposed to be clicked after selecting single or multiple rows. After clicking on the button I want to remove the lead selection of the  selected rows (which is shown in golden color for each selected row) .
    I tried REMOVE_SELECTED ELEMENTS and it works fine but only if i select the row by pressing CTRL. If i had selected a single row by just a mouse click (without ctrl) then it wont work.
    THANKS

    Hallo Amber,
    If_wd_context_node has static attribute no_selection. use that to clear the lead_selection_index.
    node->set-lead_selection_index(  if_wd_context_node=>no_selection ).

  • Make select for each row - another solution?

    For example I have a function with day before selection:
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    function ABS return boolean is
    ret number(10,2);
    begin
    for sab in (select saldod from ndv_ccli, nd_clientes where
    (:p_dtvenc-dtdoc) = (select min(:p_dtvenc-dtdoc) from ndv_ccli, nd_clientes
    where (:p_dtvenc-dtdoc>0)and
    ndv_ccli.cod_cli = cod_cli) and
    ndv_ccli.cod_cli = cod_cli order by dtdoc desc,cddb )
    loop
         ret := sab.saldod;
    end loop;
    return (ret);
    end;
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    In report I use the value of this function(a) in another function(b) to sum with few values.
    Output of function(b) has a lot of rows and for each row it makes select in function(a) to find the value, but actualy it is the same. Is it possible to do this select only one time and then put in function(b) only it's value? Because it makes report too slow...
    tnx before

    Thanx, but while compiling it says:
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    REP-0749: After form trigger cannot reference a report column.
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

  • Multiple Selection for Tables

    HI Team, When I try to select the multiple selection for field Material in table Mara, the To value is not displayed
    e.g in table mara if i select the material option from A* to Z*, all the materials are displayed from A until x but no of the materials are displayed starting with Z. I have found this as standard functionality in SAP and happens for all fields with multple selection in tables. can you guys advise if there is an OSS note for this?
    Thanks,
    Sunny

    Hai Sunny,
    Please check Do you have material staring with Z
    and check is there any
    Maximum No. of Hits restriction.
    Till you get SAP notes
    Create a query in SQVI for only ine table and
    MARA and tick mark the selection b fields and fields to be displayed in the report.
    Now in the report selection screen you will get TO option as well it will list all the Z materials.
    Regards,
    Mani

  • How do I disable auto select for the path selection tool?

    For the move tool you can choose to disable auto selection, auto select a group, or auto select a layer. By default though the path selection tool autoselects a layer. How can I disable autoselection?

    I can’t seem to reproduce what you describe.
    Please elaborate, possibly with the help of some screenshots.

  • Indesign cc crash on selecting multiple table row

    If i try to select more than a row or the entire column indesign crash and quit. exported to cs6 and opened it works perfectly
    https://www.dropbox.com/s/2ih8nu2cfc1rjs3/tableproblem.indd

    Hi,
    I'm experiencing exactly the same error - this is on a MacPro4.1 with Mountain Lion. I've repaired permissions and all the hardware checks out. Seems to crash on table selection - also in overprint the redraw on table selections is all over the place (selecting the top row seems to select 2 below it, switching to standard view seems to display correctly). CC seems very buggy, hopefully I can save my work as a template and use CS6 to finish up (going to print in less than 2 hours!)
    Worth noting that there is no other program running in the background and it happens from a clean reboot.
    Here's the report:
    Process:         Adobe InDesign CC [227]
    Path:            /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Adobe InDesign CC
    Identifier:      com.adobe.InDesign
    Version:         9.0.0.244 (9000)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [118]
    User ID:         501
    Date/Time:       2013-06-27 15:37:57.208 +0100
    OS Version:      Mac OS X 10.8.4 (12E55)
    Report Version:  10
    Interval Since Last Report:          123663 sec
    Crashes Since Last Report:           4
    Per-App Interval Since Last Report:  81445 sec
    Per-App Crashes Since Last Report:   4
    Anonymous UUID:                      EE196355-9B41-C217-A3F7-7C12613A3228
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
    VM Regions Near 0:
    -->
        __TEXT                 0000000100000000-0000000100006000 [   24K] r-x/rwx SM=COW  /Applications/Adobe InDesign CC/Adobe InDesign CC.app/Contents/MacOS/Adobe InDesign CC
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   com.adobe.InDesign.Widgets              0x0000000111d308a3 0x111cec000 + 280739
    1   com.adobe.InDesign.Tables UI            0x00000001181d6954 0x118153000 + 538964
    2   com.adobe.InDesign.Tables UI            0x00000001181d5fc7 0x118153000 + 536519
    3   com.adobe.InDesign.Tables UI            0x00000001181d8b42 0x118153000 + 547650
    4   com.adobe.InDesign.Table Model          0x0000000113abca9b 0x113aa4000 + 101019
    5   com.adobe.InDesign.Table Model          0x0000000113abc0b5 0x113aa4000 + 98485
    6   com.adobe.InDesign.Table Model          0x0000000113aba2a5 0x113aa4000 + 90789
    7   com.adobe.InDesign.Table Model          0x0000000113b5404e 0x113aa4000 + 720974
    8   com.adobe.InDesign.Text                 0x00000001133d3859 0x113267000 + 1493081
    9   com.adobe.InDesign.Text                 0x00000001133e11a9 0x113267000 + 1548713
    10  com.adobe.InDesign.Text                 0x000000011340e518 0x113267000 + 1733912
    11  com.adobe.InDesign.Text                 0x0000000113409613 0x113267000 + 1713683
    12  com.adobe.InDesign.Text                 0x000000011342847a 0x113267000 + 1840250
    13  com.adobe.InDesign.Text                 0x000000011342833a 0x113267000 + 1839930
    14  com.adobe.InDesign.Text                 0x00000001134220a8 0x113267000 + 1814696

  • Getting at the data binding for table rows in ADF/UIX

    At the highest level, I'm trying to figure out the best way to get spreadsheet-like behavior in a table where some of the cells are editable. The table cells were created using the "model=${uix.current.<columnName>}" mechanism.
    I've been able to specify event handlers triggered by the <primaryclientaction> for a table cell component which call into static java methods. But I haven't been able to figure out what binding to use to get at the Java instance for that cell's row in order to use <invoke> to get at non-static methods in the row's view object. The ${uix.current} binding is stale at that point.
    Are the table row data bindings just gone after the table is rendered or is there some alternate notation that lets me get at them.
    Thanks in advance.

    the primaryclient action should pass the rowkey of the current row (${uix.current.rowKeyStr}) as a parameter. This way the server can find the corresponding row on the server in an event handler.
    see
    http://www.oracle.com/technology/products/jdev/tips/jacobi/edittable/tip_adfuixtable_edit.html

  • Bizarre Problem for table row deletion.please help

    Folks
    I am facing a most BIZARRE PROBLEM!!!
    I have a table with a deleteButton by the side.
    The table has 3 rows
    ABC-----DELETE
    BCD-----DELETE
    VDG-----DELETE
    I click on the delete Button of the first row,the record gets deleted from the table,
    Now there are 2 records..
    BCD-----DELETE
    VDG--- -DELETE
    I click on the delete Button of the first row,and I get the error
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
    The table.getSelectedRow() becomes -1 automatically...
    Now if I comment out the Table deletion statements, and I click on any delete Button
    i get the correct messages
    You clicked row : 1
    you clicked row : 2
    After deletion of the first record,i am unable to delete the 2nd record,i get the
    error above.
    any suggestions
    ActionListener al = new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Table Row clicked is : " + table.getSelectedRow());
    // Delete row from window.
    ((DefaultTableModel)table.getModel()).removeRow(table.getSelectedRow());
    table.revalidate();
    };

    after deleting the row call this method
    fireTableRowsDeleted()
    -Ashish

  • Selecting a table row

    I can't figure out how to programmatically select a jtable row. can someone fill me in? there must be an easy method call, but I can't seem to find it.

    Here is the method :
    JTable.setRowSelectionInterval(int beginIndex, int endIndex);Olek

  • Multiple row select for table not working..

    Hi Experts,
    I have a table in ABAP Web Dynpro where I have enabled the multiple row select functionality. I can select all and deselect all. I can also select a block of adjacent rows of table by choosing first and last by pressing Shift key.
    But I am not able to select multiple individual records for that table.
    I tried the same thing in different system and it works fine there.
    Please let me know if we are missing some standard plugin or we need to enable this in some settings.
    System where the issue is:
    SAP_APPL: release 600, level 18
    SAP_BASIS: Release 700, level 22
    System where it is working fine:
    SAP_APPL: release 604, level 8
    SAP_BASIS: release 701, level 8
    Regards,
    Anand Kolte

    Hi
    Press CTRL key and Select records, you can select multiple records, continuously or randomly your desired selection.
    Cheers,
    Kris.

Maybe you are looking for