Hello!! I have a detail in contact with lookup insert but with single select not mutiselect.
In the addCallBack (after insert the data) how can make the reload of the grid to show the new insert?
addCallBack: function(args) { var ContactId = this.get("MasterRecordId"); var MyId; // Collection passed to query. this.selectedItems = []; // Copying necessary data. var lookupSelectedRows = args.selectedRows.getItems(); if (lookupSelectedRows && lookupSelectedRows.length > 0) { // Receiving the Id of the record selected in the lookup. Id = lookupSelectedRows[0].Id; } var insert = Ext.create("Terrasoft.InsertQuery", { rootSchemaName: this.entitySchemaName }); insert.setParameterValue("MyRelationId", Id, this.Terrasoft.DataValueType.GUID); insert.setParameterValue("Contact", ContactId, this.Terrasoft.DataValueType.GUID); insert.execute(); ///Neeed update the grid to show the new value },
Regards,
Like
1 comments
17:30 Nov 08, 2017
Hi,
The similar functionality was discussed in this post - https://community.bpmonline.com/questions/reloading-detail. Feel free to check it.
Lisa
Show all comments