on previous / next

in form properties:

on previous / next

Thanks!
Stef

Aren’t “onShow” and “onHide” doing the job?

and onRecordSelect if you are talking about navigation should be able to do that job…

In my contact manager I have 2 types of forms, 1 for a company (with contacts), 1 for an individual (without contacts).

on show does not work with prev/next
on record selection works in ALL forms of this table (see previous post).

You can take a look at it:

www.willcom.be/online

Best regards,
Stef

What exactly do you mean with prev /next.
Do you mean to say that onShowForm doesn’t get triggered with the history steps (history.go)?

no, with alt+up and alt+down!

Regards,
Stef

Stef:
no, with alt+up and alt+down!

Use:

controller.recordIndex++;

or:

controller.recordIndex--;

Yes! That’s how I do it right now.
But the user is still able to use alt+up and alt+down!
Or can I disable this?

Best regards,
Stef

Yes but why whould you prevent that?
One thing you could do is make sure the foundset has only one record at the time, for example with a self join on the pk.
Example: controller.loadRecords(orders_to_orders)