const featureTable = new FeatureTable({featureLayer: featureLayer,editable: true,syncSelection: true,dateOptions: {datePattern: 'dd/MM/y',timeEnabled: true,timePattern: 'HH:mm:ss',},hiddenFields: ["objectid", "objectid_1"],// use fieldInfos object to change field's label (column header),// change the editability of the field, and to format how field values are displayed// you will not be able to edit callnumber field in this example.fieldConfigs: [{name: 'question',alias: 'Question'},{name: 'answer',alias: 'Answer'},{name: 'created_user',alias: 'Created By',editable: false},{name: 'created_date',alias: 'Created Date',editable: false},{name: 'last_edited_user',alias: 'Modified By',editable: false},{name: 'last_edited_date',alias: 'Modified Date',editable: false},{name: 'status',alias: 'Status',}], container: document.getElementById("tableNode")});featureTable.startup();
Solved! Go to Solution.
You're using properties in the constructor that have been changed for 4.23, such as featureLayer (use layer) and editable (use editingEnabled) and others that don't exist, like syncSelection, dateOptions, and hiddenFields. The method startup doesn't exist either. In the fieldConfigs, the properties are also changed, using label instead of alias
You're using properties in the constructor that have been changed for 4.23, such as featureLayer (use layer) and editable (use editingEnabled) and others that don't exist, like syncSelection, dateOptions, and hiddenFields. The method startup doesn't exist either. In the fieldConfigs, the properties are also changed, using label instead of alias
Thank you very much good sir! This worked, sorry I am new to this api.