Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



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

Notes/Domino 6 and 7 Forum

developerWorks

  

PreviousPrevious NextNext


Vijaya Kumar Channalli 28.Apr.08 10:05 AM a Web browser
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]))






@IsNotMember is not working in my A... (Vijaya Kumar Ch... 28.Apr.08)
. . RE: @IsNotMember is not working in ... (Matt Smith 28.Apr.08)
. . . . RE: @IsNotMember is not working in ... (Vijaya Kumar Ch... 28.Apr.08)
. . . . . . RE: @IsNotMember is not working in ... (Matt Smith 28.Apr.08)
. . . . . . . . RE: @IsNotMember is not working in ... (Vijaya Kumar Ch... 28.Apr.08)
. . RE: @IsNotMember is not working in ... (Harkpabst Melia... 28.Apr.08)
. . . . RE: @IsNotMember is not working in ... (Vijaya Kumar Ch... 28.Apr.08)
. . . . . . RE: @IsNotMember is not working in ... (Harkpabst Melia... 28.Apr.08)
. . . . . . . . RE: @IsNotMember is not working in ... (Andre Guirard 28.Apr.08)
. . . . . . . . . . RE: @IsNotMember is not working in ... (Vijaya Kumar Ch... 29.Apr.08)
. . . . . . . . RE: @IsNotMember is not working in ... (Vijaya Kumar Ch... 29.Apr.08)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite