Access properties custom user profile

10 views
Skip to first unread message

Patrícia Sousa

unread,
Mar 19, 2016, 10:15:14 AM3/19/16
to Alfresco Technical Discussion

I create custom properties to the user profile through https://github.com/sujaypillai/someco-people . I create this:

<aspects>
    <aspect name="cc:person">
        <title>cc</title>
        <properties>
            <property name="cc:c1">
                <type>d:text</type>
            </property>
            <property name="cc:c2">
                <type>d:text</type>
            </property>
            <property name="cc:c3">
                <type>d:text</type>
            </property>
        </properties>
    </aspect>
</aspects>

In a model name : "cc:cInfoModel".

I tried to get the value of the properties this way: person.properties.c2 . But this is null. How can I get a custom value property?

Patrícia Sousa

unread,
Mar 19, 2016, 11:20:44 AM3/19/16
to Alfresco Technical Discussion
If someone needs, I solve the problem with person.properties["cc:c2"]
Reply all
Reply to author
Forward
0 new messages