Best way to save "favorites" in an app

Posted on 2005-04-24
Last Modified: 2012-05-05
I have an app that is pulling data from an XML file (1100+ records) and I want people to be able to bookmark these items.   These bookmarks will then appear on a listbox or gridview of their own elsewhere in the app.   I have the JEDI library and I know a few of their persistance components might help but I'm not sure which would be best (if any).    

Each item has a unique id number that will never change.  Should I just make a list of the int IDs that people have selected, drop them into a file then read and write them as necessary?   Is there a more elegant solution?
Question by:hibbidiji
    LVL 11

    Accepted Solution

    Well there are a number of approaches to this, the one I favour is to storre the values in the registry rather than a file.

    It might be a good idea to associate a desciptive string with the bookmark ID so that you dont have to open then data to list the favourites, something like a descriptive field.

    Dont forget you will need to allow people to mange these bookmarks including deleting them. you may want to limit the total number otherwise your bound to get a user with 1100 bookmarks.

    LVL 26

    Expert Comment

    Can you manipulate the XML file, what I mean is, are you allowed to modify it?

    If so, place a node in each marked node signifying that it needs to be shown. THis
    way, you use the original data for your display as well.
    LVL 1

    Author Comment

    While eddies suggestion would be excellent for a static database, mine would be updated from a central source daily, thereby overwriting any favorite tags in it.
    Thankyou folks.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now