Defining Calculated Fields[Permalink]Return to Delegate class methods Xataface allows you to define calculated fields using the delegate class. These fields won't be visible in the UI by default, but they will be accessible to some modules (e.g. the HTML Reports Module) and they are always accessible to you via the API. E.g. If you define a calculated field named year, you would be able to access this value using the regular Dataface_Record syntax:
You could also define any number of filter methods and permissions on this field just as you can on regular fields. e.g.
or
How to Define a Calculated FieldIn the delegate class you simply create a method with the following naming convention:
where the return value is the value that the given record should have for the field filedname. E.g.
blog comments powered by Disqus
|