Custom controller question

Since it is not possible to have two controllers asigned to a form. I wanted to simulate the dafault controller in the header of a form. I just want to have a couple of buttons that will allow a user to page through records in record view.

It would show the total records and what record the user is currently on. I have a good idea where to start to capture the record count and current record. I needed a little direction on moving up and down through the records.

I can figure this out, but was hoping that someone might have already needed this option and created a method to accomplish this.

Thanks for any help.

Erich

Also, If the form I was displaying was a showformindialog, would I still be able to page through the records?

surely you can use this (2.1):

go up:```
controller.setSelectedIndex(controller.getSelectedIndex() + 1)

go down:```
controller.setSelectedIndex(controller.getSelectedIndex() - 1)

Thank you