* Gets the cell value of the given field of record, and convert to string type. * * @returns * * #### Example * ```js * const stringValue = myRecord.getCellValueString(myNumberFieldId); * console.log(stringValue); * // => '42' * ```
(fieldId: string)
| 103 | * ``` |
| 104 | */ |
| 105 | getCellValueString(fieldId: string): string | null { |
| 106 | const state = this.wCtx.widgetStore.getState() as any as IReduxState; |
| 107 | const datasheetId = this.datasheetId; |
| 108 | const field = Selectors.getField(state, fieldId, this.datasheetId)!; |
| 109 | const cellValue = this._getCellValue(fieldId); |
| 110 | return Field.bindContext(field, state).cellValueToString(cellValue, { datasheetId }); |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * |
no test coverage detected