Table event for cell selection

Hi,
I want to be able to find out which cell was selected by the user in a table.
This is usually handled by the onLeadSelect event. However, this event is not fired if the user only changes the column in the same table row.
Is there a way to become aware of the chosen cell (InputField, which does not have to be edited, just clicked).
Thanks and regards,
Kilian

Exactly this is my question. Is there an "onFocus", "onClick" event or has somebody encountered the problem and solved it somehow?
I want to display additional information (in another view) with respect to the chosen cell.

Similar Messages

  • Calendar...list function shows only events for date select instead of events from that date forward.

    Calendar list function shows only events for date selected....instead of events for date selected and events forward from that date.  Is there a setting change needed?  Help!

    Hi,
    Did you check that your universe object referring "Date of Completion" has Date data type?
    Can you also provide the BOE verson you are using?
    I remembered that the calendars were not displayed in XIR2 version.
    Didier

  • On enter event for cells in ALV

    Hi experts,
    In standard table we have an action 'On Enter'  for the cell editor.
    how to create the same in ALV ?
    Thank You.

    Hi,
    In the View where you will be embedding the ALV, create an event handler under the methods tab. Select Event from F4 Help. you will be able to see all the events that are poosible with ALV. Select the Event ON_CELL_ACTION.
    I am assuming that you have created a component usage for SALV_WD_TABLE component.
    FYI. Following Events are possible with ALV:
    ON_AFTER_CONFIG
    ON_CELL_ACTION
    ON_CLICK
    ON_DATA_CHECK
    ON_FUNCTION
    ON_LEAD_SELECT
    ON_STD_FUNCTION_AFTE
    ON_STD_FUNCTION_BEFO
    Check this pdf: [Editing ALV in Web Dynpro for ABAP|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
    Regards,
    Reema.
    Edited by: Reema Shahbazkar on Apr 2, 2008 11:45 AM

  • ABAP Web Dynpro ALV: event for "tabel selection menu" needed

    Hi all,
    we need to react on the "table selection menue" control in our ALV grids. We found, that event "lead_select" is triggerd, if single lines are selected and if "delete selection" from the table selection menu is used.
    But if the "select all" item is used, the event is not triggered.
    Is there another event we can use? Does anybody know a sensible workaround for this problem?
    Thanks  and regards
    Joachim

    Hello Joachim,
    perhaps it's better to post your question in the WebDynpro ABAP forum:
    Web Dynpro ABAP
    Best regards
    Stephan

  • How to listen for cell selection changes within a JTable

    Problem: my table has 8 columns, with 4 of them containing very large text (up to 1000 chars). Solution is to set the initial size these columns so that the 1st 20 chars are visible, and if one of these columns gains focus/selection via mouse-clicking/tabbing/arrow keys, the entire text is shown in a JTextArea below the table.
    I added a ListSelectionListener to the table, but this only informs me when the row selection has changed.
    I added a FocusListener to the table, but this only informs me when the table gains/loses focus, not when it's been changed within.
    I added a TableColumnModelListener to the TableColumnModel, but this only informs me when the column selection has changed.
    I didn't bother with MouseListener as this won't handle change of selection via tabbing.
    The LSL got me half way there, and the TCML got me the other half. Any ideas on how to combine?
    Or is there something obvious that I'm missing?

    Walter Laan wrote:
    Use both and call the same method which updates the text area based on the current selected (or focused == lead selection index) cell.Yeah - that's what I figured. I just didn't know if there was a magic bullet (i.e., a single listener) out there that I was missing.
    While you are at it, also add a table model listener which calls the same method if the selected cell is updated.I'll keep that in mind, but it's not necessary in this particular case. The table cells in question will be uneditable. The text area will have supporting Edit/Save/Cancel buttons.

  • Event for dropdown selection

    Hi.
    I am working on CRM 2007 icwebclient. My requirement is for BP creation either individual or organisation depending on ROLE select mandatory fields are changed.
    If role 'Prospect' is selected then few fields are mandatory or if 'sold-to-party' is selected more fields are madatory..
    Now which event is working behind this dropdown selection. where i have to write my code. How to set fields 'mandatory' at design time. soon reply would be appreciate.

    Hello,
    as this really seems to be a big Issue for people. Thought as developers you might explore my hints on your own.
    For switching the configuration:
    Implement the P-Getter for the attribute on the context node with the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'my_event'.
      endcase
    This will trigger a roundtrip. We do not need to handle the event.
    In your view controller implementation class redefine the method DO_CONFIG_DETERMINATION:
    METHOD do_config_determination.
    * Switch configuration that is used based on field value.
      DATA:
        lv_value         TYPE              char2,
        lv_object_type      TYPE              bsp_dlc_object_type       VALUE '<DEFAULT>',
        lv_object_subtype   TYPE              BSP_DLC_OBJECT_SUB_TYPE   value '<DEFAULT>',
        lr_node        TYPE REF TO       if_bol_bo_property_access.
      CALL METHOD super->do_config_determination
        EXPORTING
          iv_first_time = abap_false.
      lr_node = typed_context->some_node->collection_wrapper->get_current( ).
      CHECK lr_node IS BOUND.
      lr_node->get_property_as_value(
        EXPORTING
          iv_attr_name = 'SOME_ATTRIBUTE'
        IMPORTING
          ev_result    = lv_value ).
      lv_object_type = 'MY_UI_OBJECT_TYPE'.
      CASE lv_value .
        WHEN 'SOME_VALUE1'.
          lv_object_subtype = 'JIMBOB'.
        WHEN 'SOME_VALUE2'.
          lv_object_subtype = 'BUBBA'.
      ENDCASE.
      me->set_config_keys( iv_object_type          = lv_object_type
                           iv_object_sub_type      = lv_object_subtype
                           iv_propagate_2_children = abap_true ).
    ENDMETHOD.
    Just paste the above coding into the method.
    What it does:
    1. Get the value you want to check from one of the context nodes.
    2. Switch the UI Object type (Yes you have to define it in customizing)
    3. Switch the UI Sub Object type on base of the field value. (Yes you have to define your own sub object type, this is done via a class that is assigned to your UI Object type in customizing)
    For the other solution: As mentioned I have not tried it myself.
    The variable on the view controller I am talking about is CONFIGURATION_DESCR of interface IF_BSP_DLC_CONFIGURATION. It has got a method GET_CONFIG_DATA that will give you the XML stream and a method SET_CONFIG_DATA. Putting the changed XML back.
    If you had done a were used list for at least one of these methods you would have seen how SAP uses them.
    One example: CL_BSP_WD_OVW_VIEWSET->DO_INIT_CONFIG() however this will not help you on your problem.
    I know there is a method that will decode the XML stream in the single fields with their properties and there is also a counter part to it. I am afraid that many people will use it to bypass the configurations. This will make it very hard to debug the coding. Thus I will not name the class/method here!
    For the sake of maintainability please stick to the first method.
    I have seen people getting the XML and then hardcoding another part into it. Then someone changed the config and an error occurs. You try to find out why, but the original developer is no longer there and has not documented anything...
    cheers Carsten

  • Using dymanic table name for running select queries

    Hi there. Currently got a problem with performing the following task:
         Perform fulltext search on all tables that have created fulltext indexes in specific schema. Result should look like this:
              <TABLE_NAME1>                <ID_FROM_TABLE>
              <TABLE_NAME1>                <ID_FROM_TABLE>
              <TABLE_NAME2>                <ID_FROM_TABLE>
              <TABLE_NAME2>                <ID_FROM_TABLE>
         At the moment all tables have the same ID column UOI_ID.
    What I've tried so far is the following:
    PROCEDURE "tuser"."dam.test.db.procedures::textSearch" ( in keyword NVARCHAR(300), out search_results "tuser"."dam.test.db::tuser.procedures.tt_search_results" )
      LANGUAGE SQLSCRIPT
      SQL SECURITY INVOKER
      DEFAULT SCHEMA "tuser"
      AS
    BEGIN
      Write your procedure logic
      DECLARE counter Integer := 1;
      DECLARE row_count Integer;
      DECLARE table_name NVARCHAR(300);
      DECLARE schema_name NVARCHAR(300) := 'tuser';
      indexed_tables = SELECT row_number() OVER (ORDER BY "TABLE_NAME") AS ROW_NUMBER, "TABLE_NAME"
           FROM (
                SELECT DISTINCT "TABLE_NAME"
                     FROM "SYS"."FULLTEXT_INDEXES"
                          WHERE "SCHEMA_NAME" = :schema_name
      SELECT COUNT(*) INTO row_count FROM :indexed_tables;
      WHILE counter < row_count + 1 DO
           SELECT '"tuser"."'||"TABLE_NAME"||'"' INTO table_name FROM :indexed_tables WHERE "ROW_NUMBER" = :counter;
           temporary_results = SELECT :table_name AS TABLE_NAME, "OUI_ID" AS ID
                FROM :table_name
                     WHERE contains(*, :keyword, fuzzy(0.5));
           search_results = CE_UNION_ALL(:search_results, :temporary_results);
           counter := counter + 1;
      END WHILE;
    END;
    At this point it's impossible to perform the:
    ... FROM :table_name ...
    The error is:
    Could not create catalog object: scalar type is not allowed
    Tried doing it with CE functions.
    temporary_table = CE_COLUMN_TABLE(table_name);
    The error is:
    Dependent object not found: SqlScript; tuser.TABLE_NAME
    So the question is: How to dynamically put table name into "FROM ..." statement?

    Hello. Thx for response.
    I have tried something like
    exec 'INSERT INTO "tuser"."dam.test.db::tuser.procedures.search_result" SELECT '''||table_name||''' AS TABLE_NAME, '||column_name||' AS ID, SCORE() AS SCORE  FROM '||table_name||' WHERE contains(*, '''||keyword||''', fuzzy(0.5))';
    but here i have "tuser"."dam.test.db::tuser.procedures.search_result" created before the execution. What i really want is to make it as a local variable. Something like:
    DECLARE schema_name NVARCHAR(300) := 'tuser';
    indexed_tables = SELECT DISTINCT "TABLE_NAME" FROM "SYS"."FULLTEXT_INDEXES" WHERE "SCHEMA_NAME" = :schema_name ;
    but i can not transform the top 'exec ...' statement into 'result = SELECT ...' because it always says that it can not pass the scalar value into the 'FROM ...' part.

  • UIPickerView: event for SelectionIndicator selected?

    I have a custom uipickerview and wanted to be able to capture the event if the user double taps the selectionindicator. I already use the event didSelectRow: but that isn't called when the selectionindicator is double tapped.
    I also tried capturing touchesBegan: but that only triggers if the taps are outside of the wheel/selection indicator region.
    Any assistance would be greatly appreciated.

    I tried a few things this evening to scope out your problem. I'm fairly sure there's no advantage to a UIPickerView subclass since, as you discovered, its subviews are handling touches in the region of the selection bar. There are nine subviews for a single-wheel picker, and many more for multiple wheels. UIPickerView doesn't like to add anyone else's subviews, so I soon gave up on that approach. I also tried adding a subclassed UIImageView to a row with pickerView:viewForRow:forComponent:reusingView:, but apparently the picker view is making a copy of the image instead of adding the object itself as a subview.
    The only way I was able to trap touches on the selection bar was to cover it with a subview that I added to the content view. This is great for catching your double click, but of course it breaks the swiping response over the bar. I.e. you can swipe above and below the bar, but not over it.
    To make a cover view work correctly I think we'd need to figure out where to forward the intercepted touch event messages. Two of the subviews have promising names (_UIPickerWheelView and _UIPickerViewSelectionBar, so I've already tried forwarding to them without any luck (though I'm not confident I handled those messages correctly; feel free to repeat that test). I think the best try would be to check all the subview frames and decide where to forward on that basis. That approach would also be general enough to provide some protection against picker view upgrades.
    Best I can do for ya tonight. Hope it helps!

  • Event for cell change

    Hello,
    how is it possible to determine in a JTable if a user switch from the actual cell to an other cell?
    Tanks!

    JTable table = new JTable(...l)
         public void changeSelection(int row, int column, boolean toggle, boolean extend)
              super.changeSelection(row, column, toggle, extend);
              System.out.println(row + " : " + column);
    };

  • Cell selectable in table

    Hi everybody,
    is it possible to make a single cell selectable in a  table in Web Dynpro for ABAP?
    In simple ABAP it is possible and you can catch the coordinate while raising an event (button).
    In Web Dynpro when I am using "input fields" instead of "text view" for the cell editor I can go into a cell, but it isn't selected.
    By the way the table should not be editable ...
    Thanks for all answers ...

    Problem is solved.
    Solution:
    As described I have a context attribute "marked_cell" typed WDR_EXT_ATTRIBUTE_POINTER.
    After selecting a cell my method behind the button could read the coordinates with the following code.
      DATA lo_el_context    TYPE REF TO if_wd_context_element.
      DATA ls_context       TYPE wd_this->element_context.
      DATA lo_marked_cell   LIKE ls_context-marked_cell.
      DATA lv_marked_column TYPE string.
      DATA lv_marked_row    TYPE string.
    * get element via lead selection
      lo_el_context = wd_context->get_element(  ).
    * get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `MARKED_CELL`
        IMPORTING
          value = lo_marked_cell ).
    * lo_marked_cell contains direkt the column
      lv_marked_column = lo_marked_cell-attribute_name.
    * Additionaly we need the row number the user selected
      lv_marked_row = lo_marked_cell-element->get_index( ).

  • Event for Table rows deselection

    Hi Guys,
    I have created a Table  and created a method for  event 'OnSelect'.I am capturing row values into an internal table when  user select a value from the table.Here my problem is once deselected after selecting the row ,the selected data is still appearing in the internal table but deselected value should get deleted from the table.How it can be acheived.Is there any event for deselection.
    Thanks
    Nandana.

    Hi nandana,
    If i am understanding your query correctly, on Row select you are appending the row value to an internal table.
    Now on deselect you want the row to be removed.
    So do one thing in that event method before appending the row into table check if the row value previously exist.
    If it exist then remove the row from internal table otherwise append it into the table.
    Check it works or not.
    If it is not working with onSelect event try to use onLeadSelect event.

  • Hi guys n girls. How do you copy a whole table to create a new table with all cell sizes in tact? Thanks for your help. Jason.

    Hi guys n girls. How do you copy a whole table to create a new table with all cell sizes in tact? Thanks for your help. Jason.
    when you copy n paste into a new table, all the cell sizes are changed.
    is there a way to put in a new table from your templates into an existing file, different to the standard very basic ones in insert table.
    I look forward to your answers.  Your help is very much appreciated.
    Also how do you search for question answers already written in this support area please.

    Hi Jason,
    In Numbers 3, you can select a whole table by clicking once in the table to make it active, then click once on the "bull's eye" at the top left.
    Now copy and paste. All formatting (and any cell content) is pasted intact. In Numbers 2.3 (Numbers '09) it is a little different for selecting a whole table. But I won't go into that unless you are using Numbers '09. Please reply.
    I don't like the look of the tables in Insert Table. I keep custom tables in My Templates. I have set Numbers > Preferences > General > For New Documents > Use template: (name of my favourite custom template)
    That opens when I launch Numbers, or ask for a new document (command n). Note that if you follow this preference setting, then Menu > File > New From Template Chooser (for another template) requires you to hold down the option key in that menu.
    Regards,
    Ian.
    Message was edited by: Yellowbox. All formatting (and any cell content) is pasted intact.

  • Cell Selection & ALV Table (SALV_WD_TABLE)

    Hi Experts,
    is it possible to select  more than one cell (not row!) in an ALV Table?
    I changed the cell editor to cl_salv_wd_uie_input_field and set the whole table editable.
    Now I am able to select one cell, but what about multiple selections? In the Java world I found this one: TableSingleMarkableCell
    Sounds good - what about ABAP?
    And if there is no way with the ALV Table, how I might get the functionality with other components?
    Thanks for your help, have a great week!
    Hendrik
    Edited by: Gedicke, Hendrik on Jul 28, 2008 11:06 AM

    Hi Thomas,
    I tried to integrate the cell variant TableSingleMarkableCell. But I think the ALV table does not support this cell variant, or am I wrong? The runtime class is .CL_WD_TABLE_SNGL_MARK_CELL
    (see http://help.sap.com/saphelp_nw70/helpdata/EN/a5/b8fa41c915da6fe10000000a1550b0/frameset.htm)
    I will try to explain:
    When you want to use a cell variant, it is necessary to "add" it to a column. Therefore you can use the public method "ADD_CELL_VARIANT" of the class "CL_SALV_WD_COLUMN".
    This method has got a "value" import parameter which is a referencing the class "CL_SALV_WD_CV".
    The thing is that the only sub class of "CL_SALV_WD_CV" is "CL_SALV_WD_CV_STANDARD" and this means that the TableSingleMarkableCell is not supported.
    Or did I made a mistake? This is my last chance to use a cell selection with the alv component.
    Thanks & Regards,
    Hendrik

  • Event  0110 for own selection specification

    Hi,
    As per the requirement
    I had to write logic for
    selection specifications to decide which open items should be used with
    which amount. The selection criteria are transferred in table T_SELTAB. If these criteria
    are specified, they will then be expanded to include table T_ZBTTAB, in which one partial
    amount is given for each selection specification. In this way, you can specify that, for
    a payment of 300.00, account 1001 will receive 200.00 and account 1002 will receive 100.00.
    Created a Function module added through customisation
    Providing fixed data to populate T_SELTAB(providing selection criteria in such a way that the given amount will be used to clear two account 250 AED each)   this is hard coded
    but when I execute still system does not consider the selection data given in T_SELTAB
    could you let me know the exact value that needs to be passed into  T_SELTAB.
    through which function module we need to pass this selection criteria.
    Thanks In adv

    Hi,
    Thanks for the reply.
    I have not implemented BTE. Instead using FQ Events(used in ISU FICA).
    I put a break point in my function module and it do gets triggered when you execute the tcode FP06
    As per FQ event documentation when I tranfer my own Selection criteria to table T_SELTAB for clearing respective document system does not clear documents based on my selection rather as per standard customisation.
    Kindly advice
    Thanks

  • 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

Maybe you are looking for

  • Can't view data from BI Anaytics

    Hi, I am new to BI suite. currently our repository has two different connection pool associated with two different schema. Since my ex-coworker built the first one and left. I don't want to mess up with his work. I built another connection pool with

  • MDM ABAP API - Language information not valid for repository

    Dear all, We're programming an interface in SAP R/3 to MDM catalog through 'MDM ABAP API's'. Automatically, it creates an RFC connection to MMD, but we're getting the following connection errorwhen executing the API: E MDM_ABAP_API         078 Langua

  • MATMAS Inbound IDOC

    Hello all, Iam working on Material master Data Upload using the IDOCs. -There are about 3K records. -I have collected the IDOCs and executing the RBDAPP01 -in background with Parallel processing and with Packet size as 5. All the IDOCs processed thes

  • Missing songs in my playlist

    Hi!! I recently got myself a new Xperia Z. I synced my iTunes playlist, which consists of English and Korean songs onto my phone, and some songs are missing. And I realised, only songs that starts with a Korean alphabet doesn't appear. What should I

  • Remote Admin Client

    We have upgraded from SCCM 2012 sp1 to SCCM 2012 R2. We can open the admin tools on the server with no issues. The problem is with the remote client which will not connect.  I have uninstall and reinstall.  It connects first time it's opened, but whe