Axaptapedia is now maintained by AgileCadence For more information please click here.
A FormDataSource objects represents a query datasource used to fetch and display data in a form.
How to use
The FormDataSource objects are automatically created on all forms which use datasources. The easiest way to access them is to use the provided programming shortcut _ds appended to the datasource name.
<xpp> FormDataSource datasource = VendTable_ds;
Methods and Properties
public boolean cacheAddMethod(str _methodName, [boolean _updateOnWrite])
The cacheAddMethod function is used to enable display method caching.
public boolean cacheCalculateMethod(str methodName)
The cacheCalculateMethod function is used to programmatically recalculate a cached display method.
public boolean forceWrite([boolean _value])
The forceWrite function, when called with true, is used to flag the current table buffer as "dirty". Normally the system will automatically commit changes to a record when a form is closed, a new record is selected etc, only if it detects that the record has been modified. Using forceWrite ensures that the system considers the record as modified irrespective of whether it has automatically detect any changes.