Form radio button error

Hi,

I am trying to generate radio button in the field loop. The form is similar to what the default search result looks in IdM except, instead of checkboxes I am trying to put Radio button with Label and Value both equal to the account ID of the user in that row.

Here's the code snippet of the Radio field.

<FieldLoop for='user' in='variables.result'>

<Field name='variables.accId'>

<Display class='Radio'>

<Property name='valueMap'>

<list>

<invoke name='getAttribute'>

<ref>user</ref>

<s>accountId</s>

</invoke>

<invoke name='getAttribute'>

<ref>user</ref>

<s>accountId</s>

</invoke>

</list>

</Property>

</Display>

</Field>

.................

It generates the HTML correct, with value of each radio button being the account ID and name of each radio button being "variables.accId"

But when I submit the Save button, I get following error on the screen:

"Field 'variables.accId' had value 'testId' which is not a valid Radio Button label." (where testId is account Id)....

Anyone has any suggestions as to what am doing wrong, or any alternatives?

-THanks

[1363 byte] By [gunjanidma] at [2007-11-26 17:39:45]
# 1

hi Gunjan,

I think you need to set the labels for the radio button first which you havent done. Have u taken a look at the IDM Workflow_Forms-Views pdf document? It has a neat example , here is the code from the document

<Field name='attributes.accountLockExpiry.unit'>

<Display class='Radio'>

<Property name='noNewRow' value='true'/>

<Property name='labels'>

<List>

<String>UI_TASKS_XML_SCHED_MINUTES</String>

<String>UI_TASKS_XML_SCHED_HOURS</String>

<String>UI_TASKS_XML_SCHED_DAYS</String>

<String>UI_TASKS_XML_SCHED_WEEKS</String>

<String>UI_TASKS_XML_SCHED_MONTHS</String>

</List>

</Property>

<Property name='allowedValues'>

<List>

<String>minutes</String>

<String>hours</String>

<String>days</String>

<String>weeks</String>

<String>months</String>

</List>

</Property>

</Display>

</Field>

Also you can find a similar example in "Windows Active Directory Create Group Form" form, this form uses Radio Button.

<Field name='messageRestrictions'>

<Display class='Radio' action='true'>

<Property name='labels' value='From Everyone,Only From,From Everyone Except'/>

<Property name='title' value='Message Restrictions'/>

</Display>

<Default>

<s>From Everyone</s>

</Default>

<Disable>

<eq>

<ref>groupType</ref>

<s>Security</s>

</eq>

</Disable>

</Field>

s_kandlikara at 2007-7-9 0:07:54 > top of Java-index,Web & Directory Servers,Directory Servers...