Dear,
I m trying to copy an email Model HTML content into a section textarea.
Here's my code:
onUsrModeleIdChange: function() {
var ModeleId = this.get("UsrModeleId").value;
var esq = this.Ext.create("Terrasoft.EntitySchemaQuery", {
rootSchemaName: "EmailTemplate"
});
esq.addColumn("Body");
esq.filters.add("IdFilter", esq.createColumnFilterWithParameter(
Terrasoft.ComparisonType.EQUAL, "Id", ModeleId));
esq.getEntity(ModeleId, function(result) {
var BodyContent=result.entity.get("Body");
this.set("Corps", BodyContent);
});
},
I get the BodyContent variable, but the this.set comes out in error:
I don't understand why the this.set does not works.
Is it because the field is an textArea ?
Thank you !
Nicolas