Chapter 4 Managing Profiles
Possible values for an extended attribute. The values of the list must be separated by a semi-colon or a carriage return, for example a;b;c.
The list of values displays in an editable list, however when the extended attribute is based on an extended attribute type, the List of values box is unavailable because the values of the extended attribute type will be used. In addition, when the list of values is complete, the list of values is no more editable. You can only select values from the list.
For more information about the "Complete" attribute, see the Extended attribute properties section.
You can type predefined values directly in the list or use a GTL template if you have a large number of possible values.
The GTL template will be evaluated each time you need the list. The translation by the GTL is performed only when the value contains two percent characters like %<template>%. For example: %MyAttibuteList%.
If you need to use the backslash (\) character as a value within the GTL template, you must double it, as the GTL already uses the backslash character as escape operator.
You can use one of the tools to the right of the list to create a GTL template for the list of values or select a template in the current resource file to be used as a template for the list of values.
The following GTL template uses the foreach_item macro to iterate on the Storages collection. When the extended attribute is an object, the list of values must contain the OID of the object, followed by a tabulation, and the name that will be displayed in the list, and ends with a carriage return:
StorageList
.foreach_item (Model.Storages) %ObjectID%\t %Name% (\n) .next (\n)
The following GTL template returns all the storages contained in the model:
StorageList
.collection (Model.Storages)
Copyright (C) 2006. Sybase Inc. All rights reserved. |
![]() |