How hide 'recordId' column while edit.But same column need to show while create in datatables editor
How hide 'recordId' column while edit.But same column need to show while create in datatables editor
Omniwyse
Posts: 29Questions: 11Answers: 0
My table contains 3 columns.
one of the column that is recordId is should hide while editing a row.Same column should be show while creating new one.
I am using datatables editor.
fields: [{
label: "recordId :",
name: "recordId ",
data: recordId,
},
{
label: "Name :",
name: "name",
data: "name",
}, {
label: "Description :",
name: "description",
data: "description"
}
]
Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
Answers
Use the
initCreate
andinitEdit
events - e.g.:Not sure if it was a typo in the post, or actually in your code, but the
name
parameter forrecordId
has a trailing space there.Allan
Thanks allan..