@mnikitina
An web service will update a field in user profile of which sharepoint user. After that i will populate that field in table in form of list item. Because it can be many rows, maybe one. I decided to use data Table.
@mnikitina thank you
I resolved like this:
fd.spRendered(function() {
function filterD12T(){
var jsonArray = JSON.parse(fd.field("zileConcediu").value);
fd.control("DataTable1").widget.setOptions({dataSource:jsonArray});
}
fd.field('zileConcediu').$on('change', filterD12T)
});
and in field zileConcediu , populate from userProfile. with
[{"StartWorkYearDate":"2018-11-25","EndWorkYearDate":"2019-11-24","PaidDays":"18","GratisDays":"0"},{"StartWorkYearDate":"2019-11-25","EndWorkYearDate":"2020-11-24","PaidDays":"28","GratisDays":"0"}]
How to disable and hide 'delete element' in table and 'add new item' - to make only read only ?