Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. User definable fields

User definable fields

Scheduled Pinned Locked Moved ASP.NET
databasecomalgorithmsxmltutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jon vickers
    wrote on last edited by
    #1

    Hi, Does anyone know where to find best practices on allowing users to create user definable fields. I have tried a few methods in ASP30. I am trying to figure out the proper way to do this. Salesforce.com has a feature inside the program where a user and create as many fields as they like. They have many fields to choose from. I don't fully understand how to pull this off in a RDMS. I have tried creating many "blank" fields of each type: varchar, datetime, text, bit. The system salesforce uses seems to not be bound by a certain number of colums. I assume they are actually altering each clients db schema. What ways have any of you guys allowed your users to create new fields on the fly? Where are some good articles on this subject? And also, what do you call this, I must not be searching using the correct words? Thanks, Jon Vickers

    O 1 Reply Last reply
    0
    • J jon vickers

      Hi, Does anyone know where to find best practices on allowing users to create user definable fields. I have tried a few methods in ASP30. I am trying to figure out the proper way to do this. Salesforce.com has a feature inside the program where a user and create as many fields as they like. They have many fields to choose from. I don't fully understand how to pull this off in a RDMS. I have tried creating many "blank" fields of each type: varchar, datetime, text, bit. The system salesforce uses seems to not be bound by a certain number of colums. I assume they are actually altering each clients db schema. What ways have any of you guys allowed your users to create new fields on the fly? Where are some good articles on this subject? And also, what do you call this, I must not be searching using the correct words? Thanks, Jon Vickers

      O Offline
      O Offline
      orion807
      wrote on last edited by
      #2

      I don't have any links to any Best Practices documents. However I've seen how it was done in Goldmine (sales contact manager). They use a table of custom field definitions where each row defines a custom field. The actual values are put in a separate table with ID fields to link to the FIELDDEFS table and the table the custom field is associated with. As far as storing different datatypes in .NET I would just make all of the actual data fields varchar and store the data using ToString(). Integer.Parse(), DateTime.Parse(), etc can be used when you retrieve the data. I hope this can get you started. I can give you a more detailed description tomorrow when I get to work and look up how exactly it's done. Laterness... Doug

      J 1 Reply Last reply
      0
      • O orion807

        I don't have any links to any Best Practices documents. However I've seen how it was done in Goldmine (sales contact manager). They use a table of custom field definitions where each row defines a custom field. The actual values are put in a separate table with ID fields to link to the FIELDDEFS table and the table the custom field is associated with. As far as storing different datatypes in .NET I would just make all of the actual data fields varchar and store the data using ToString(). Integer.Parse(), DateTime.Parse(), etc can be used when you retrieve the data. I hope this can get you started. I can give you a more detailed description tomorrow when I get to work and look up how exactly it's done. Laterness... Doug

        J Offline
        J Offline
        jon vickers
        wrote on last edited by
        #3

        Yea, Thanks, any articles or help would be appreciated. I have pulled this off a few different ways. I have a feeling there must be a better way. I feel like I am reinventing the wheel. Thanks, Jon Vickers

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups