clarification on Omitrecord

I was going thru the manual for filemaker developers. on page 202
I found this

//omits the 5th record on the order_details form:
forms.customers.controller.recordIndex = 5;
forms.order_details.controller.omitRecord();

Now, are only the records related to 5 being omitted in the order details or simply the fifth record that could belong to any customer.

In other words is this working via a relantionship of matching a key? to me it seems that would be the best. or is it simply deleteing the fifth record belonging to the current customer?

it just seemed vague to me

Joe Mele

Hi Joe,

Say you’re in customers and have 10 records. When you run the code:

//omits the 5th record on the order_details form:
forms.customers.controller.recordIndex = 5;
forms.order_details.controller.omitRecord();

Servoy goes to record number 5 and omits it from the foundset (leaving you with 9 records in the foundset).

Bob Cusick

So it is the 5th record for the current customer.

Joe Mele

It’s the 5th record in the current foundset in the current table, yes.

Bob