Skip to Content
author's profile photo Former Member
Former Member

How to order the display of attributes in configclass

Hi , when i create a new attributes in configclass(cc.xml)these attrubute are displaying in random order. how can i make them to display in a perticular order? thanks in advance..

kranthi

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2005 at 08:11 AM

    Hi Kranthi,

    The default ordering of attributes is based on the type of the attribute and then the alphabetical order. Eg. an integer property with name <i>x</i> will be displayed before a string property of name <i>a</i>.

    If you need to specify the display order of the attributes manually, then you need to introduce a new property in the plugin.header.properties file for the plugin that contains the configclass.

    The property is:

    <i>plugin.attributesOrder.X=<attribute_list></i>

    where X is the name of the configclass.

    The possible construction of the attribute list is quite complex. However, if you just want to control the way that attributes within your class are ordered, then just list them in the order that you want (in one line). If you also need to change the display order of the attributes of an inherited class, then let me know and I will send you the additional information.

    One severe limitation of this method is that since the <i>plugin.header.properties</i> files are not merged for different configarchives, if you are delivering a configclass in an existing plugin, but different configarchive, then you need to specify the ordering in the <i>plugin.header.properties</i> file that exists in the archive which originally delivers the plugin.

    Regards,

    Aditya

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hey,

      Unfortunately not. This is the only currently implemented method in the Configuration Framework to handle attribute ordering. Its only really helpful if you start your own plugin, or can modify the original configmeta.

      Regards,

      Aditya

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.