Style definition using scripts
Hi,
1) 

I saw a thread in community and tried to create style definition using script and when I run it, it doesnt show any output. What should be the base type to create a style definition?
var name = "NewTestStyle3";
try{
Resources["EntityServices"].CreateStyleDefinition({
name: name,
description: undefined ,
content: { "content" :
{ "params": "",
"image":"",
"backgroundColor":"#d49d13",
"textSize":"normal",
"lineStyle":"dotted",
"displayString":"Series 15",
"fontEmphasisUnderline":false,
"fontEmphasisItalic":false,
"lineThickness":1,
"lineColor":"#ffac20",
"foregroundColor":"#ffdc84",
"fontEmphasisBold":false,
"secondaryBackgroundColor":"#ffb22f"
}
},
tags: undefined
});
}catch(err) {
logger.error("EERROR STYLE CREATION "+err);
Resources["EntityServices"].DeleteStyleDefinition({
name: name
});
}
2) I am using a colour picker widget downloaded from market place where the selected colour appears like a code. How can I bind the output of the selected colour from colour picker to the style definition?

