I implemented a handy JS function in Scripting. It allows us to use a simple JS object to create a property editor dialog from it. I’ll primarily use it for displaying an editor for Time Clock Config Task settings but I think we’ll find more uses for it.
function test(){
var result = dlg.EditDynamic('Test Properties',{UserName:'Emre',Age:13,Certified:true});
return result.UserName;
}
Also it can be used for JS debugging purposes. We can use it to display contents of a JSON for example…
function test(){
var products = gql.Exec('{getProducts{name,groupCode,price}}');
var json = JSON.parse(products);
dlg.EditDynamic('JSON',json);
return 'OK';
}

