cancel
Showing results for 
Search instead for 
Did you mean: 

How to order the display of attributes in configclass

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

hi Aditya, thanks for your quick response. could you please tell me where can i find this plugin.header.properties file. do i need to create this file or it exists somewhere?

Former Member
0 Kudos

Hi Kranthi,

The plugin.header.properties file is located in the root folder of every plugin. So, for example, if you are making a new plugin called sampleplugin, which is under cm (Content Management), then on the filesystem the structure would look like this:

<i>meta/expanded/cm/sampleplugin</i>

the plugin.header.properties would be in the <i>sampleplugin</i> folder.

However, as I said, if you are writing a new config class within an existing plugin, then only the plugin.header.properties file that comes with the original configmetaarchive is considered. All others are ignored.

Regards,

Aditya

Former Member
0 Kudos

Hi Aditya, iam still confused with the word plugin. iam trying to deploy a repository manager where i have edited the existing cc.xml file and added some other attributes. in my project i have this cc.xml file in src.config/loal/meta/expanded/cm/repository_managers directory. i also have a configArchive.properties file in src.config directory. but i do not find any plugin.header.properties file. it would be greate if you could explain how can i create plugin in my project directory. thanks for your help.

Former Member
0 Kudos

Hi,

Plugin here does not mean what it normally does. Its use by the Configuration Framework is somewhat different. Here, it refers to the 'Repository Manager' (Not a specific class, but all the types of Repository Managers).

The problem in your particular case is that since the plugin (Repository Manager) is delivered already by SAP, any further properties that you supply for your configclass in the plugin.header.properties will be overridden. Therefor the end result is that the means for ordering the attributes are not accessible to you...

Regards,

Aditya

Former Member
0 Kudos

Hi Aditya, thanks for spending your time. please let me know if there is any other way to do it.. thanks again

kranthi

Former Member
0 Kudos

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