The following properties of the object class jQuery Control (FSCVAPP@1.1001:ControljQuery) are commonly used. Properties that are not listed here are intended for internal use only. The examples are not self-contained, but they lay emphasis on the important points.
FSCVAPP@1.1001:initexpr provides initial data for the control (e.g. strings). The result value has to be in JSON format.
Example |
app.ducx Object Model Language instance ControljQuery CustomObjectListControl { // the dictionary contains the desired values // convert the dictionary to a JSON string render.js this.OnInit = function CustomObjectListControl_OnInit() // get the values defined in initexpr this.strings = init.strings; if (this.names) { this.OnRender = function CustomObjectListControl_OnRender(output) for (var idx = 0, cnt = this.names.length; idx < cnt; idx++) { |
FSCVAPP@1.1001:lookelements defines resources (JS, CSS and images) needed for the control. JavaScript and CSS files are automatically included in the HTML page.
Images can be accessed within the HTML code using the following path:
../tmp/x/<SWCREF>_<majorid>_<minorid>/<imagename>.<ext>
In CSS files, use the following path:
../x/<SWCREF>_<majorid>_<minorid>/<imagename>.<ext>
Example |
app.ducx Object Model Language instance ControljQuery CTRLEditImage { render.js this.OnRender = function CTRLEditImage_OnRender(output) |
COOATTREDIT@1.1:controltypes can be used to document which data types the control is applicable for (e.g. INTEGER, OBJECT, OBJECTLIST, Content, WorkFlowParticipant).
Example |
app.ducx Object Model Language instance ControljQuery CustomObjectListControl { |