ProcessBlock |
![]() ![]() ![]() |
A ProcessBlock Element must be placed into a ProcessForm Element. A ProcessForm may contain 1 or more ProcessBlock elements and a ProcessBlock element may contain 0 or more ProcessRecord elements.
Any HTML element which may contain nested elements can be designated as a Process Block with mo:type="ProcessBlock" attribute. In the above figure a table element is chosen for that and it is a suitable for the blocks that have repetitive Process Records. Properties selectionColor If a color code is specified with this property it is used to highlight the Process Record which is selected by the user. warnColor If a color code is specified with this property it is used to highlight the whole Process Block to warn the user about a missing mandatory or excessive Process Record selection. With the Javascript methods provided by MoreMotion Face API it is possible to manipulate (add, delete, copy, etc) the Process Records of a Process Block. If the records of a Process Block needs to be manipulated then true should be assigned to this property. The blocks that are subject to manipulation must provide a template record. The template record is the first record in the block. During initialization init() method of the ProcessBlock marks the first record in the block as the template record and makes it invisible. When the addRecord() method of the ProcessBlock is called, it creates the new record by cloning this template record. extraItemsBefore="1" If the records of a ProcessBlock is constructed dynamically using a <xsl:repeat-foreach select="/root/datarequest1/item"/> definition then extraItemsBefore attribute of the dataRequest configuration element can be used as follows to provide an extra record for the template record. Example:
See ProcessBlock Function Class in MoreMotion Face API. |