protected void PoPuP(object sender, DirectEventArgs e) { string id = e.ExtraParams["id"]; string type = e.ExtraParams["type"]; FillLdMethodStore(); switch (type) { case "imgEdit": //Step 1 : get the object from the Web Service RecordRequest r = new RecordRequest(); r.RecordID = id; RecordResponse <LoanType> response = _loanService.ChildGetRecord <LoanType>(r); if (!response.Success) { X.MessageBox.ButtonText.Ok = Resources.Common.Ok; Common.errorMessage(response); return; } //Step 2 : call setvalues with the retrieved object ApprovalStore.Reload(); this.BasicInfoTab.Reset(); this.BasicInfoTab.SetValues(response.result); apId.Select(response.result.apId.ToString()); this.EditRecordWindow.Title = Resources.Common.EditWindowsTitle; this.EditRecordWindow.Show(); break; case "imgDelete": X.Msg.Confirm(Resources.Common.Confirmation, Resources.Common.DeleteOneRecord, new MessageBoxButtonsConfig { Yes = new MessageBoxButtonConfig { //We are call a direct request metho for deleting a record Handler = String.Format("App.direct.DeleteRecord({0})", id), Text = Resources.Common.Yes }, No = new MessageBoxButtonConfig { Text = Resources.Common.No } }).Show(); break; case "imgAttach": //Here will show up a winow relatice to attachement depending on the case we are working on break; default: break; } }