Cool Solutions

HowTo: Use IDM Designer to create sorted MVCheckboxes in IDM User Application



April 14, 2010 5:06 pm





When adding a MVCheckbox field to your request or approval form in IDM Designer, the individual items will be automatically sorted by their localized item label.

This may be desired in many cases, but there may be cases where you prefer to create your own custom item order.

This can be easily achieved by adding a dummy HTML comment field as label prefix, since now the parser will include this dummy comment when determining the sort order.

Since we are using an HTML comment, it’s contents will not be displayed on the form.

If your form needs to support multiple locales, do not forget to add the comment prefix to all localized checkbox labels.

Of course you may utilize the same trick to display other lists (e.g. PickList, StaticList, or GlobalList) in your custom sort order.

You may also combine this approach with the approach outlined in the article “HowTo: Use IDM Designer to create vertically aligned MVCheckboxes in IDM User Application” to create sorted, vertically aligned checkboxes.

2 votes, average: 5.00 out of 52 votes, average: 5.00 out of 52 votes, average: 5.00 out of 52 votes, average: 5.00 out of 52 votes, average: 5.00 out of 5 (2 votes, average: 5.00 out of 5)
You need to be a registered member to rate this post.

Categories: Uncategorized


Disclaimer: This content is not supported by Micro Focus. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.