08-18-2008 09:19 PM
<type name="d3:person">
<title>D3 Person</title>
<parent>cm:person</parent>
<properties>
<property name="d3:telephone">
<title>Telephone</title>
<type>d:text</type>
</property>
<property name="d3:mobile">
<title>Mobile</title>
<type>d:text</type>
</property>
<!– This is a "T" or "M" to identify preferred communication mechanism –>
<property name="d3:preferred_comm">
<title>Preferred Comm.</title>
<type>d:text</type>
</property>
</properties>
</type>
var my_person = person;
if ( my_person.specializeType("d3:person")) {
logger.log("Specialized my_person to d3:person");
}
model.my_person = my_person;
<?xml version="1.0" encoding="UTF-8"?>
<result>
<first>${person.properties.firstName}</first>
<last>${person.properties.lastName}</last>
<email>${person.properties.email}</email>
<title>NOT IMPLEMENTED</title>
<office>${my_person.properties.telephone}</office>
<cell>NOT IMPLEMENTED</cell>
<primaryPhone>office</primaryPhone>
</result>
org.alfresco.service.cmr.repository.TemplateException - Error during processing of the template 'Expression my_person.properties.telephone is undefined on line 7, column 15 in test/profile/profile.get.xml.ftl.'. Please contact your system administrator.
08-19-2008 02:59 AM
08-19-2008 05:42 PM
Error during processing of the template 'Expression my_person.properties["d3:telephone"] is undefined on line 7, column 15 in test/profile/profile.get.xml.ftl.'. Please contact your system administrator.
08-19-2008 07:59 PM
08-19-2008 11:30 PM
08-20-2008 03:15 AM
08-20-2008 12:45 PM
08-20-2008 04:49 PM
08-20-2008 07:04 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.