4 Detail table operation interface
1 Add detail table row and set initial value
addDetailRow:function (detailMark, initAddRowData ={})
Parameters Description
Example
2 Delete the detail list indicating line/all line
delDetailRow:function (deleteMark, rowIndexMark)
Note: This method empties the details selected and there is no confirmation box indicating whether to delete
Example
3 Select sepecified row or all row
checkDetailRow: function(detailMark, rowIndexMark,needClearBeforeChecked)
Note: This method is flexible and can be used to clear selected logic by needClearBeforeChecked parameters
Parameter Description
Example
4 Get all Row Index of detail table
getDetailAllRowIndexStr:function (detailMark)
Parameter Description
Example
5 Get selected row index of detail table
Minimum Version: KB900190501
getDetailCheckedRowIndexStr:function (detail Mark)
Parameter Description
Example
6 Controls whether the detail line check box disables the tick
note: background configuration of the gray line (not allowed to delete), does not support through this API control
controlDetailRowDisableCheck:function (detailMark, rowIndexMark, disabledCheck)
Parameter Description
7 Control the display and hide of detail data rows
Note: only the interface effect is hidden, the serial number will not change, that is, the front and rear row serial number of the hidden row will be fault discontinuous
controlDetailRowDisplay:function (detail Mark, rowIndex Mark, need Hide)
Parameter Description
8 Get database primary key of exisitng field
getDetailRowKey:function (fieldMark) for the detail existing rows.
This method takes effect only for the detail existing rows, with newly added rows/non-existent rows returning to -1
Parameter Description
9 Get count of row lines
getDetailRowCount:function (detail Mark)
Parameter Description
Example
10 Add lines, delete line pre-action(logic or block event)
minimum version requirements: KB900190501
scenario: implement custom logic before adding lines, limit how many lines to add invalid, do not allow deletion, etc.
Use registration function mechanism, check details at section 2.1
11 Add lines, delete lines post-actions
Trigger events using hook mechanism, check detials at section 2.2
12 Mobile client jump to detail edit line page execution event
minimum version requirements: KB900190501
only for mobile client edit detail line, hook mechanism, check detials at section 2.2
13 Add new detail row, copy last line data by default
setDetailAddUseCopy:function (detailMark, needCopy)
When adding detail: this method is called at ready, the last line field content is automatically assigned when the manual add new row, the settings before the node and the default value are overwritten, and the attachment upload field is not copied.
Note: E9 is the asynchronous ready after the execution of the point to add details to take effect, such as the default new empty details invalid; Parameter
Description Parameter
14 Get S/N base on row index
Minimum version requirements: KB900190601
scenario: according to the subscript of the line, obtain the current line details, can be used to prompt such a line exception
getDetailRowSerailNum:function (mark, rowIndex)
Parameter Description
Example
Last updated