NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on November 24, 2012, 09:02:47 PM

Title: Not displaying a record on a record by record basis
Post by: terryd on November 24, 2012, 09:02:47 PM
In normal Clarion I can stop a record from displaying on the browse by entering a
returnvalue = RECORD:Filtered in the
Local Objects\Abc Objects \ Browse on whatever\Validate Record\code After the parent call embed.
In NT I have created a filter which work fine. However under certain circumstances I want to further restrict the records displayed if a child record for the record exists
In Clarion I would enter something like
childfield = parentfield
get(childfile,keychieldfield)
IF errorcode()
    ReturnValue = RECORD:Filtered
END
in the above embed point to further restrict my browse.


What is the best way to do this in NT?
Title: Re: Not displaying a record on a record by record basis
Post by: Bruce on November 24, 2012, 11:05:03 PM
Hi Terry,

there is a Validate Record embed in the netWebBrowse that does the same thing. Just CYCLE from there to exclude records or BREAK if you have come to the end of a range.

Cheers
Bruce


Title: Re: Not displaying a record on a record by record basis
Post by: terryd on November 25, 2012, 01:20:33 AM
Works perfectly.
I saw the validate routine but I didn't know what the correct syntax was to get that result