cancel
Showing results for 
Search instead for 
Did you mean: 

property date with default value?

lover91
Champ in-the-making
Champ in-the-making
I successful create new aspect 
                <property name="DMS:f_date">
                    <title>Fire Date</title>
                    <type>d:date</type>
                   <default>???????</default>
                </property>

how I can set the <default> value in date type (current date or system date) ??
3 REPLIES 3

lover91
Champ in-the-making
Champ in-the-making
No reply ??
can't get system date as default date in custom properties ??

zaizi
Champ in-the-making
Champ in-the-making
AFAIK you can't. You'll have to set the date through code / javascript. You can of course create a policy that is triggered when the aspect is added to set the date.

lover91
Champ in-the-making
Champ in-the-making
Thanks zaizi
but i don't know how i can make this.
if you have any tutorial or samples