DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Implementing Custom Fields

  1. #1
    Join Date
    Aug 2006
    Posts
    1

    Question Implementing Custom Fields

    Hi all --

    I am working on a Contacts Manager application and want to be able to give our users the option of defining custom contact fields.

    E.g. The standard Contacts table could have the following fields: Name, Address1, Address2, DOB, Email

    But Tom wants to add 2 custom fields, so he has: Name, Address1, Address2, DOB, Email, [Salary], [Region]

    ... and Mary wants 3 custom fields, i.e. Name, Address1, Address2, DOB, Email, [Height], [Weight], [InsideLegMeasurement]

    I wondered if anyone had any ideas how this might best be implemented in java? Would XML be the best choice for the table definitions? Would I have to create new DB tables on the fly for each user based on the table defs, or have a large 'standard' table capable of accommodating several custom fields?

    And I'd like to evaluate who's logged in at runtime and display the appropriate data in a JTable. Would I need to extend AbstractTableModel for this?

    Sorry for all the questions, but I'm pretty new to this. Anything you can do to help would be greatly appreciated!

    Mark

  2. #2
    Join Date
    Dec 2005
    Posts
    21
    Are you connecting to a SQL database, or are you just making your own?

Similar Threads

  1. refreshing form fields
    By ashiers in forum Java
    Replies: 1
    Last Post: 06-19-2005, 05:09 PM
  2. Replies: 1
    Last Post: 07-03-2001, 09:45 AM
  3. setting ACL on custom fields in exchange 2000
    By Daniel Falconetti in forum Enterprise
    Replies: 0
    Last Post: 05-23-2001, 04:21 AM
  4. Replies: 0
    Last Post: 04-10-2001, 04:13 AM
  5. PRB w/ custom form, public folder & event script
    By Jason Thorn in forum Enterprise
    Replies: 0
    Last Post: 04-02-2001, 06:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center