cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

How to set default value for Hard Attributes?

PingLi
1-Visitor

How to set default value for Hard Attributes?

Hi All,

Anyone know how to set dedault value for hard attributes?

e.g. Set default value for a WTDocument's name

I tried use initial rule like this:

<AttrValue id="name" algorithm="wt.rule.algorithm.StringConstant">
<Arg>TestDefauleName</Arg>
</AttrValue>

<AttrConstraint id="name" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue"/>
</AttrConstraint>

but it failed. anyone can give me a hand?

0 REPLIES 0
Announcements


Top Tags