Method ‘CacheAddMethod’ can only be called after super() within the form datasource init method.

Hi All,

this.cacheAddMethod(‘SalesPriceUnit’);

this.cacheAddMethod(‘GrossWeight’);

this.cacheAddMethod(‘GrossVolume’);

The above three methods are called after supe() in data source init()

but i am getting the error “Method ‘CacheAddMethod’ can only be called after super() within the form datasource init method.”

above three are datasource displaymethods.

if any one know the solution please share.

Regards,

RK.

Method defined on form data sources can’t be cached. If you want to benefit from caching, implement your methods on the table.

(Question moved to the Developer forum.)

Hi

As martin said that you should write the display methods in table methods

then use the following sytex

this.cacheAddMethod(tablemethodstr(yourtablename, yourdisplaymethodsname));