Problems with refreshRecord Method

I have a Method with the following line:

databaseManager.refreshRecordFromDatabase(foundset, -1);

I get the following error:

“foundset” is not defined.

Callstack:

force_relookup

I copied it straight out of the manual. When I do it like this:

databaseManager.refreshRecordFromDatabase('foundset', -1);

It runs, but I can’t see that it is actually working. When I change data from an outside source, I don’t see it changing in Servoy. Is this the correct way to do it?

In what context are you running that…in a global method, or a method on a form?

I have it running as a method on a form.

What is the difference between running it as a global method and running it on a particular form?

In a global context you have no foundset…