How can a button replace the Record bar?

Hi all,

Currently i want to write a very simple records view; but i do not want the Bar which is generated automatically by Servoy at the top left hand corner. I would like to write a code to a button which work exactly the same with the Bar!

My question is: Can the bar be removed? If yes, any built in classes or methods which enable the button to have same funtionality with the bar.

*pls refers to the attachment to understand my question well. :slight_smile:

regards,
powerteh

You can remove “the bar” by setting the “navigator” property of the form to “none”. It is very easy to make a method that will allow you to create your own buttons…

You should take a look at the samples of the functions in the controller-node in the editor.
Especially controller.setSelectedIndex(), controller.getSelectedIndex() and controller.getMaxRecordIndex().

hi patrick & Joas,

Thanks for your help. :P
I will take your advice and try it out.

regards,
powerteh

Have a look at the video tutorial on creating custom controllers (navigators) as well. This may give you some pointers.

http://developer.servoy.com/generic.jsp?taxonomy_id=357