Skip to main content
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:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: QuerySave
Feedback Type: Problem
Product Area: Notes Client
Technical Area: Application Development
Platform: ALL
Release: 8.5
Reproducible: Always

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:

QuerySave (~Sigmund Zekfre... 29.Mar.11)
. . Use Input Validation Formula (~Richard Zenger... 30.Mar.11)
. . use LS (~Phil Nonhipige... 31.Mar.11)
. . There is a problem with the @Return... (~Tip Opjipymanl... 29.Mar.11)
. . . . Querysave (~Sigmund Zekfre... 30.Mar.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS