JClient and Table Handling?

In a scenario where you have a table and you want to process based upon the user's selection of a row, what's the best way to accomplish this? I've been looking at the events, and there doesn't seem to be one for a row selection. Does this mean that I'm in the wrong place to be looking for this, or do I have to code my own listener to handle when a row is selected? What's best practice for this? And, regardless of where/how you handle it, how do you get information about the database row selected?

Forgive my ignorance, but this is my first foray into the Swing side of JDev.
I don't see a double click event. What I've done is clicked on the jTable object to focus it in the property inspector, then clicked on the Events tab on the property inspector. I see a mouseClicked event, but nothing about a double click. Am I doing this in the wrong place? Or is the event called something I don't recognize?

Similar Messages

  • Table View MULTI SELECT option and Event handling problems

    Hello All,
    I am facing problem while giving miltselect option in a table view. When i mention multiselect attribute in Select option in table view, i am unable to select all the rows which i want to select,because i have an event onRowSelection event activated so when i select a row then it will automatically go to the event and i am unable to do multiple select.
    Can you guys pl tell me is there any way thtat i can put check boxes in a table column and by that i can get values of row seelct and can perform my subsequent SQL operation.
    Also i am not able to navigate in table view through BYPAGE or BYLINE option. When I click on navigate button then page got refreshed and i lost data.
    One more query guys , can you pl tell me how can i store my internal table values from one event for the another event. I have used EXport/Import but internal table values get refreshed as page got refreshed on event switching/selection.
    Please respond.

    hye rahul.
      as i told you my second solution, will help you . the values remain in the corresponding UI elements.
    For example , you have a drop down and table view. both will trigger events. bind the data of the table at drop down event and bind the dat of the drop down at table event.
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    CASE event->id.
    when 'dd1'.                   drop down event is fired.
    bind data for drop down
    dd ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'dropdown'
                                          id      = dd_id'           " name of the drop down id
    along with drop down bind data for table view
        tbv ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'tableView'
                                          id      = 'tbv_id'           " name of the table view
    when 'tbv_id'.                   drop down event is fired.
    bind data for drop down
    dd ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'dropdown'
                                          id      = dd_id'           " name of the drop down id
    along with drop down bind data for table view
        tbv ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'tableView'
                                          id      = 'tbv_id'           " name of the table view
    This is how data should be binded in case of Stateless application. All the UI elemets must b binded again.. as the global data is refresed again.
    Hope this helps.
    Regards,
    Imran.

  • Reference field and table for AUFK for F4 help in alv.

    Hi All,
       I need to put F4 help on ALV for order no (AUFK) what is the reference field and table for that?
      i tried giving field as aufk and table as ccss but its not working.
       ls_fcat-ref_field = 'AUFNR'.
        ls_fcat-ref_table = 'CCSS'.
    Thanks & Regards,
    Ruchi Tiwari

    Hi,
    Try this.
    Set the f4 help for the field in the fieldcatalog
      ls_fcat-f4availabl = 'X'.
    1. Create a event of ONF4 for the alv grid.
    2. Set the event handler.
    3. Append the field for the F4 help in the internal table and call the below method
        CALL METHOD g_mprn->register_f4_for_fields
        EXPORTING
          it_f4 = i_f4.
    4. create a class definition and implementation
        refer sample pgms (BCALV_F4, BCALV_GRID_EDIT_DELTA and BCALV_GRID_EDIT)
    Hope this may be helpful.
    Regards,
    Sharin.

  • Setting up Figure and Table Titles for Translation Import and Export?

    Hi,
    I use InDesign to write User Manuals. Once the manual complete, I use SDL World Server to translate the document which works wonderful. The way it works is the document is parsed by the xml data and when you export the document from SDL, the translated data replaces the English data, it’s pretty slick! The problem that I have is that my Figure and Table numbers are hard coded with the word "Figure" and "Table” as part of the numbering system and will not translate nor export (see screenshot below). Is there A.) A way I can make the code become a reference to a text box in the document that then can be translated? B.) A common or different way to handle this?
    If you need any more info, just let me know. Thank you for your help!

    The problem that I have is that my Figure and Table numbers are hard coded with the word "Figure" and "Table” as part of the numbering system and will not translate nor export (see screenshot below). Is there A.) A way I can make the code become a reference to a text box in the document that then can be translated? B.) A common or different way to handle this?
    I've always avoided that auto-figure-naming stuff, in any application, for the sole reason that it often doesn't localize well. I'm not a WorldServer user, but a SDL Trados Studio user, so I don't know exactly what to tell you. If you're the kind of person to pop your IDML open in a text editor, you'll find that the actual "Figure" text appears in Styles.xml, and I doubt that SDL's IDML filters look there for text for translation. I don't actually know for sure, and I do know you're using an SDL product with which I have no familiarity whatsoever.
    A different, somewhat kludgy way to handle this would be to use auto-numbering to create an invisible paragraph number (color of Paper, size of 0.1 pts, glyph width of 1%, or something along those lines), and then have the phrase "Figure" in your live text, followed by a cross-reference to the paragraph number.
    A common way to handle this would be to ask SDL to update their IDML filter to pick up terms used in auto-numbered lists.

  • Obtaining qualifier and table name in describe

    Determining qualifier and table name in describe
    Is there a way in OCIParamGet() on a statement handle/OCIAttrGet() sequence to determine the qualifier and table name?
    Otherwise, how can I get this information?
    When doing a join and listing the columns, we would like to be able to list qual.table name, followed by the columns associated with that table.

    If not with the parameter attributes (whic I haven't checked) you can always use the DescribeAny() to get the information.
    If you need I can get you a fairly complete sample for DescribeAny() which demonstrates describing just about every type of schema item.
    Drop me a line if you want it [email protected]

  • OO ABAP inerenal table and tables declarations?

    Hi All,
    1.I am new to OO ABAP, can any one give me clear idea how to declare Internal tables, work area and table declarations and how to use and read them?
    2. I am having a problem,
    I declare a table like this
    IT_CRMD_ORDERADM_H TYPE TABLE OF CRMD_ORDERADM_H.
    and in the perform statement
    Pefrom using
    IT_CRMD_ORDERADM_H[]
    and in form ( i need to read and select a record from this table)
    can any one give me solution how to do this?
    thanks for ur time.
    sandhya

    Hai Sandhya
    Go through the following Code
    *& Report  ZABAP_OBJ_01                                          *
    report  zabap_obj_01                      .
    parameters : p_vbeln like vbap-vbeln obligatory,
                 p_matnr like mara-matnr.
    <b>types : begin of ty_vbap,
            vbeln type vbap-vbeln,
            matnr type vbap-matnr,
            arktx type vbap-arktx,
            end of ty_vbap.</b>
          CLASS sales_order DEFINITION
    class sales_order definition.
      public section.
        data : v_matnr type mara-matnr,
               v_vbeln type vbap-vbeln.
        events : no_data_found.
        methods : constructor importing vbeln type vbap-vbeln
                                        matnr type mara-matnr optional,
                  get_vbap_details,
                  disp_vbap_details,
                  Handle_no_data_found
                  for event no_data_found of sales_order.
    <b>    data : it_vbap type standard table of ty_vbap.</b>
    endclass.                    "sales_order DEFINITION
          CLASS sales_order IMPLEMENTATION
    class sales_order implementation.
      method get_vbap_details.
        clear : it_vbap.
        refresh : it_vbap.
        select  vbeln
                matnr
                arktx
                from vbap
                into table it_vbap
                where vbeln = p_vbeln.
        if sy-subrc <> 0.
          raise event no_data_found.
        endif.
      endmethod.                    "get_vbap_details
      method constructor.
        clear : v_vbeln,
                v_matnr.
        v_vbeln = vbeln.
        v_matnr = matnr.
      endmethod.                    "constructor
      method Handle_no_data_found.
        write : / 'No Data Found for the given selection Criteria'.
      endmethod.
      method disp_vbap_details.
        data : wx_vbap like line of it_vbap.
        loop at it_vbap into wx_vbap.
          write :/ wx_vbap-vbeln,
                   wx_vbap-matnr,
                   wx_vbap-arktx.
        endloop.
        clear : it_vbap.
      endmethod.                    "disp_vbap_details
    endclass.                    "sales_order IMPLEMENTATION
    data : obj type ref to sales_order.
    start-of-selection.
      if not p_matnr is initial.
        create object obj exporting vbeln = p_vbeln
                                    matnr = p_matnr.
      else.
        create object obj exporting vbeln = p_vbeln.
      endif.
      set handler obj->Handle_no_data_found for obj.
      call method obj->get_vbap_details.
      call method obj->disp_vbap_details.
    Thanks & regards
    Sreenivasulu P

  • Can i use create function for MSSql scalar and table valude function.

    Hi,
    1) Can i use create function for MSSql scalar and table valued function?
    2) How many type of user defined function are there in oracle 11g express?
    3) And can i reture any "type" form user defined function?
    yourse sincerely

    944768 wrote:
    Q1)That means even if i return predefined types like integer, varchar2 then also PGA is used ?The data type does not determine where the variable is stored. A string (called a varchar2 in Oracle) can be stored in stack space, heap space, on disk, in a memory mapped file, in a shared memory, in an atom table, etc.
    It is the who and what is defining and using that string, that determines where and how it is stored.
    The Oracle sever supports 2 languages in PL/SQL. The PL (Programming Logic) language is a procedural/declarative language. It is NOT SQL. SQL is integrated with it. The PL/SQL engine uses private process memory (PGA). So PL/SQL variables exist in the PGA (but there are exceptions such as LOBs).
    Q2) So please suggest me solution in oracle.Sounds to me you are looking at how to implement a T-SQL style function as an Oracle function, and once implemented, do joins on the function.
    Do not use PL/SQL in SQL in place of a SQL select. It is not T-SQL.
    One cannot use PL/SQL to create functions along the style of T-SQL, where the function executes a SQL using some conditional logic, and then return as if the function was a native SQL select.
    T-SQL is an extension to the SQL language - making it a hybrid and very impure language implementation. PL is based on ADA - part of the Pascal family of languages. The E-SQL (embedded SQL) approach used in languages like C/C++, Cobol and Ada, has been transparently done in PL/SQL. You can write and mix PL code and variables with SQL code. And the PL/SQL engine figures out how to make the call from the PL/SQL engine to the SQL engine.
    But PL/SQL is not "part" of the SQL language and does not "extend" the SQL language in a T-SQL fashion.
    So you need to check your SQL-Server preconcepts in at the door, as they are not only irrelevant in Oracle, they are WRONG in Oracle.
    The correct way in Oracle, in a nutshell - Use the SQL language to do data processing. Use PL/SQL to manage conditional process flow and the handling of errors.

  • Table Handling in XML Indesign Workflow

    Hi all,
    I have a question related to the table handling in XML workflow.
    The XML file have been imported to indesign for pagination purpose. Once the XML file have been imported all the tables and figure are came in Text Streams as INLINE, to make the figures and tables as floats we are draging from the XML structure to make it as floating instead of Inline, this is working for Figure.
    I am not able to drag the tables from the XML structure.
    Please help us to make the table float, is there is any script to make the table float or any other way.......
    kavya

    Hi Kavya,
    You have to create a dummy parent tag, now you can drag the parent tag to the frame.
    Regards,
    sudar

  • Field names and Tables

    Can You please help me out with field names and tables where i can find .
    u2022     Buyers Name : From PO. Person ( Customer, Not Joerns) who places the PO.
    u2022     Order Number : Stryker Order number [Leave a place holder]
    u2022     Order Type : Stryker order type [Leave a place holder]
    u2022     REV: Joerns SAP Material revision. Can be found in Material Master.
    u2022     FROM: Based on the shipping point. Should be the shipping point address.
    u2022     Ship-To: Ship-To address in the sales order
    u2022     Shipped Quantity: Handling Unit quantity
    u2022     Shipping date : Item Delivery date
    u2022     Packing Slip : [Leave a place holder]
    u2022     KANBAN ID : [Leave a place holder]
    u2022     Team Number : [Leave a place holder]
    u2022     Part Number : SAP MATNR
    u2022     Part Description : Material Description
    u2022     Boxes: handling Unit count number. Say for example, there are 10 HU Labels are printed in this , then the first label should show 1 / 10, second should show 2 / 10, third should show 3 / 10 and goes on till tenth, which should show 10/10.
    u2022      PO Number : Purchase order Number

    Hi..
       All these field name you can trace from SE15 transaction.
    goto se15-> expand abap dictionary-> expand fields-> double click on table fields-> enter your fields description in the field description tab of beside screen-> click on xcute.
    ex: Part description
      enter MaterialDescription* and click on xcute , you will get MAKTX from MAKT table.
    All the best.
    Thanks,
    Naveen.I

  • XML and tables in InDesign

    Hi everyone,
    I'm just starting to explore the possibilities of XML in InDesign and in need of some general information:
    The projects that I'm working with that I think would benefit from the XML workflow are files that include a number of tables (e.g., product names, descriptions, prices, etc. with header rows and some merged cells).
    The content of the tables are the same for a brochure-style layout and a poster-style layout but the brochure tables need to be tall and narrow and the poster tables short and wide (basically flipping the axes). So far I've handled this through a complicated dance of exporting the tables as text and using Excel to flip the axes and then import the tables back into InDesign (in order for this to work, I have to un-merge all merged cells and it still isn't perfect but a reasonable starting point).
    The editors make changes to the content in InDesign using InCopy (adding or removing rows or columns to add new products and/or prices, etc.)
    The poster and brochure versions of the file don't need to be live at the same time--they're used at different times of the year so it's a matter of loading the final brochure content into the poster then making any changes to the poster and 6 months later importing the final poster content into the brochure. And the cycle continues.
    Would XML handle well? The little I've read so far about XML and tables indicates that each cell would need to be tagged. This could easily result in mis-tagging a cell which would screw up the content import, right? I'm talking about hundreds (thousands?) of cells.
    And since the structure of the table would be changing due to adding/removing rows/columns, it seems I would need to tag each cell of the tables every time I wanted to import content.
    Am I understanding all this correctly?
    Thanks for your input.

    Hi
    You are right each cell nee to be tagged in XML tables, if you are working with more than hundreds/thousands of cells, be careful in content tagging. adding/removing columns/rows would really affect the structure of the XML and if it need to extract/export the content the structure of XML will not be correct. It is better to avoid XML tables in case of adding/removing columns/rows.

  • Difference between line type and table type

    hi,
    can any one explain the difference between line type and table type . and how to declare a internal table and work area in BSP's

    hi,
    Go through this blog, this might help you.
    /people/tomas.altman/blog/2004/12/13/sdn-blog-how-to-do-internal-tables-in-bsp
    People who have worked with ABAP for a while sometimes forget that the internal table concept is rather different than what exists in most programming languages. It is very powerful, but at the same time can be confusing.
    In SAP it is possible to have a table which is the rows and a headerline which is the working area or structure which can then be commited to the table.
    With a BSP, if we try to create an internal table within the BSP event or layout we will get the following error: mso-bidi-
                            "InternalTableX" is not an internal table - the "OCCURS n" specification is mso-bidi- missing.
    class="MsoNormal"><![if !supportEmptyParas]>The problem we are seeing as an inconsistency has to do with the difference between classic ABAP and ABAP Objects. When SAP introduced ABAP Objects they decided to clean up some of the legacy syntax and create stricter rules. However they didn't want to break the millions of line of code that already existed, so they only implemented these stricter checks when OO is being used. Therefore you can declare a table with a header line in a regular ABAP program or Function Module but you can't have one with a header line in OO.
    Because everything in BSP generates ABAP OO classes behind the scenes, you get these same stricter syntax checks. My suggestion is that you have a look in the on-line help at the section on ABAP Objects and always follow the newer syntax rules even when writing classic ABAP programs.
    In a BSP when we need to work with a table we must always do the following:
    1, in the Types definitions create a structure:
                            types : begin of ts_reclist,
    mso-bidi-        style='mso-tab-count:2'>                            receiver type somlreci1-receiver,
    mso-bidi-        style='mso-tab-count:2'>                 style='mso-tab-count: 1'>             rec_type type somlreci1-rec_type,
    mso-bidi-         style='mso-tab-count:2'>                            end of ts_reclist.
    mso-bidi- <![if !supportEmptyParas]> <![endif]>
    but we must remember this is only a structure definition and we cannot store anything in it, although we can use it elsewhere as a definition for Structures(WorkAreas)
    2, in our Types definitions (this is the best place for this one as we can then access it from many areas without having to create it locally) so in the Types definitions we must create a TableType:
    class="MsoNormal">                         types : tt_reclist type table of ts_reclist.
    class="MsoNormal"><![if !supportEmptyParas]> <![endif]> this TableType is our table definition and again we cannot store anything in it, but we can use it elsewhere as a definition for InternalTables
    3, now that you have laid the foundations you can build and in the event handler, it is now simply a case of creating the InternalTable based upon the Table definition:
                           data: t_reclist type tt_reclist.
    and creating the structure based upon the structure definiton:
    <![if !supportEmptyParas]>   <![endif]>                         data: s_reclist type ts_reclist.
    as described above, the structure becomes the work area and this is where you assign new values for elements of the table eg:<![endif]>
                            s_reclist-receiver = '[email protected]'.   "<-- change address
    mso-bidi- <![if !supportEmptyParas]> <![endif]>
    mso-bidi-                         s_reclist-rec_type = 'U'.
    and then once the data is in the elements of the structure, the structure can be appended to the internal table as follows: class="MsoNormal">
                            append s_reclist to t_reclist.
    <![if !supportEmptyParas]> <![endif]>
    the internal table will then be readable for the ABAP function and can be applied for example as follows: class="style1">           style='mso-tab-count:1; font-family: "Courier New", Courier, mono;'>          
    class="style1">CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
                            EXPORTING
    style='mso-tab-count:2'>                                    document_data = docdata
    style='mso-tab-count:2'>                                    DOCUMENT_TYPE = 'RAW'
    style='mso-tab-count:2'>                                    PUT_IN_OUTBOX = 'X'
    style='mso-tab-count:2'>                                    COMMIT_WORK = 'X' "used from rel.6.10
                            TABLES
    mso-bidi-font-size: style='mso-tab-count:2'>                                    receivers = t_reclist
    class="style1"> <![if !supportEmptyParas]>   <![endif]>
    <![if !supportEmptyParas]>F inally, a comment from Thomas Jung,
    <![if !supportEmptyParas]> “when defining my work area for an internal table I like to use the like line of statement. That way if I change the structure of my table type, I know that my work area will still be OK. Second, your types and table types don't have to just be declared in your code. You can create a table type in the data dictionary and use it across multiple programs(also great for method and function parameters). I really push hard for the other developers at my company to use the Data Dictionary Types more and more.”
    Hope this helps, Do reward.

  • How to find how name of view and table using in Discoverer report

    Hi all,
    Please help me, i have requirement, i need name of views and tables used in discoverer reports.
    plz help its urgent.
    regards,
    Vivek Gautam

    As per my knowledge goes, We can see from Administrator which Folder is associated with a Workbook. Else you may have to manually open each and every workbook and look for the objects.

  • Field and Table for Pension Plan

    Can anyone tell me what are the field name and table name in Pension plan

    Hi Harini,
    In Table VBUK you 3 different status related fields for  sales documents.
    Over all status field name GBSTK ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its complete open)
    B  Partially processed     ( This means the sales doc is partially processed)
    C  Completely processed  ( This means the sales doc is completly processed)
    Delivery status  and over all delivery status field name LFSTK and LFGSK respectively, these 2 fields will be same always ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its completly  open)
    B  Partially processed     ( This means the delivery doc is partially processed)
    C  Completely processed  ( This means the delivery doc is completly processed)
    So overall status can be  different then delivery or overall delivery status.
    If sales document has 100 quantity for 1 material, if delivery is done for 50 quantity.
    Then over all status field name GBSTK will be B  Partially processed and delivery and overall delivery will be C  Completely processed  .
    Regards
    vK

  • Field and Table for PGI status updation

    Hi All,
    I want to know in which field and table the PGI status will get updated.
    i.e. once we do the PGI for a delivery in which table will this PGI status gets updated.
    Thanks in advance for help.
    Harini

    Hi Harini,
    In Table VBUK you 3 different status related fields for  sales documents.
    Over all status field name GBSTK ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its complete open)
    B  Partially processed     ( This means the sales doc is partially processed)
    C  Completely processed  ( This means the sales doc is completly processed)
    Delivery status  and over all delivery status field name LFSTK and LFGSK respectively, these 2 fields will be same always ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its completly  open)
    B  Partially processed     ( This means the delivery doc is partially processed)
    C  Completely processed  ( This means the delivery doc is completly processed)
    So overall status can be  different then delivery or overall delivery status.
    If sales document has 100 quantity for 1 material, if delivery is done for 50 quantity.
    Then over all status field name GBSTK will be B  Partially processed and delivery and overall delivery will be C  Completely processed  .
    Regards
    vK

  • Field  and Table name for purchaser

    I want to know the field and table name for purchaser id and purchaser name.
    Plz help me.

    Dear
    Purchaser name are define in Header level data in Purchase Order EKKO & Purchase ID define as a Purchasing Group
    Purchser Name EKKO-ERNAM
    Purchase I D  EKKO-EKGRP
    Regards
    Aamir

Maybe you are looking for

  • I want to install WIN XP PRO on Satellite U300-111

    Dear all anyone have any idea how i get Serial ATA RAID controller driver for toshiba Satellite U300-111 to install windows xp pro becouse it show me messege when i press enter for installation it said: Windows XP Professional Setup Setup did not fin

  • Banding in Photoshop CC 2014 when using gradient or curves, 5K imac and Nikon D810. Help?

    I am experiencing severe banding in Photoshop CC 2014. 5K imac, Nikon D810. 16 Bit Tiff in both Adobe RGB and Profoto RGB. It seems to be something new. OSX Yosemtie 10.10.1 It appears when using gradients. Help?

  • Can I change/upgrade the processor of Satellite A350-x6310

    Hello All, How is it going? I have a small question. My Laptop model is A350-x6310 (psal6g-01p00y) The processor in my laptop is intel core2duo p7350. Unfortunately it doesnot support intel virtualization so i am planning to replace it withintel core

  • Summarization&grouping

    I have the problem of summarization and i try to explain my situation. i use FS-cd and i'd like transfer G/L item to FI. When I transfer to G/L the reconciliation keys, I need to have the open item grouped for businessa area, product group and insura

  • Calculating days excluding weekends

    Msy you please show me how to calculate the number of days in between 2 dates excluding weekends.