Hi All
I have a function that is triggered when Account is changed on Lead.
I use the common code for getting query results:
var recordId = this.get("Id");
var esq = this.Ext.create("Terrasoft.EntitySchemaQuery", {
rootSchemaName: "Lead"
and the code to get my query resluts:
esq.getEntity(recordId, function(result) {}
It works fine but not before save.
Before save I bbelieve I don't have the recordId yet and this is why I can't get query results.
Any ideas?
Maybe there is a way to use the Id of the account that was chosen in the lookup and use it ?
Thanks