NetTalk Central

Author Topic: Skip record during filling browse  (Read 1738 times)

Matthew

  • Full Member
  • ***
  • Posts: 137
    • View Profile
    • Email
Skip record during filling browse
« 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

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Skip record during filling browse
« Reply #1 on: April 27, 2011, 01:57:57 AM »
Hallo Matthew,

Try in ValidateRecord embed it should work.

IF USER:Age < 30 THEN CYCLE .

Robert

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
Re: Skip record during filling browse
« Reply #2 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