Solved

Status not updated in a field and error not repeatable

Posted on 2001-07-12
1
196 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
1 Comment
 
LVL 18

Accepted Solution

by:
marilyng earned 100 total points
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now