Asset Management Suite

 View Only
  • 1.  Editing custom data classes

    Posted Jul 23, 2009 01:05 PM
    Hi everyone,

     I created a custom data class with several attributes, and I'm finding I don't need one of those attributes any longer, but I still need the other attributes in the data class. I'm not seeing ANY WAY of modifying/editing the data class except to add new attributes. Is it possible to delete an attribute without having to recreate the entire custom data class? I even tried deleting the column from the database and refreshing the console, but the darn attribute stayed in the view ;). Any ideas?


  • 2.  RE: Editing custom data classes
    Best Answer

    Posted Jul 23, 2009 01:59 PM

    I don't believe it's possible to remove those unless you recreate the data class. 



  • 3.  RE: Editing custom data classes

    Posted Jul 24, 2009 05:20 PM
    If you do not want to start again, I believe you can open the Data Class, edit the attribute (click the pencil icon) and mark it as Hidden. It will still be in the table, but won't show up in the resource it is assigned to.
    I have to admit, the term "Editable" Data Class is a bit misleading.


  • 4.  RE: Editing custom data classes

    Posted Jul 24, 2009 05:30 PM
    I ended up recreating the data class, but I will experiment with "hidden" option in the future. I agree,  they are using the term "editable" pretty loosely. :)


  • 5.  RE: Editing custom data classes

    Posted Aug 03, 2009 03:14 PM
    I have run into the same thing a few times my self and have ended up just recreating them as well, but the hidden suggestion might be handy in the future.


  • 6.  RE: Editing custom data classes

    Posted Aug 03, 2009 03:42 PM
    Just export the Data Class from the Console, edit the XML and reimport.


  • 7.  RE: Editing custom data classes

    Posted Aug 04, 2009 10:19 AM
    Great tip! Does that also remove the column from that table in SQL?


  • 8.  RE: Editing custom data classes

    Posted Aug 05, 2009 02:54 PM
    I had thought of that in the past, but thought it would be more of a hack than a fix. Does this only change what is displayed in the console or does it also edit the database?  And if it does edit the database, is this something that is approved of and supported?


  • 9.  RE: Editing custom data classes

    Posted Aug 06, 2009 11:38 AM
    I just tested it out on our test server and it actually didn't work.  Here is what I did.
    1. Created a custom data class and saved it.
    2. Exported it
    3. Edited the XML and changed the name of one of the fields in every location it appeared throughout the XML
    4. Reimported the XML.
    Results:
    Nothing changed in the console or the database.  The field name remained the same.

    Oh well.  It was worth a try...


  • 10.  RE: Editing custom data classes

    Posted Aug 06, 2009 05:39 PM
    If the export.->edit->re-import worked, I would've marked it as the Solution. Thanks Mike for testing that - I hadn't noticed new posts here until today.