Restricted formula for key and parameter values
A subset of Sage X3 scripting language can only be used to supply key or parameter values because they have to be evaluated on the client side.
A valid parameter value can be:
this. For example, PRICE, ADDLINE.TEXT.ACTX.USER.COLLECTION.PROPERTY, which implies using the same index in the collection."VEN", "SUP", "00123", 3.14, or 678000. This is only possible if it is the value that transmits the parameter.This is accepted only if the parameter value is an instance (it must be alone).=num$(P) where P is a property of the class. This is possible only when the following conditions are fulfilled:
Char and is sent by value.TinyInt, Integer, Decimal, Clob, Char,Date, Decimal,Uuident or Datetime.=val(P) where P is a property of the class. This is possible only when the following conditions are fulfilled:
TinyInt, Integer or Decimal and is sent by value.Clob, Char or Date.The solution for a complex formula is:
This property is invisible and it is evaluated on the server and sent to the client. The client will then be able to evaluate the formula locally and eventually express a link or another condition.