Hi all ,
I have a custom business rule in mobile app were i need to set the value of a lookup filed of the records. but i just can't find the way how to do it.
for example:
Terrasoft.sdk.Model.addBusinessRule("InvoiceProduct", {
// The name of the business rule.
name: "MyRULE",
// Business rule type: custom.
ruleType: Terrasoft.RuleTypes.Custom,
triggeredByColumns: ["Product"],
events: [Terrasoft.BusinessRuleEvents.Load],
// Handler function.
executeFn: function(record, rule, column, customData, callbackConfig) {
record.set("Product",{value: , displayValue: });
// Asynchronous return of values.
Ext.callback(callbackConfig.success, callbackConfig.scope, [isValid]);
}
});
But this does not work.. i get :
record.set("Product",{value: , displayValue: });
base-model.js:453 Uncaught TypeError: value.toLowerCase is not a function
Can you help ?
Thanks.
Eran.