I am having problem with the onRender event in webclient.
function onRender(event) {
// TODO Auto-generated method stub
/** @type {JSRecord<db:/database_name/stock_items>} */
var myRecordStock = event.getRecord();
var myStock = myRecordStock.stockcode;
I've placed the above onRender function in a text field on table view. When I run it in smart client, it works properly. However, when I run it in webclient, I got the following error message:
TypeError: Cannot read property "stockcode" from (F:\Servoy Projects\TestWebStuff\forms\commitlist.js#37)
at F:\Servoy Projects\TestWebStuff\forms\commitlist.js:37 (onRender)
Is it supposed to work only in smart client but not webclient?
I am using Servoy v7.0