Call the form return method where data needs to be returned. this. View. ReturnToParentWindow (retData) is returned. You can use this method to retrieve the ReturnData of the returned result from the callback function on the call interface. For example, this method is called in the button event of a dynamic form.
// Confirm the button event private void SaveClaimerAndDate () {string errMsg = Check (); if (! String. isNullOrWhiteSpace (errMsg) {this. view. showErrMessage (errMsg);} else {this. view. returnToParentWindow (SetDateAndClaimer (); this. view. close ();}}
Number of callback functions on the call interface:
Private void GetSale () {ListShowParameter listpara = new ListShowParameter (); listpara. formId = Topview. FT. common. core. FTConst. SALECONTRACT_FORMID; // export contract listpara. parentPageId = this. view. pageId; listpara. multiSelect = false; listpara. isShowApproved = true; listpara. openStyle. cacheId = listpara. pageId; listpara. isLookUp = true; // F7 this. view. showForm (listpara, new Action <FormResult> (result) => {Object data = result. ReturnData; if (data is ListSelectedRowCollection) {ListSelectedRowCollection listData = data as ListSelectedRowCollection; if (listData! = Null & listData. count> 0) {DynamicObject dy = CommonCoreUtils. getDateFromFID (this. context, Topview. FT. common. core. FTConst. RECEIVEREGISTRATION, "FID", listData [0]. primaryKeyValue, "FBILLNO"); this. model. setValue ("FSaleContractId", dy ["FBILLNO"]) ;}});}