NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Matthew on April 26, 2011, 11:39:37 PM

Title: Skip record during filling browse
Post by: Matthew on April 26, 2011, 11:39:37 PM
Hello

How to skip a record during filing browse in embed: 3.Inside Browse Loop -> 2. Set Queue Record?
I would like to skip record based on value in some field of that record. For example I have filter like LOC:ID = USER:ID which will give me only that records and additional I would like to skip some record for example where USER:Age < 30.

I had instruction IF USER:Age < 30 THEN CYCLE in that embed but it doesn't work.

Please help.

Regards,
Matthew
Title: Re: Skip record during filling browse
Post by: Robert Iliuta on April 27, 2011, 01:57:57 AM
Hallo Matthew,

Try in ValidateRecord embed it should work.

IF USER:Age < 30 THEN CYCLE .

Robert
Title: Re: Skip record during filling browse
Post by: Bruce on April 27, 2011, 04:50:51 AM
Yes, Robert is right, use the ValidateRecord embed point.

Also make sure to add USER:Age to the View (by adding it to the Hot Fields list).

Of course for something this simple it's a lot better to add it directly into the filter statement.

Cheers
Bruce