4 Detail table operation interface
1 Add detail table row and set initial value
addDetailRow:function (detailMark, initAddRowData ={})
Parameters Description
Parameter | type | Required | Remarks |
---|---|---|---|
detailMark | String | Yes | A list indicates that detail 1 is detail_1, incremental analogy |
initAddRowData | JSON | No | Set the initial value after adding, in {field110:{value:"11"},field112:{value:"22"},…}, note key without underlining |
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
Parameter | type | Required | Remarks |
---|---|---|---|
detailMark | String | Yes | A list indicates that detail 1 is detail_1, incremental analogy |
rowIndexMark | String | Yes | Delete all lines: all, delete some lines :"1,2,3" |
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
Parameter | type | Required | Remarks |
---|---|---|---|
detailMark | String | Yes | A list indicates that detail 1 is detail_1, incremental analogy |
rowIndexMark | String | No | All rows to be selected: all, Central Branch :"1,2,3" |
needClearBeforeChecked | Boolean | No | Need to clear selected |
Example
4 Get all Row Index of detail table
getDetailAllRowIndexStr:function (detailMark)
Parameter Description
Parameter | type | Required | Remarks |
---|---|---|---|
detailMark | String | Yes | A list indicates that detail 1 is detail_1, incremental analogy |
Example
5 Get selected row index of detail table
Minimum Version: KB900190501
getDetailCheckedRowIndexStr:function (detail Mark)
Parameter Description
Parameter | type | Required | Remarks |
---|---|---|---|
detailMark | String | Yes | A list indicates that detail 1 is detail_1, incremental analogy |
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
Parameter | type | Required | Remarks |
---|---|---|---|
detailMark | String | true | A list indicates that detail 1 is detail_1, incremental analogy |
rowIndexMark | String | Yes | All rows to be selected: all, Central Branch :"1,2,3" |
disableCheck | boolean | true | true: not allow; false: allowed |
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
Parameter | type | Required | Remarks |
---|---|---|---|
detailMark | String | true | A list indicates that detail 1 is detail_1, incremental analogy |
rowIndexMark | String | Yes | All rows to be selected: all, Central Branch :"1,2,3" |
needHide | boolean | true | Hide rows, true: hide, false: display |
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
Parameter | type | Required | Remarks |
---|---|---|---|
fieldMark | String | Yes | field designation, format field${ field ID}_field${ line number} for locating which list belongs |
9 Get count of row lines
getDetailRowCount:function (detail Mark)
Parameter Description
Parameter | type | Required | Remarks |
---|---|---|---|
detailMark | String | Yes | A list indicates that detail 1 is detail_1, incremental analogy |
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
Parameter | type | Required | Remarks |
---|---|---|---|
detailMark | String | Yes | A list indicates that detail 1 is detail_1, incremental analogy |
needCopy | Boolean | Yes | true: enable, false: disable |
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
Parameter | type | Required | Remarks |
---|---|---|---|
mark | String | Yes | The list indicates that two formats detail_${ dindex} or fielddetail_${}{ rowIndex} are supported |
rowIndex | Int | Yes | Line identification, the first format detail_${ dindex} to pass this parameter |
Example
Last updated