developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks




@IsNotMember is not working in my Application
Vijaya Kumar Channalli 04/28/2008 10:05 AM
Domino Designer 6.5 Windows XP


Hello All,

I have a approval form, which is filled by Requester for certain materials. After filling all the required fields. The mail is sent to Manager for Approval.

But my concern is that, only Manager has to approve the form, other than any one who tries to hit approve button, it has to prompt "You are not Authorized".

I have tried below code but it is not working.

Can any one help me in correcting the below code :

Field : Button

@If(@IsNotMember(@Name([CN]; @UserName); Approver);@Failure(@Prompt([Ok]; "NOT Signed"; "You are not listed in Authorized."));

@Do(@SetField("Result";"Approved");@Do(@SetField("Status"; "Draft"); (@SetField("UpDateApproved"; @Name([CN];@UserName) + " on " + @Text(@Now)))));

@If(doc_type ="Materials";@Success;@MailSend(@Unique(CreatedBy);""; ""; "Status of Submitted Materials"This Materials has been Approved by the Local Team Leader & sent for Manager for approval."; ""; [IncludeDoclink]));

@If(doc_type ="Materials";@Success;@MailSend(@Unique(mailTo) ;""; ""; "Need Approval"; "This Material has been Approved by the Local Team Leader & need your approval."; ""; [IncludeDoclink]));

@If(doc_type ="Tools":"Software":"Hardware";@Success;@MailSend(@Unique(CreatedBy);""; ""; "Status of Submitted Requested"; "This request has been Approved by the Local Team Leader & sent for Manager for approval."; ""; [IncludeDoclink]));

@If(doc_type ="Tools":"Software":"Hardware";@Success;@MailSend(@Unique(UpdatedBy);""; ""; "Need Approval"; "This Reuest has been Approved by the Local Team Leader & need your approval."; ""; [IncludeDoclink]));

@All; @Success;
@PostedCommand([FileSave]);
@Command([FileCloseWindow]))

Go back