This forum is closed to new posts and
responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:
I know it's bad, but It has taken me all day to get this code to work and now I find that the querysave still happens even with the error. Can someone tell me how to do this in lotus script please.
used:=@DbLookup("" : "NOCACHE" ; "" : "" ; "ahours" ; WhenRequired ; "AvailUsed");
avail:=@DbLookup("" : "NOCACHE" ; "" : "" ; "ahours" ; WhenRequired ; "TotalAvail");
newused:=used+TaskLength;
@If(used+TaskLength<avail;
@SetDocField(@DbLookup("" : "NOCACHE" ; "" : "" ; "ahours" ; WhenRequired ; "AvailUsed";[ReturnDocumentUniqueID]) ; "AvailUsed"; newused) ;
@Do(
@Prompt([Ok];"Error";"Hey!, No More Hours Left. See if you can reduce your estimate.") ;
@SetDocField(@DocumentUniqueID;SaveOptions;"0");
@Command([FileCloseWindow]);
@Return("@False")
)
)
Feedback number WEBB8FESLQ created by ~Sigmund Zekfreesteroni on 03/29/2011
Status: Open
Comments: