Specifying Calculated Field Properties

You can dynamically compute fields on the Astoria Communication Server.

Property values in Webform field definitions can be computed dynamically by setting the value of the field property to something of the form:

!py:method(<optional args>)

The "!py:" is a reserved prefix; if the property value starts with any other character, it is assumed to be a normal property value. The example above causes the following jython method to be called:

method(db, moduleH, <optional args>)

For example, !py:myApp.myProcedure("foo") results in the following call:

myApp.myProcedure(db, moduleH, "foo")

The implementation of the procedure should return the value of the property. For example,

def getHeight(db, moduleH):

return "3",

would set the property value to 3.