문제

I have a text field/editable, allow multiple values, semicolon for both Multi-Value Options property, in which I want to save current user when they click a button. On the button I have the following code:

 @SetField("fieldA"; @Name([CN];@UserName));

The previous value always gets overwritten by the new. What would be the solution to have multiple values stored in?

도움이 되었습니까?

해결책

@SetField("fieldA"; fieldA:@Name([CN];@UserName));

That will append the current user's name to the item.

다른 팁

You might want to look into using the @Unique function. Remember there's a 32K limit of summary field data, so don't let this list grow indefinitely. See @Subset function. Also, bear in mind that the user can save the document without clicking your button, so a Querysave event might be a better place to do this.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top