HOW TO: Refresh records updated by external systems

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

HOW TO: Refresh records updated by external systems

Postby pbakker » Fri Nov 21, 2003 11:49 am


One of the new features not documented in the RC10 release topic is the ability to requery a record. This might be handy if you have other applications besides Servoy updating your database and you want to be sure your user is looking at the correct info.

I've created a method that you can store as a Global Method and then, for example, attach to a button of ANY form, or use in other methods. It refreshes the data directly displayed on your form (not portals or tabpanels).

for ( var i = 0 ; i <= eval("forms."+currentcontroller.getName(
+".controller.getMaxRecordIndex()") ; i++ )

Basically, this method loops through all records in the foundset and by using the currentcontroller.getName() function, it can be used on any form.

Hope this inspires people to do cool stuff....

Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Return to How To

Who is online

Users browsing this forum: No registered users and 1 guest