When you are working with resource adapters and adapter parameters, you can use one of the following strategies to overwrite resource attributes:
Use the adapter’s Attribute page to set a resource attribute value once for all users
Set a default attribute value on the adapter, then subsequently override its value, as needed, within your user form
In the following example, the user form must override the resource attribute value for template during the creation of each user. When implementing similar code in a production environment, you would probably include more detailed logic to calculate this template value within your user form.
<Field name=’template’> <Display class=’Text’> <Property name=’title’ value=’NDS User Template’/> </Display </Field> <!-- Change NDS for the name of your NDS resource --> <!-- Template is the name of the attribute field, as viewed in the resource xml --> <Field name=’accounts[NDS].resourceAttributes.Template’> <Expansion> <ref>template</ref> </Expansion> </Field> |