JTable containing checkbox column is not getting updated

My application has a JTable and the first column is made up of checkboxes I have added a mouse listener for this table and implementd mousePressed(MouseEvent) method also. So when the user presses the mouse on these checkboxes I will update my loca data structure. Now the problem is this, when the user presses and drags the mouse to some other place(out of the current cell) then the table is not getting updated(the cell is not changing its value). But my local data structure is getting updated as the event is already fired. Please suggest me a solution for this.
Thanks in advance
Varun

thanks for your information. Actually I have seen this tutorial before but I think my case is little different. Sorry for not explaining it completely. My table has got a checkbox column header and another checkbox which is not part of the table. The second column in the table contains a user object. User can select rows by clicking on the checkbox header (select all rows/ deselect all rows), by clicking on individual cells or by clicking on the third checkbox provided for a specific purpose. So whenever the user does this "selection" operation I update one member variable in the user object which is in the second column. I tried putting my code in the setValueAt() method of my table model but couldn't make it work because of my lack of experience in swing or programming. So please tell me whether what you have suggested is valid or not. I added a mouse listener because there was a requirement to show some information to the user when he do a double click on one column of the table.

Similar Messages

  • APEX-The manullay created column is not getting updated in the database

    Dear all
    I have a form on page, which is created along with a report using Form on a Table with Report option. From the form I have deleted one field and recreated manullay as set the property as database column. When I am calling from the report page (using defualt edit option) the value is showing there, but if I am 'Apply Changes' , the column value in database is get updated with null.
    Please help
    DJ.

    This is the SQL and PL/SQL forum.
    Please re-post this on the APEX forum.
    Oracle Application Express (APEX)

  • Step Container Element not getting updated

    Hi,
          I have created a step container element for handling comments with the same ABAP dictinary structure & import export       parameter of a existing workflow conatiner element  & binded with the WF container & step conatiner & i have the saved & activated the WF template sucessfully.but when action is being taken from portal on a Workitem then comments are being  passed to the WF container but the step container that i created is not getting updated . i checked in SWI6 , it's showing not set.
    can any help me on this regard.?
    Thanks & Regards
    Rohan Kumar Das

    Actually, I believe the problem is related to binding.
    When called in the foreground, object references (and data references) are present in memory for all subsequent processing.
    You probably need to make the CONTAINER "Persistent".
    In your code, call the macro SWC_CONTAINER_TO_PERSISTENT <container name here>.   For example:
    SWC_CONTAINER local_container.
    SWC_CREATE_CONTAINER local_container.
    "  Set you Container elements
    " SWC_SET_ELEMENT local_container 'Element01' lv_element01.
    " SWC_SET_TABLE local_container 'Element02' lt_table02.
    SWC_CONTAINER_TO_PERSISTENT local_container.
    " Start your workflow passing local_container.
    Something like this...
    Hope this is relevent . . . Apologies if not . . .
    Regards,
    Tom Carruth

  • Overhead is not getting updated in the production order

    Hi all,
    I am running actual overhead calculation with KGI2.
    But the overheads are not getting updated in the order.
    Order contains relevant overhead key also.
    What could be the possible causes?
    SmanS

    Arun/ Suleman,
    Thank you for your reply.
    I have maintained the % in the costing sheet against the 'Overhead rate' but I didn't get the secondary cost element.
    Request you to elaborate it further & explain me how to maintain the same.
    Also I will be thankful to you, if you could explain me the exact process of loading the overhead on the order i.e. how it loads the overhead form the cost center to order? What happens to the total cost which was lying on the cost center etc, in details.
    Mean while I had maintained the required values in costing sheet in KZS2.
    Maintained the % against material overhead rate as well as manufacturing overhead rate.
    Maintained the credit values for the overhead rate.
    Maintained the calculation base values also.
    Now while overhead calculation with KGI2, I am getting two errors as follows,
    1. S:K5:162 E02 20090831
    2. Error CREDIT_SEGMENTS_ADD COIOB NOT FOUND for object
    I can not figure out the reason.
    SmanS
    Edited by: SAP PP Consultant on Aug 10, 2009 6:47 AM

  • Values not getting updated in table mvke

    Hi,
    I am working on a module pool program.In the o/p screen there are many records.If the user wants to change the field values of a particular record,he clicks on the checkbox besides that record and when he click on the change button,control goes to update screen.In this screen when the user changes the value of one particular field and click on the checkbox beside and then click on the execute button,the changed value of that field should get updated in that particular record in the database table.Here I want to update mvke and marc tables.
    I have used FM BAPI_MATERIAL_SAVEDATA to update the database tables.
    Only marc table is getting updated with changed values.mvke table is not getting updated.What would be the reason for this.
    I am sending a part of my code.Please check it.
    form move_mat_data .
    *Header
    gt_bapi_head-material = gs_output1-matnr.
    gt_bapi_head-ind_sector = gs_output1-mbrsh.
    gt_bapi_head-matl_type = gs_output1-mtart.
    gt_bapi_head-basic_view = 'X'.
    gt_bapi_head-purchase_view = 'X'.
    gt_bapi_head-account_view = 'X'.
    gt_bapi_head-sales_view = 'X'.
    *Client
    gt_bapi_client-matl_group = gs_output1-matkl.
    gt_bapi_client-base_uom = gs_output1-meins.
    gt_bapi_clientx-matl_group = 'X'.
    gt_bapi_clientx-base_uom = 'X'.
    *Plant
    gt_bapi_marc1-plant = gs_output1-werks.
    gt_bapi_marc1-pur_status = gs_output1-mmsta.
    gt_bapi_marc1-mrp_type = gs_output1-dismm.
    gt_bapi_marc1-mrp_ctrler = gs_output1-dispo.
    gt_bapi_marc1-serv_level = gs_output1-zserclass.
    gt_bapi_marc1-availcheck = gs_output1-mtvfp.
    gt_bapi_marcx-plant = gs_output1-werks .
    gt_bapi_marcx-pur_status = 'X'.
    gt_bapi_marcx-mrp_type = 'X'.
    gt_bapi_marcx-mrp_ctrler = 'X'.
    gt_bapi_marcx-serv_level = 'X'.
    gt_bapi_marcx-availcheck = 'X'.
    Material Description
    REFRESH gt_materialdesc.
    gt_materialdesc-langu = gs_output1-spras.
    gt_materialdesc-matl_desc = gs_output1-maktx.
    append gt_materialdesc.
    *Sales
    gt_bapi_mvke1-sales_org = gs_output1-vkorg.
    gt_bapi_mvke1-distr_chan = gs_output1-vtweg.
    gt_bapi_mvke1-sal_status = gs_output1-vmsta.
    gt_bapi_mvke1-valid_from = gs_output1-vmstd.
    gt_bapi_mvkex-sales_org = 'X'.
    gt_bapi_mvkex-distr_chan = 'X'.
    gt_bapi_mvkex-sal_status = 'X'.
    gt_bapi_mvkex-valid_from = 'X'.
    endform. " move_mat_data

    Hello Hema,
    Find the fields which you need to populate with values:
    As an example i'm trying to update DISPO from MARC and VKORG from MVKE.
    No need to fill clientdata and clienddatax.
    * Header data
          MOVE g_wa_mat_out-s_matnr TO g_r_headdata-material.
          MOVE 'X' TO g_r_headdata-mrp_view.
    * Plant data
          MOVE g_wa_mat_out-t_werks TO: g_r_plantdata-plant,
                                        g_r_plantdatax-plant.
              MOVE g_wa_mat_out-t_dispo_new TO g_r_plantdata-mrp_ctrler.
              MOVE 'X' TO g_r_plantdatax-mrp_ctrler.
              MOVE g_wa_mat_out-t_vkorg_new TO g_r_salesdata-sales_org.
              MOVE 'X' TO g_r_salesdatax-sales_org.
    Reward If Helpful.
    Regards
    Sasidhar Reddy Matli.
    Edited by: Sasidhar Reddy Matli on Feb 7, 2008 11:49 AM

  • TDS amount not getting updated in the table under the field QBSHB

    Dear Friends,
    The TDS amount entered while booking the vendor invoices through MIRO T-cde, is not getting updated in the table BSEG under the field QBSHB. 
    Kindly let me know the reason for the same and guide me to correct it
    TIA.
    Regards,
    Vincent

    HI Vincent,
    Bseg-QBSHB field is relavent for classic WT.
    I hope you are using the EWT.
    Hence if you post a document through MIRO it will not update
    (but if you post document FB60 it will update but wrongly).
    Reason is Miro document is posted through interface.
    Hence SAP is suggested to not refer the Bseg-QBSHB and etc., fields.
    refer only with_item table.
    Please refer the below replay from SAP
       Please refer the below note .363309
    Please review attached note 363309 for detailed explanation
    BSEG-QBSHB is designed to fill for the classic withholding tax. And
    extended withholding tax information is stored exclusive in table
    WITH_ITEM.
    You can check in table BSEG for the fields and will find that system
    do NOT update field BSEG-QBSHB.
    In your line layout,you define a field BSEG-QBSHB. But actully the field
    of vendor/customer line item is filled with zero from FI. Thus,it shows
    zero in line item display.
    And as note 363309 says,
    "Remove the field which contains the withholding tax information
    from your display variant.
    If you want to display the withholding tax information, double-click on
    the document number and subsequently choose 'Withholding tax' button."
    (BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) field is not relavent for
    Extended withholding tax and not suppose to use in report FBL1N.
    It basically does not make any sense to use the withholding tax fields
    of the document line items (BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) with the
    activated extended withholding tax.
    regards
    Madhu M
    Edited by: M Madhu on Jan 31, 2011 1:19 PM

  • Not getting updating in a table....

    Hi friends,
    Currently i working on integration of apex with ebs R12.....And i have successfully integrated following the rod west document....
    I created one DB application in my sample schema that is associated with apex 4.0.....
    Application details:
    *) login page(where i will be giving username and password)
    *) page 1 (consist of several form fields, like
    --->name:
    --->module:
    --->projects:
    ----->email:
    the above are the fields, if i put any entries in the above field means, it will get automatically inserting in the report column, which is also in the same page consist of the above fields in the table manner...
    since this report table consist of an edit icon in front, if i clicked the edit icon of an one row means, it will go to another page..
    *) i.e. page 3(consist of the same fields with entries in it automatically corresponding to the each and every row, suppose if i want to update any changes means i can update in it....
    this is my application that i developed it is working well with in the sample schema apex 4.0..
    What i did is i created a new workspace with APPS schema in it...and i have imported my application that i developed in sample schema to APPS schema....
    Since after importing to APPS schema...when i tried to open the application, it is not showing any datas in it...That is due to the tables that are supporting the application is not in APPS schema, so what i did is i have given grant privilege to the respective tables and also i have created a synonym for accessing the table in APPS schema for supporting the application.....
    Now if i tried to put any entries in the form in page 2, it is getting inserting in the report column which is also in the page2....
    But my problem starts here, if i clicked the edit icon symbol in each and every row of the report column it is going to the page 3 which has a respective form fields, but it is not showing any entries in it automatically, and if i tried to put any entry in it, it is not getting updating in the report table......
    why this problem occurred for my application in APPS schema....But my application works very well within the sample schema......why it is not showing any entries in the form automatically soon after i clicked the edit icon in each and every row.....
    i couldn't know what is the real problem behind this..... help me friends,
    Thanks in Advance..
    Regards,
    Harry...

    Goodmorning,
    Have you had a look for notes, Depending on the release and industry sollution you can find several notes on this subject (start looking for message RW 022).
    Annemarie de Bruijn

  • HIREDATE & FIREDATE of Employee are not getting updated in t-code PA20.

    Hi all,
    HIRE DATE & FIRE DATE are not getting updated whenever the data of an employee loaded into SAP T-Code PA20 .
    And even the input data contains the both the fields HIRE DATE & FIRE DATE
    Can any one please suggest us why its happening.
    Thanks,
    Lava.

    Hi Girishkg,
    The default IIS limit for the upload file size is 30MB. If the selected files are larger than 30MB, the files are not uploaded.
    The limit can be set in web application’s web.config file or in IIS .
    There are two detailed articles about setting the limit:
    http://www.brainlitter.com/2009/07/13/sharepointcannot-upload-documents-larger-than-30mb-on-windows-server-2008-or-sbs-2008-application-servers/
    http://expectedexception.wordpress.com/2011/02/08/upload-multiple-files-fail-without-error/
    Feel free to reply if the issue still exists.
    Best regards
    Wendy Li
    TechNet Community Support

  • PO details not getting updated in PO

    Dear all,
    In one of my PR i have found that PO details in PR status tab is not getting updated. In PO  line item in PR reference field it contains the PR no & i am able to navigate to PR document from their, but i have noticed that in PO in delivery schedule tab the PR no is missing. Please give your valuable inputs.
    Thanks
    Rashid

    Hi,
    Check the item Changes to the item in the Po for which the Po Number is not being displayed in Status tab of the PR. It is possible that if the PR Number is removed  or the line is deleted in the Delivery Schedule Tab of the PO , this will not be reflected in the Status tab of the PR . E ven if the PR Number will be available in line with the Item Number in the PO.
    Dhruba

  • Custom field in BP_PDBGP table not getting updated

    Hi,
    i am working in Contract management in SRM 7.0 Pack 6. I have aadded a custom field in partner table which appears in the partner table of contract header. It is a checkbox. when i check it the value gets saved in BBPPDBGP table for the first time after that if i try to uncheck it the value is not getting updated. I checked in the BBP_DOC_CHANGE_BADI, the value which is getting passed is correct but it doesn't update the databse accordingly.
    Any suggestions? is this a standard bug?
    Neha

    Hi Virendra,
    Thanks a lot for your suggestion.
    Where should i check? If the data passing to BBP_DOC_CHANGE_BADI is correct then that means at the webdynpro side there should not be any problem and as per the standard after doc_change also it should save properly. i also checked the badi there is not dependent coding done over there. DOC_SAVE badi is also inactive for contract business object. Hence, i am not getting any clue where could be the problem.
    Let me know if you want more details inorder to analyse this problem.
    Thanks &Regards,
    Neha

  • System status not get updated.

    hai any one can help me in this pls
    my client created sevice orders in crm system and in these some details are reflected in to mobile client.There is integration between in CRM & Mobile clients.
    present requirement is system status is not get updated.
    user status is released.but in system status showing like 1) open  2) contains error. This is occure for some sevice orders  which are created in perticular transaction type  for suppose if my client created 1000 service orders in that 200 or 250 orders status not get updated.
    Because of  this the followup document is not created.
    For temparary pupose to overcome this issue we are doing like this. There are two mandatory fields are there in that any one delete and reenter the same value then automatically the system status get updated in to release status.
    where the problem whether  is in configuration or it is in system
    or it is some technical. Before its worked properly recently they got this issue. How can i overcome this issue permanently.

    Hi
    The status of a sales transaction, saved in CRM Enterprise must be without errors so that it can be transferred to the mobile client
    Sales transactions with errors can be transferred from the mobile client to CRM Enterprise.
    Check the table CDBD_STATUS
    Reward with points if helpful
    Regards
    Manohar

  • 544 Movement ,Qty & value is not getting updated in MC.9

    Dear friends,
    MC.9 & MB5b report is showing difference in Qty & Value.In my analysis i came to know that 544 movement is not getting updated in MC.9. I also Checked the Statistically relev. key as 2 and Consumption posting   G  in OMJJ.
    I require the info about MC.9 configuration or any info related to this.

    Hi,
    Please refer SAP note 581240 for this.
    For these stocks you have three valuation types for selection:
    ' ' = no inventory valuation
    'A' valuation = without reference to sales document ('make-to-stock
    inventory')
    'M' = separate valuation with reference to the sales and distribution
    document/project
    ONLY stock/stock movements with special stock valuation 'A'
    (make-to-stock inventory) are updated in Inventory Controlling.
    Thus, if you find a document which is not updated in the info structures
    of Inventory Controlling (S031-S039) and you require this, check the
    corresponding documents in the materials management tables. You can find
    the special stock indicator and indicator of the valuation of the
    special stock, for example, in document segment table MSEG in the
    following fields:
    MSEG-SOBKZ = Special Stock Indicator
    MSEG-KZBWS = Indicator: Special Stock Valuation
    Only A type (make to stock ) are updated in the info structures.
    Hoping this helps.
    Regards,
    Rajesh.

  • Master Data is not Getting Updated Properly.

    Dear Expert,
    I am trying to pull the data by Info package but The text is not getting updated.
    The Master data object is    0BPARTNER .  To update this Master data , we ghave 2 info packages
    0BPARTNER_ATTR   and    0BPARTNER_TEXT.    But the text is not getting updated ( like the fiels E-mail address, Address 1, Address 2, Address 3, Address 4,.... Phone No,Etc.
    What could be the Reason for this and How can I solve this issue  ?
    Tahnks,
    Utpal

    Hi,
    Could you please check the data in RSA3.
    If everything is there in R/3 side.Then,please check are you giving any
    condition in the infopackage .
    Please run the infopackage without giving any condition.
    Thanks,
    Saveen Kumar

  • Tax is not getting updated in Sales Order Pricing Conditions

    Hi ,
    Tax is not getting updated in Condition of sales order when creating Sales order but when we click on update button it is calculating correctly.
    Following are the changes for in the standard Pricing:
    1) Created ZPSC condition type to calculate the sur-charge from Z-table
    2) ZPR0 Condition type to calculate the sum of PR00 and ZPSC
    So tax has to be calculated based on the ZPSC value, but it is calculating the tax based on the PR00 base price.
    We implemented the logic for updating values of  Amount and condition values for ZPSC and ZPR0 by creating custom Routine 904 in Calculation types and assigned the routine in Pricing Procedure.The correct values are coming till NET VALUE 3 but tax is calculating based on the PR00 net price.
    I debugged the code for Tax Routine the value for Net value (NETWR) is the base value price but displaying correctly in Net value screen of Conditions tab.
    Please suggest how to update the Tax values correctly without manual update.
    Thanks ,
    Rajesh Sanapala.

    Hi Lakshmi,
    I am using a TAXINN procedure.....to correct my self can u brief me abt the CIN configuration settings required from SD point of view......how many tax codes have to be maintained for capturing the BED,EDCess,SHED cess,VAT,CST and what are the condition types required for capturing the same.....
    I am using JEXQ-A/R BED ......for capturing the BED....and so on ......I feel that i have missed out on some settings ,thats why few conditions are getting captured and some are not.....It would be great if you ca nhelp me on this.
    Thanks
    Ivy

  • Data is not getting updated in CRM

    HI experts,
    I am updating the new address and postal codes in ISU.And now if I check these address for buisness partner in CRM. Its not getting updated.
    why this is happening?
    Is there any BDOC used in this case then how we can check that BDOC?
    Thanks,
    Jassi

    Hello
    I am sure that the problem occurs due to this.
    You need to know the error message. To do this:
    1) Choose any red document from transaction SMW01
    2) Click on button "Show BDoc message errors/receivers" (9th button from the left)
    3) In the opening window there is a button "Errors". There is where you can find the error message.
    I hope it helps. Please, provide points if helpful.
    Joaquin

Maybe you are looking for