Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var esq = Ext.create("Terrasoft.EntitySchemaQuery", {
- rootSchemaName: "ContactType"
- });
- esq.addColumn("Id");
- esq.filters.addItem(esq.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "Name", "Customer"));
- esq.getEntityCollection(function(result) {
- if (result.success) {
- var item = result.collection.first();
- var id = item.values.Id;
- console.log("The Id for Customer on ContactType is " + id);
- }
- }, this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement