Solved

Status not updated in a field and error not repeatable

Posted on 2001-07-12
1
201 Views
Last Modified: 2013-12-18
Now, i have to find a possible cause of error for the following piece of code:

@If(CMRStatus = "Business Input/Review Required" & CurrentStatus != CMRStatus; @Do(@MailSend(CreatedBy; ""; ""; "CR #" + CMRNo + " requires some additional Business Input/Review in the FS Destination database" ; "" ; "This change request for the " + Project +
 " project is either ready for your review or requires your additional input.  Follow this link for further details" +" ==>  "; [IncludeDoclink]);
@SetField("CurrentStatus"; CMRStatus); @PostedCommand([FileSave]));
CMRStatus = "Business Review Complete" & CurrentStatus != CMRStatus;
@Do(@MailSend("Rabinder X Kaur"; ""; ""; "CR #" + CMRNo + " has been updated by Business in the FS Destination database" ; "" ;
"This change request for the " + Project + " project has been updated by Business.  Follow this link for further details" +" ==>  "; [IncludeDoclink]);
@SetField("CurrentStatus"; CMRStatus); @PostedCommand([FileSave]));
CMRStatus = "Complete" & CurrentStatus != CMRStatus; @Do(@MailSend("Rabinder X Kaur"; ""; ""; "CR #" + CMRNo + " has been completed in the
FS Destination database" ; "" ; "This change request for the " + Project + " project has been completed.  Follow this link for further details" +" ==>  "; [IncludeDoclink]);
@SetField("CurrentStatus"; CMRStatus); @PostedCommand([FileSave]));"");
@PostedCommand([FileCloseWindow])


I tried recreating the error but i dont get it. therefore, it may have occured because-
1) if there are any replicas- the changes did not get replicated.
2) someone changed the status back to Build.
3) dont know!!!


Error as observed was:
I got this automated message that says this request has been completed, but when I go to the database, it is still listed in build with no comments.
0
Comment
Question by:puneetfred
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
marilyng earned 100 total points
ID: 6447230
puneetfred;

Think the problem is the IF comparison.  You never really set the value of CMR status, and you need to declare the field before you use the @setfield statement.

Try this:
Field CurrentStatus :=CurrentStatus;
Status1="Business Input/Review Required";
Status2 ="Business Review Complete";
Status3="Complete";

@If(!@contains(CurrentStatus;Status1: Status2:Status3);
        @Do(
                     @MailSend(CreatedBy; ""; ""; "CR #" + CMRNo + " requires some additional Business Input/Review in the FS Destination database" ; "" ; "This change request for the " + Project +  " project is either ready for your review or requires your additional input.  Follow this link for further details" +" ==>  "; [IncludeDoclink]);
          @SetField("CurrentStatus"; Status1)          
                    );

      CurrentStatus= Status1;

    @Do(
               @MailSend("Rabinder X Kaur"; ""; ""; "CR #" + CMRNo + " has been updated by Business in the FS Destination
database" ; "" ; "This change request for the " + Project + " project has been updated by Business.  Follow this link
for further details" +" ==>  "; [IncludeDoclink]);    
            @SetField("CurrentStatus"; Status2)      
             );

             CurrentStatus = Status2;

             @Do(
                   @MailSend("Rabinder X Kaur"; ""; ""; "CR #" + CMRNo + " has been completed in the FS Destination database" ; "" ; "This change request for the " + Project + " project has been completed.  Follow this link for further details" +" ==>  "; [IncludeDoclink]);
                     @SetField("CurrentStatus"; Status3)              
                     );
"");

@PostedCommand([FileSave]);
@PostedCommand([FileCloseWindow])

See if it works for you,

Marilyng
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question