Maintain Jtable state!

Hi,
In my software I browse a lot of files, csv & xls files and load them onto JTable. Each jtable is in different JInternalFrame, now the problem is when I refine the data. How am I suppose to treat each Jtable as different and maintain its state?
Eg. If there are two files FileA and FileB opened, and I want to add 5 to each value in FileA and add 8 in FileB then how do I do that simultaneously. The logic for calculating will be the same for both but they should be opening different panes for each and the calculation command is not given together they are given separately in their frames simultaneously by right clicking on the jtable

Create a loop and updated each table separately.
Other than that you question is too vague to give a better reply.

Similar Messages

  • Maintain folder state in struts in a JSP

    Hi
    I had a requirement of displaying a group of folders in very large numbers in the corresponding Folder hierarchies in a JSP. I acheived it using Ajax calls. This is the set of steps we have adopted
    1. When ever a user clicks a Open/Close/add file/delete file/add folder/delete folder to a folder, using Ajax we retrieved the whole result set into a XML, applied some styles to it(XSLT) and finally we make them displayed in the jsp using object. innerHTML = processResponse()method in Ajax.
    2. while we dispay this entire Library tree in the JSP, we maintain the state of the folders in a map(Which contains the folder id's which are in expanded state) and that map is being attached to a session and thus we store the each FolderInfo and finally display the tree using XSLT.
    3. I notice the state is always getting disturbed every time I perform the above mentioned actions, I see the entire tree with all the folders in expanded state(as the default value of the isExpand variable of the FolderInfo object is true.). Is this the correct way of preserving the Library Tree's state. If not so , please suggest an improvements of the existing process or an alternative one.
    This process involves the role of map in the session across alll teh DAO and business layers and finally to the Presentaion layer.
    Thanks

    Yes, there are two ways (at least) to do that:
    1. Map<String, ClientData> where String is the result of RemoteServer.getClientHost(). Use this in the case where there is only one instance of your remote object.
    2. Allocate a remote object instance per client. I call this the Remote Session pattern. You make it so that the thing you look up in the Registry is really a factory, and your clients call a method on the factory to get their own instance, which is basically a remote session.

  • How to maintain the state in Extn

    Dear all,
    I have created the extn using creative suite for photpshop. when i click my extn name, it will initilize everytime. e.g.if user login the extn and he/she will close the extn. Aftre that when user again hit on my extn. it will initilize, and ask for login again. how could i maintain the state in that case? Any suggestion or solution will appreciated..

    Hi,
    use a setPropertyListener to save the row key of this select item and then restore this key as the current selected key.
    Frank
    Ps.: I don't ask why you call clearForRecreate() on the iterator. I am sure you have a reason.

  • Maintaining financial statement items

    What is the TCode for Maintaining financial statement items ?
    Markus

    Hi,
    Why the financial statement (OB58) BAPT included the old and new alternative account, don't displayed the splited value?
    exemple :
    2009 622800 60,00u20AC account
    2010 622230 40,00u20AC account
    all standard reports based on financial statement BAPT, display the total value  (100,00u20AC) on the last alternative account (622230 ) and not the splited value.
    Thank you for your feed back.
    Rgds
    Francoise

  • Withholding tax maintain ITD state codes

    Hi,
    I need to configure in withholding tax 1). Maintain ITD state codes, 2). Assign ITD State Codes to Regions. Can you tell where i will get these two steps. please give path in ECC6.
    Regards,
    Venkat.

    HI Venkat,
    Please refer the note no 968208 for complete steps.
    Regards
    Madhu M
    http://wiki.sdn.sap.com/wiki/x/UgTpCw  (RUPEE WORD FORMAT)
    http://wiki.sdn.sap.com/wiki/x/8oMEDg  (J1INEMIS )
    http://wiki.sdn.sap.com/wiki/x/2BAMDg  (J1INACKN )
    http://wiki.sdn.sap.com/wiki/x/3xAMDg  (J1INCCREP)
    http://wiki.sdn.sap.com/wiki/x/6xYODg  (J1INREV  )

  • Maintain financial statement in sap

    dear all
    we work with the following concept when we post any entry we enter fund in fund field because we activate fund mangement  , i need to create financial statement from report painter from transaction code fgi4 and i need to make classification depand on fund so i faced error masseage ( no charectristic for fund but when i press f4 i display all fun so please try to solve it asap
    thanks

    HI,
    yes it works like ATGFICO said. As an addition to this process you can authorise a user to a number of financial statement versions (eg User A is allowed to maintain FSV A, user B FSV B, user C FSV A+B,...) to ensure that FSV for local needs is maintained there FSV for group needs is maintained by group accounting,...
    We make it this way, as the alternative to create / ALE-transfer every new account number to development system, maintain the FSV versions there and transport the changes to production system is time consuming. The advantage of the first thing is, that functional department can handle FSV maintenance, NO IT support needed.
    BR Christian

  • Maintaining Session State

    Hello,
    Does anyone know how to maintain session and application variables through server restarts? I want to be able to shutdown and startup my Tomcat server without having the users lose their session and application variables (and consequently, their data and login state).
    Any ideas?
    Thanks!
    -David

    I dont think its possbile since stopping and restarting gets new sessions. Only way that I would know would be to use cookies.
    But then again i dont like the idea of saving passwords in cookies

  • Problems with maintaining session state using mod_ose

    I am using 9i AS(version 1.0.2.0) and oracle 8i(version 815).
    Because i need to maintain client sessions for my application, I
    have activated mod_ose(for stateful session). As suggested in
    the oracle documentation, i created a package containing
    variables for which state needs to be maintain per client. The
    state is maintained by the app server but it is not maintained
    properly. All the new clients that connect to the app server
    share the same session variable values. If I change a package
    variable value from one client, other clients take the same
    value.
    Any solution?
    Suggestions are most welcome.
    Thanks in advance.

    We installed oracle9i AS on solaris, configured OSE and the
    problem is not occuring now. Not sure whether its solaris that
    worked or 9i AS had some problem on NT machine earlier.
    Regards,
    Sharad

  • Maintain client state in server

    Can I maintain state for a specific client in rmi/jrmp server object (like ejb stateful session bean)?
    Thank you, Bobic.
    Edited by: 883271 on Sep 5, 2011 9:34 AM

    Yes, there are two ways (at least) to do that:
    1. Map<String, ClientData> where String is the result of RemoteServer.getClientHost(). Use this in the case where there is only one instance of your remote object.
    2. Allocate a remote object instance per client. I call this the Remote Session pattern. You make it so that the thing you look up in the Registry is really a factory, and your clients call a method on the factory to get their own instance, which is basically a remote session.

  • Maintain client state

    I'm developing a pure XML client-server application (not web application)
    My frontend is a servlet but I can't use HttpSession (not cookies, hidden fields because my clients not are web browsers)
    I need to maintain state between my clients and my server.
    I need to deploy application in an cluster environment
    1) Is a good solution to use Stateful EJBs and pass EJB handle back to client in every call (using it as my user sessionid)
    Any help will be appreciated!

    Hi,
    My cient should include this handle (he will use like an user session id), in every call to my server.
    Steps involved:
    1)Client performs a XML login call to my server
    2)I create new Stateful EJB session for this client and return the EJB handle as request in the login XML call
    3)My client includes this handle (i.e. inside an XML tag)in every call performed after tehe login call
    4)If I receive a not Login call, I take the handle (parsing XML client request) and restore client state using EJB stateful handle

  • Maintain Fiancial Statement Version with alternative account

    Hello,
    We have a global chart of account, for a certain company code, each of
    the accounts from the global chart of account has its own alternative
    account from an alternative Chart of Account.
    We have defined the Financial Statement under the principal Chart of
    Account but have assigned the alternative accounts.
    When we execute the S_ALR_87012284 transaction to display the
    balance sheet, we are not able to see the node text of our Financial
    Statement structure.
    What is the procedure to correctly display Balance Sheet Structure,
    maintaining the nodes and node text?
    Thank you
    Daniel

    Hi,
    When you execute the T.code S_ALR_87012284,select special evaluations tab,select alternative account number check box:
    Pls go thru below:
    Issue Alternative Account Number
    If this parameter is set, the G/L account number is replaced by the alternative account number (from the company code-specific G/L account master record).
    Requirements
    These account numbers are only substituted if country charts of accounts are maintained in the global data of the company codes selected, and these charts of accounts differ from those belonging to the company code. The alternative account numbers in the G/L account master records must be contained in the respective country chart of accounts. The alternative account number is only shown on the financial statement if you have explicitly assigned it to the appropriate items of the financial statement version. You must therefore maintain your financial statement version so as to contain the alternative accounts.
    Thanks
    Aravind

  • Maintaining the state between http requests

    All of the SDK examples perform a login followed by a logout.
    The Content dhtml applets require a login, after which the login is no longer required until either the session is closed or the timeout period has expired.
    In the SDK java examples, WsConnection is used to perform the login.
    Using the SDK, how do I maintain the session across http requests?
    How do I determine whether the session has timed out?

    Session state across http requests is automatically taken care of when you use the classes like WsConnection or ContentServicesSession in the sample tool kit. The session is valid until the time out happens(due to inactive session) or the client issues a logout command. It is possible to keep the session alive for longer time by using SessionManager.keepAlive() for long running transactions.
    To check whether the session is available or not you can issue a simple command like FileManager.resolvePath("/",null). If this call throws a session not connected exception ,you know that the current session is invalid.
    Hope this helps,
    Ravikiran

  • How to maintain a state in webdynpro?

    HI Experts,
    I have one  node and some value attributes(dynamic attributes) in this node.
    I am using these dynamic attributes in wdDoModifyView() to customize my table.I am setting the customisation properties in the Customization view and when I click "OK",the table is getting changed in the Table view.Everything is working fine.But when I again try to customize the table ,I open the Customization view ,the previously modified changes are not there in the Customization view  .Customization view is not holding the state.Its getting reset.
    Please suggest me how to retain the state.
    Regards
    -Sandip

    HI Ayyaparaj,
    I did it in the same way.I created the node in the component controller and maped it with the the two views (Table View and Customization View).The first time when I customize,its working.But next time when I open the Customize view,Customize view not holding the previous state.
    Do i need to do any setting in the Node property?
    Please suggest me.
    Regards
    -Sandip

  • Jaxm - Maintaining Session State

    Hi,
    I have the following problem:
    My client dispatches jaxm-soap-messages to a java-servlet using the reference implementation of sun (wsdp). For each time I use the same SOAP-connection object. The problem is, that the servlet opens with each inquiry a new session. How can I maintain the session ( for example setting a cookie in case of http as the protocoll)? Is there a mapping between parameter in soap-header to http-header ?
    Greetings,
    Zubow

    Hi. I ran into the same situation a while back. I'll tell you how
    I resolved the problem.
    You have to build your own handler class. Extend the javax.xml.rpc.handler.GenericHandler class. Implementing the handleRequest(MessageContext msg) method.
    1 public boolean handleRequest(MessageContext context)
    2 {
    3 try
    4 {
    5 SOAPMessageContext smc = (SOAPMessageContext)context;
    6 SOAPMessage message = smc.getMessage();
    7 MimeHeaders mimeHeaders = message.getMimeHeaders();
    8 if(mimeHeaders.getHeader("Cookie")==null && getCookie()!=null)
    9 {
    10 mimeHeaders.setHeader("Cookie",getCookie());
    11 }
    12 }
    13 catch(Exception e)
    14 {
    15 throw new JAXRPCException(e);
    16 }
    17 return true;
    18 }
    19 public boolean handleResponse(MessageContext context)
    20 {
    21 try
    22 {
    23 SOAPMessageContext smc = (SOAPMessageContext)context;
    24 SOAPMessage message = smc.getMessage();
    25 MimeHeaders mimeHeaders = message.getMimeHeaders();
    26 if(mimeHeaders.getHeader("Set-Cookie")!=null && getCookie()==null)
    27 {
    28 String[] headerValues = mimeHeaders.getHeader("Set-Cookie");
    29 String cookie = headerValues[0];
    30 if(cookie.indexOf(";") >= 0)
    31 {
    32 cookie = cookie.substring(0,cookie.indexOf(";"));
    33 }
    34 setCookie(cookie);
    35 }
    36 }
    37 catch(Exception e)
    38 {
    39 throw new JAXRPCException(e);
    40 }
    41 return true;
    42 }
    The overall concept is to handle the soap message before it goes back
    to the server. You need to add the COOKIE header variable set to JSESSIONID=your session id
    to the message header before every request goes to the server. The handleResponse looks for set-Cookie variable that comes back from the
    very first request.
    Hope that helps.
    Mike
    first request.

  • Maintaining editable state in multiple cells on datagrid

    Hi,
    I'm looking to create a component, (and from the tutorials
    i've read, i imagine a datagrid would be best) where i can change
    multiple cells, keep them in an editable state (visual reminder of
    changes made as well as functionally editable) - and to then flush
    the changes through with a keystroke - just hitting return
    basically. the component would be recieving push data through
    httpservices/webservices, and the user will send adjustments back,
    usually multiple changes at once. i've looked at item renderers,
    but that seems to control more the format/appearance of a component
    than its functions?
    Is this possible to do in flex? i'm assessing alongside gwt,
    and trying to figure just how lowlevel the customisation can go in
    flex. any ideas/tutorials/examples would be very much appreciated,
    cheers!

    Hi,
      Refer the sample code
    https://forums.sdn.sap.com/click.jspa?searchID=12153389&messageID=1593610
    Regards
    Kiran Sure

Maybe you are looking for

  • Share a customized Bridge CS6 or CC workspace with others on my team: Is this possible? Is there a specific file I can copy and share?

    I set up a customized Bridge CS6 workspace that shows specific information team members need, and nothing else. I'd like to share it, save it as a preference, or otherwise export it so team members can have it, too. There must be a file, eh? Otherwis

  • Imposible to change ntsc to pal resolution

    For an unknown reason, my mac mini has decided that my monitor is now ntsc, and everything is terribly ugly. Fonts and colors are really bad. Only things I have done is conecting through mini display port or hdmi. display port for monitor and hdmi fo

  • Detecting if insert  or modify a footnote

    Hi I want to detect in my plugin if insert or modify a footnote on current document. If user insert or modify a footnote, I will do something in my plugin. How can I do? thanks

  • Shared services- Access Assign issue for Essbase

    Hi All, I need to associate Filter with a group in Shared Services, but when I go to Application Groups, right click on the Application name and select "Assign access control", but in the list of Groups that come in the very first window, i dont see

  • PC to Mac Webcam?

    Hi, Our friends are moving to Australia from the Uk and we would like to keep in touch via webcams. The thing is, i have an iMac with a built in web cam and they have a PC with a plug in webcam. I know nothing at all about web cams or how to use them