Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to 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

Do not put the code in the input validation object

Hi,

You state you have placed the @DBLookup formula in the Input Validation object of the shared field. But an input validation formula should always end with a call to @Success or @Failure.

I think you want your formula in the Input translation object. Or even better, since the value of the field looks like it is depending on the value of another field, make the field Computed, with the dblookup formula as value.

Also, always build an @iserror routine around a dblookup. This prevents that you get an error if nothing is found. And there is no need to perform the dblookup if DBCPetsList is empty.

@if(DBCPetsList="";@return("");"");
food:=@DbLookup ("" : "NoCache" ; "" : Mammals_SR_Courses.nsf; "PetInfo" ; DBCPetsList; 2; "");
@if(@iserror(food);"";food)

Regards,
René


Feedback response number WEBB8Z4HPS created by ~John Elluly on 10/15/2012

@DBLookup problem (~Jennifer Ophip... 12.Oct.12)
. . You've missed out your quotes on th... (~Judy Ektumizen... 15.Oct.12)
. . . . Still having an issue with @DBLooku... (~Jennifer Ophip... 15.Oct.12)
. . . . . . Do not put the code in the input va... (~John Elluly 15.Oct.12)
. . . . . . . . @DBLookup (~Jennifer Ophip... 15.Oct.12)
. . . . . . . . . . RTM 8-) (~Judy Ektumizen... 16.Oct.12)
. . . . . . . . . . . . RTM :-) (~Jennifer Ophip... 16.Oct.12)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS