Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var batchQuery = this.Ext.create("Terrasoft.BatchQuery");
- var CaseUpdateQuery = this.Ext.create("Terrasoft.UpdateQuery", { rootSchemaName: "Case" });
- var filters1 = CaseUpdateQuery.filters;
- filters1.addItem(this.Terrasoft.createColumnFilterWithParameter(this.Terrasoft.ComparisonType.EQUAL, "Id", this.get("AlphaCurrentCase").value));
- CaseUpdateQuery.enablePrimaryColumnFilter(this.get("AlphaCurrentCase").value);
- CaseUpdateQuery.setParameterValue("Contact", this.get("AlphaContact").value, this.Terrasoft.DataValueType.GUID);
- CaseUpdateQuery.setParameterValue("AlphaBeginMood", this.get("AlphaBeginMood").value, this.Terrasoft.DataValueType.GUID);
- CaseUpdateQuery.setParameterValue("AlphaEndMood", this.get("AlphaEndMood").value, this.Terrasoft.DataValueType.GUID);
- batchQuery.add(CaseUpdateQuery);
- var ContactUpdateQuery = Ext.create("Terrasoft.UpdateQuery", { rootSchemaName: "Contact" });
- var filters2 = ContactUpdateQuery.filters;
- filters2.addItem(this.Terrasoft.createColumnFilterWithParameter(this.Terrasoft.ComparisonType.EQUAL, "Id", this.get("AlphaContact").value));
- ContactUpdateQuery.setParameterValue("MobilePhone", this.get("AlphaContactMobilePhone"), this.Terrasoft.DataValueType.TEXT);
- ContactUpdateQuery.setParameterValue("Phone", this.get("AlphaContactPhone"), this.Terrasoft.DataValueType.TEXT);
- ContactUpdateQuery.setParameterValue("Email", this.get("AlphaContactEmail"), this.Terrasoft.DataValueType.TEXT);
- batchQuery.add(ContactUpdateQuery);
- batchQuery.execute();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement