Need to see all records stored in a file

Hello
I have a simple question about ObjectOutputStream and ObjectInputStream.
I have a Person class which contains infomation about a person
When the user presses the savebutton I need to write this to file
***SAVEBUTTON******
p.setName(nameTextField.getText());
p.setAge(Integer.parseInt(ageTextField.getText()));      
writeRecord(p);
***WRITERECORD***'
openW();
outFile.writeObject(p);
outFile.flush();
***READRECORD*******
p = (Person)inFile.readObject();           
nameTextField.setText(((Person)p).getName());
ageTextField.setText(new Integer(((Person)p).getAge()).toString());
inFile.close();
I have a read button which must show all records in my textfields.
Pressing the read button should show the first person and then the second etc.
But it seems that I can only see the last record entered.
So the question is how to be able to solve this in the best way.
Should I use an array to somehow solve this or how do I see all persons one by one?
THANKS

I don't see a reference to the number of records you are processing nor a reference to the amount of resources on the client side or any business rules implementations. Those may have bearings on how you choose to iimplement your display model.
generally speaking -- when dealing with 10's of thousands or more, I prefer to use database with ResultSets and some type of caching scheme, when using small amounts of data, then you have the luxury of making in memory structures for your entire set.

Similar Messages

  • Need to see ALL files in folder when saving from Word 2003 OR Word 2013 program

    Here is the issue.... A customer of mine has the need to save files in order (Communications with customers by date and time)
    BUT..... when saving the file word does not let him see ALL the documents (.doc AND .docx) in the save dialog. (I know we could convert but there seems to be issues with the conversion, at least on the research I have done)
    Is there a way for the Word save dialog box to display ALL the files in the selected folder?  OR is this just an undocumented feature OR a WOW we never thought of that....
    Thanks!
    John
    John Huber

    Hi,
    When we save a Word document, the "Save As" dialog only displays these files which are the same type as the one we are trying to save. To display other types of files, select from the "Save as type" box, but I haven't realized there's a way to show
    all types of files when saving. This is just how it works so far.
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Need to see all columns in PSA

    hi, I am in BW,DS, manage, psa.  I want to see all the columns in psa.  how do i see?
    Thanks,
    Radha

    Find out the data load request from RSMO Heasder tab,
    Find the record in table RSTSODSPART for that request,
    Value in the field Technical ODS name is the name of the table for PSA
    You can go to SE16 and then view contents for this table..
    OR
    Right click Cube/ODS and select show dataflow,
    TurnON technical names,
    IT shall give you the technical name of PSA,
    Go to SE16 and use this name to view all the contents of PSA at once

  • HT201303 i need to see my records should i sign in to my account

    i need to see my records

    Hi R.taws9,
    Thanks for visiting Apple Support Communities.
    Log into the My Apple ID page at http://id.apple.com to edit your account information.
    If you would like to change the information associated with your iTunes Store account, see the instructions here:
    iTunes Store: Changing your payment information
    http://support.apple.com/kb/ht1918
    Best Regards,
    Jeremy

  • I need help deleting "all records associated with my domain name"

    Hello,
    I'm having problemsthe same exact problem as Daren... setting up my site to go live. Here's what I've done so far:
    1) built the site and pushed it live
    2) upgraded the site
    3) set up a GoDaddy domain name
    4) set up the servers on GoDaddy
    5) set up the associate account info on BC
    And then.... nothing.
    I've then deleted the domain and tried to repeat the process, in case I missed something, but now I can't set up a new domaine and keep getting the error "Domain already exists. Please delete all records associated with this domain". What records? What does this even mean?
    Can someone please walk me through the steps to get this site live?
    Thanks!
    Alex

    Can you try again? If still no go, please reach out to BC support directly via http://helpx.adobe.com/contact.html?product=business-catalyst&topic=using-my-product-or-se rvice.
    Thanks,
    Vinayak

  • Need to view all records with two variables in recordset

    Hi - My recordset has two variables used to sort products by popularity and type.  But I want a "View all" link that shows all records, in ascending order, regardless of popularity or type.  At the moment the .php page is set up to receive either the popularity (varPopular) variable or the product type variable (varGrouping).  If neither variable is provided, no products appear on screen.  How do I set up the recordset to allow for all records to be displayed?  Thanks for your help!
    [CODE]
    $varPopular_Recordset1 = "n";
    if (isset($_GET[popular])) {
      $varPopular_Recordset1 = $_GET[popular];
    $varGrouping_Recordset1 = "1";
    if (isset($_GET[grouping])) {
      $varGrouping_Recordset1 = $_GET[grouping];
    mysql_select_db($database_connGiavan, $connGiavan);
    $query_Recordset1 = sprintf("SELECT crystal_colors.cystalid, crystal_colors.displayname, crystal_colors.imagename, crystal_colors.popular, crystal_colors.`grouping` FROM crystal_colors WHERE crystal_colors.popular=%s OR crystal_colors.grouping=%s", GetSQLValueString($varPopular_Recordset1, "text"),GetSQLValueString($varGrouping_Recordset1, "int"));
    $Recordset1 = mysql_query($query_Recordset1, $connGiavan) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $varGrouping_Recordset1 = "$_GET[grouping]";
    if (isset($_GET[grouping])) {
      $varGrouping_Recordset1 = $_GET[grouping];
    $varPopular_Recordset1 = "$_GET[popular]";
    if (isset($_GET[popular])) {
      $varPopular_Recordset1 = $_GET[popular];
    mysql_select_db($database_connGiavan, $connGiavan);
    $query_Recordset1 = sprintf("SELECT crystal_colors.cystalid, crystal_colors.displayname, crystal_colors.imagename, crystal_colors.popular, crystal_colors.`grouping` FROM crystal_colors WHERE crystal_colors.popular=%s OR crystal_colors.grouping=%s", GetSQLValueString($varPopular_Recordset1, "text"),GetSQLValueString($varGrouping_Recordset1, "int"));
    $Recordset1 = mysql_query($query_Recordset1, $connGiavan) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    [Moved to Dreamweaver Application Development forum by moderator]

    To start with, you should be aware of the fact that you have the same recordset code twice in your page.
    You'll find an article that explains how to build a SQL query to do what you want here: http://cookbooks.adobe.com/post_Create_search_query_with_optional_fields-16245.html.

  • Mail merge doesn't see all records in Access query

    Office 13 running on Win 8.1.
    I have a query in Access that show 4 records when I run it. If I specify this query as my data source (select recipients) and then choose to edit the recipient list, there are only two records! The query in Access looks like this:
    SELECT Membership.[m-nbr], Membership.[m-first], Membership.[m-member-since], Membership.[m-pick], Contact.[c-zip], Regions.[r-region-name], Regions.[r-region-director], Regions.[r-region-email], Membership.[m-member-since], Associates.[a-first-name], Associates.[a-id]
    FROM ((Membership INNER JOIN Contact ON Membership.[m-nbr] = Contact.[c-nbr]) INNER JOIN (Regions INNER JOIN [Region/State] ON Regions.[r-region] = [Region/State].[rs-region]) ON Contact.[c-state] = [Region/State].[rs-state]) LEFT JOIN Associates ON Membership.[m-nbr]
    = Associates.[a-nbr]
    WHERE (((Membership.[m-pick])=True) AND ((Associates.[a-id]) Like "*A" Or (Associates.[a-id]) Is Null) AND ((Year([m-member-since]))=Year(Date())))
    ORDER BY Contact.[c-zip]; 
    If I remove this part: "((Associates.[a-id) Like "*A" Or (Associates.[a-id] is Null AND" then all 4 records show up in the recipient list.
    In short, members can have multiple associates, but only the"A" associate is to be included in this letter. (associates have the same number as the member, with an a,b,c etc. appended. A member number could be 8741 and an associate number 8741A. 
    Why is this happening? Thanks, ~Steve
    Steve Woodward

    Hmm, I tend to work in SQL mode when creating queries in Access - in that case, it doesn't change what you write. But I see that in the tabular Design mode it does change to ALIKE and that it works OK - something I wasn't aware of. I read that ALIKE is supposed
    to allow "%" and "_" even when the database is in "Jet mode. 
    FWIW in ANSI mode, I would not expect LIKE "%a" to work in Access but it should work from OLE DB
    But in any case, it still works OK here, so still not sure what is wrong.
    As a workaround, it might be necessary either to export the query results from Access, then use the exported data as your source, use the query to create a new table and use that as the data source, or connect using DDE (to do that, in Word, you have to
    check Options->Advanced->General->Confirm file format conversion on open. Then go through the connection process again and select the .accdb/.mdb. If it's a .accdb, you will have also have to check "Show all" when you get to the "Confirm Data Source"
    dialog box. At that point, you need to select the "MS Access Databases via DDE" option from the list (even if you have a .accdb, which isn't listed in the file types for that connection method).
    All of these approaches have their disadvantages (e.g. DDE may not connect easily and probably won't return Unicode data correctly) but may at least give you another avenue of investigation.
    Peter Jamieson

  • How to see the record stored in multiple table

    please send me the

    Hi,
    You can do it like this:
    DECLARE
    rec_count NUMBER;
    BEGIN
    FOR tbl_cur IN (SELECT table_name from user_tables)
    LOOP
      EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM '||tbl_cur.table_name INTO rec_count;
      IF rec_count >0 THEN
        DBMS_OUTPUT.PUT_LINE(tbl_cur.table_name||' has data.');
      ELSE
        DBMS_OUTPUT.PUT_LINE(tbl_cur.table_name||' has no data.');
      END IF;
    END LOOP;
    END;**not tested**
    Regards
    Avinash

  • Need to "Reconnect" all Excel Lists in a file from Sharepoint due to 2013 Migration - All URLs changed.

    Hi,
    I have a lot of excel files with lists that come from Sharepoint.
    When we upgrade from Sharepoint 2010 to 2013, all our URLs are chaning since were going to single farm.
    When I ran some tests, the excel files in the 2013 Sharepoint site all point to the 2010 Sharepoint lists.
    Is there a way to go through all the lists in an excel file and somehow point them to the new Sharepoint Collection?
    Thanks!
    Mike

    Thanks for the advice.
    Fortunately I was finally able to come up with a home-grown solution so I'll post here in case someone else needs it.  The code has some extras from my particular application so I just set the basic required code to
    bold italics.
    Sub Replace_Data_Connection_URLs()
    Set wb = ActiveWorkbook
    Dim i
    Dim FullURL1, FullURL2
    Dim didChange
    Dim m
    Dim arrProt() As Variant    'Just an array I used while checking for sheet protection.
                                        '  >>>>>>>>>  
    Sheets need to be unprotected first.
    Dim arrConns() As Variant  'Just an array with all the connections and result details.
    m = MsgBox("Updating Links in this file: " & Chr(10) & wb.Name, vbOKOnly)
    Dim c
    ReDim arrConns(0 To 100, 1 To 100)
    arrConns(0, 1) = "Connection Name"
    arrConns(0, 2) = "Result"
    arrConns(0, 3) = "OldURL"
    arrConns(0, 4) = "NewURL"
    arrProt = Check_Sheet_Status(wb)
    c = wb.Connections.Count
    If c = 0 Then
        GoTo closeSub:
    ElseIf arrProt(0, 3) > 0 Then
    'Workbook has protected sheets.  Need to just unlock all for now:
        arrProt = Unprotect_All_Sheets(wb)
    End If
    m = Empty
    For i = 1 To c  'Each conn In wb.Connections
        With wb.Connections(i).OLEDBConnection
            txt = .CommandText
            Debug.Print "Original Connection:  "; txt
            FullURL1 = GetOldURL(txt)
            txt = Replace(txt, oldURL, newURL)
            Debug.Print "New Connection:  " & txt
            FullURL2 = GetOldURL(txt)
            arrConns((i - 1) * 3 + 1, 1) = wb.Connections(i).Name
            arrConns((i - 1) * 3 + 2, 3) = FullURL1 & " >> " & FullURL2
            arrConns((i - 1) * 3 + 3, 3) = Empty
            If FullURL1 <> FullURL2 Then
                didChange = "Yes"
                Debug.Print "Changed: " & FullURL1 & " to " & FullURL2
                m = m & wb.Connections(i).Name & Chr(10)
    '            m = MsgBox("Updating Links in these lists: " & Chr(10) & m, vbOKOnly)
                .CommandText = txt
                .Refresh
                arrConns((i - 1) * 3 + 1, 2) = "Changed"
            Else
                didChange = "No"
                Debug.Print "DID NOT Change: " & FullURL1 & " to " & newURL
    '            m = MsgBox("DID NOT Change: " & FullURL1 & " to " & newURL, vbOKOnly)
                arrConns((i - 1) * 3 + 1, 2) = "NO Change"
            End If
        End With
    Next i
    closeSub:
    Set sht = Nothing
    Set wb = Nothing
    End Sub

  • How to see all sql statements on sql commands under history link

    Hi All,
    How to see the all the sql history on sql commands tab.
    I want see all sql statements.
    Where to set if we need to store more sql statments in history.
    We are using Apex3.2 and 10g database(EE).
    Thanks,
    Nr

    I just checked the source code of the SQL commands history region and that report fetches a maximum of 1000 records. I don't know if you change the setting somewhere in the builder, but seeing the code it looks as though 1000 is hard-coded in the report definition(apex 4.0).
    If you need to see all the command history,you can query the original table: APEX_040000.WWV_FLOW_SW_SQL_CMDS
    Note that is an internal table used by apex and hence you might not find any documentation about it(google got me one valid hit: Identifying Inactive Workspaces which seem to confirm the table's use).
    Anyway, here's what you need to do, ask your dba to grant your workspace user select access on this table
    Connect as dba user and run
    GRANT SELECT ON APEX_040000.wwv_flow_sw_sql_cmds to '<WORKSPACE SCHEMA>'Now you can run the following command from your workspace to see the entire command history using
    select * from APEX_040000.WWV_FLOW_SW_SQL_CMDS where parsed_schema = '<WORKSPACE SCHEMA>';You might want to revoke the grant once you have seen the data/taken out an export due to security issues.

  • PSE9 Organizer - How to see all files in Folder view?

    In v8, there is a tab under Edit/Preferences named "Folder Location View" that allowed one to select either to see all files or just those in the folder that is selected.  I can't find this option in PSE9.  Anyone know what happened to it?
    PSE0 defaults to seeing only those files in the selected folder, which is normally my preference as well, except when I am doing certain things and then I really need to see all files in all folders.
    For example, I need/want to write my tags to the file meta data in all of my files, but I have to go to each folder individually to do this and then I can only do it on that individual folder.  I really would like to be able to select all of my files and fire it off (yes, I know that would take forever, but I could go do something else while it is processing.)
    This is the second reason that upgrading to PSE9 is really downgrading.  One shouldn't lose functionality that has existed in several (all?) previous versions!
    Hopefully, this setting has just moved and I can't find it.  If not, Adobe, please add it back in ASAP!!
    Thanks,
    ...Rich

    Oh, I forgot to comment on the ability to create an album instantly by folder name.
    That really seems like a pretty useless "feature" for all but the most challenged user.
    All you need to do without the feature is select all photos in a folder (ctrl a) and then drag them to the folder name.  That just doesn't seem to be all that difficult.
    Thanks again.
    ...Rich

  • How to see all the tables in ABAP

    how to see all the tables in ABAP
    i need to see all the tables present in tcode se16.

    Hi Thiru ,
    its tough to give all.so pls see the below links u can get all.
    http://www.erpgenie.com/abap/tables.htm
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=listofalltablesin+abap&cat=sdn_all
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.sap-img.com/ab017.htm
    http://abap-gallery.blogspot.com/
    thanks
    karthik

  • Need to transfer data records from one version of sap to another version of

    hello,
            i have a requirement where i need to transfer the tables  with the records in it from sap r/3 4.7 version to sap ecc 6.0 version,now the present issue is how to tranfer the data records from old version to new version......kindly help me in this requirement

    Hi,
        Write a program in SAP 4.7 to download all records to a flat file. Then write a program in ECC6 to upload all records from the flat file...........
    Thanks,
    Aditya.

  • Firefox only shows 12 sites in toolbar,,i have 47 sites i need to see 24/7

    when i open FF i only see 12 sites listed in the drop down box.I need to see all 47 ,,,24/7,,if there is no fix i will go back to 2.0...3.6 is pretty but doesnt work well for what i do..Is there any way to make all 47 sites show in dropdown box,,if i want to delete 1 i can ,,if not i want to know all visited sites period.not last 12...thx for your help.....

    Only when i go to a different browser (like IE) after i clear it , then all that shows up is the pages i visited in IE , that is what bugs me , why is IE browsing history sowing up in Firefox ??
    Basically , i can clear the history in Firefox , and then for a example , go to Craigslist , using IE7 (launching it from a complete different Icon , in other words at that time i never open Firefox) , then after closing out , or even leaving open as it does not seem to matter , i go into Firefox , and hit History , and there is every place i visited in IE7 , on my History in Firefox

  • How to see all my posts in OTN?

    How to see all my posts in OTN?
    If I click on my username it shows recent posts only.
    Since I need to see all of my posts, I may not remember all key words to seach

    John,
    Have a look at the following thread:
    Searching for your own posts
    Searching for your own posts
    You can also use Google to find your own posts as most of the threads are indexed properly in Google search; I usually use this method to find my own posts.
    Regards,
    Hussein

Maybe you are looking for

  • How do I permanently delete an app from my iPad and App Store?

    I would like to permanently delete apps from my iPad and my Purchased list in the App Store. How do I do this? These apps are ones that I have tried and found to be useless or do not work correctly. I have deleted apps from iTunes Store, but I cannot

  • Connecting from VDI to HDMI (samsung 16:9 TV) screen!

    When I try to connect to a Samsung TV screen 16:9 format using a DVI to HDMI adapter, the desktop is always bigger than the screen. No matter what size screen resolution I choose. Is there a special screen driver for this type of screen? Has any body

  • Elements 12 "Copy/Move to Removable Drive"

    Reference case # 185684196, phone support given last year, the problem persists.  In Elements 12, on my desktop PC (Windows 7, 64 bit) - I import photo files into the organizer, from camera card (RAW files, Nikon), THEN use the "Copy/Move to Removabl

  • Run query in QSR?

    Hi, I am using TOAD version 9.0.1.8. there is option in Editor Menu Execute SQL via QSR. can anybody suggest me what is the advantage and disadvantage ,if I run query in QSR.

  • RMBP shutting down slowly after ML 10.8.2 update

    Installed the ML 10.8.2 update the same day it became available. Since that update, everytime I shutdown the mac, it takes almost 13-15 seconds to shutdown. Before the update, it would shutdown in 3 seconds. Does anyone else have the same problem? an