Just got a slight problem with a database I am working on. This is the field value I have created. @If(Authorised=“Pay”;@Name([CN];@UserName);“Payment is not authorised yet”)Problem is when the form is amended by a different person who marked it as Pay. Their username overights that of the person who marked it for pay. Any ideas of how to get around this? cheers for any help.
Subject: Simple Formula Question
Thanks for the response Guys.But neither option solved my problem.
Its when a different user goes in and amends a seperate field then saves. the @If (Authorised =“Pay”;@Name([CN];@UserName);“Payment is not authorised yet”)
Is overwritten with their name. I need a forumla that will stamp the usename only when the ‘Authorised’ field is edited.
Subject: Formula help
Alex,
Substitute the actual fieldname for “fieldname” below and try…
tmp := @If ( Authorised = “Pay”; @Name ( [CN]; @UserName); “Payment is not authorised yet” );
@If ( fieldname = “Payment is not authorised yet”; tmp; fieldname)
And use more descriptive titles for future posts - like “Simple Formula Question” or “@If formula” or something like that. Post whenever you have a question, though!
Hope this helps,
Dave
Chub Toad, LLC
Subject: Domino Designer (Help Please)
@If(Authorised=“Pay” & @thisvalue = “Payment is not authorised yet” : “”;@Name([CN];@UserName);“Payment is not authorised yet”)
Also, I’d consider making it a Names field and losing the @name([cn]) part so that the fully-distinguished canonical name is stored.