Getting a newRecord to display at the top of the list.

Everytime I create a new record it appears at the bottom of the list, which often means that I need to scroll down to populate it. This even seems to be the case when I have asked the list to sort using a unique ID or if I create a method that sorts the list after creating the new record.

Is there an easy way I can get the newRecord to display at the top?

Many thanks

MerMer

Hi MerMer,

The following code will add it to the top.

controller.newRecord(true);

To know what parameters certain functions have you can hover over the node in the Servoy Editor or you can right click on it and move sample.

Hope this helps.

Robert,

Many thks indeed. Feeling rather foolish not to have looked at the parameters first!

MerMer

MerMer:
Robert,

Many thks indeed. Feeling rather foolish not to have looked at the parameters first!

MerMer

MerMer,

You can also find a complete list of all Servoy functions, as well as the
syntax, parameter(s) and example(s) for each function in the:

Printed Servoy Developer Edition Reference Guide

  • In the Methods chapter, beginning on page 131.

NOTE: The printed Servoy Developer Edition Reference Guide can
be purchased from the Servoy Store.

Online Help Navigator

  • Choose Help > Help (F1)
  • Click to open the Index tab.
  • Enter “method” or the first few characters of the function you are
    looking for.
  • Select the desired topic from the Topics list at the bottom.

Downloadable Servoy PDF documentation files

  • Download the desired PDF file from the Servoy Developers/Documentation web page.
  • Open the desired documentation file in Adobe Reader or Acrobat
  • Choose Edit > Search.
  • Enter in the desired search criteria.
  • Press the “Search” button to show the Search Results.
  • Select the desired item from the Search Results list.

Marc Norman
Servoy