Hi…
I had put a post on friday also about this intermittent problem.
I have an edit Button on the webpage. The database is a general profile database. The form on the database has a Authors field with the name of the owner of the profile.
I want this Edit button to appear to only to the owner of the profile and no one other then that.
The formula in the hide when of the button which I tried was
-
@If (@Contains(@Name([Canonicalize]; @UserName); Doc_Author) ; @False ; @True )
-
@If(@UserName = Doc_Author; @False ; @True)
The button appears on the web for some time and then it disappears.
Its urgent !!! Help needed.
Rinkoo Keshari.
Subject: Action button on the web
Change @contains with @IsMember and check on lowercase or uppercase values to avoid case problems. The @If statement is not necessary if you use the ! (“Not”).
!@IsMember(@Lowercase(@Name([Canonicalize]; @UserName)); @Lowercase(Doc_Author))
I have seen that @contains is not always working well with lists.
Renaud
P.S. It’s useless to say “it’s urgent” with 3 exclamation marks even if you would like a quick answer . It’s not an official support forum, so you can’t expect answers in a short delay… And saying it’s urgent will probably do the opposite => you’ll never get an answer.
Subject: RE: Action button on the web
Thanks Renaud for your quick response.
The button is still not appearing. This is very strange.
My Doc_Author field is not a multivaled field and it is computed field. It just has the name of Owner of the document.
Thanks,
Rinkoo.
Subject: RE: Action button on the web
What is the content of doc_author field?
CN=John Doe/OU=MyOU/O=MyOrg or
John Doe/myOU/MyOrg or
John Doe ?
Renaud
Subject: RE: Action button on the web
Its “CN=John Doe/OU=MyOU/O=MyOrg”
Subject: RE: Action button on the web
Then add in your form for debugging purposes a computed text visible by the web with @Username as formula sh that you’ll be able to compare this value with the doc_author field.
By the way do you log in when you access this form ? If your user is not logged in => it’s won’t be visible because the user is anonymous !! But if you do the test I just mentioned you’ll see that quickly.
I tested the formula on a test db and if the values are correct, the button is visible when needed with this formula.
By the way the @name([CANONICALIZE],@username) is useless becasue @Username returns the canonical form of the user name.
So the formula is :
!@IsMember(@LowerCase(@username); @LowerCase(Doc_Author))
Renaud
Subject: RE: Action button on the web
Thank you so much Renaud…I am going to try this.