Extend organization
Hi Friend,
I have requirement to extend organization and user. I am able to extend user but I am not sure how to add fields in organization.
Can some one throw some light one it.
Thx
Hi Friend,
I have requirement to extend organization and user. I am able to extend user but I am not sure how to add fields in organization.
Can some one throw some light one it.
Thx
Hi,
there is no such thing as user extended attributes for organizations but organizations like all persistent objects may have properties.
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE ObjectGroup PUBLIC 'waveset.dtd' 'waveset.dtd'>
<ObjectGroup name='testorg' displayName='testorg'>
<Properties>
<Property name='owner' value='Patrick'/>
</Properties>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
</ObjectGroup>
Sadly the orgview doesn't seem to expose the properties. So what I did when i implemented custom attributes for orgs in the past was to create a custom org form based on the original one. I embeded it into an custom workflow which i had started by making changes to security/orgEdit.jsp.
The workflow displays the form which also gets the orgview to prepopulate the out of the box fields. Upon saving the form the workflow checks in the org view and then checks out the org object to set the properties gathered by the custom form fields using the API. Checking in the object the properties are persisted.
Regards,
Patrick