Hi Sunil,
Thanks for your reply. I have followed the steps you mentioned above for creating search and result.
I have taken Service request ID as input parameter and Name & sales Org as output parameter.
I created one Button Name "SearchData" and also created event. But facing below problem:
1. Search Button is not visible in QA screen preview
2. Data is not displaying in output
here is the BO code:
import AP.Common.GDT as apCommonGDT;
import AP.CRM.Global;
businessobject ServiceRequest {
element ServReqID : BusinessTransactionDocumentID;
node ServDetail [1,n] {
element Name : MEDIUM_Name;
element SalesOrg : OrganisationalCentreID;
action SearchData;
}
}
Created button with below Properties:
Event:
In Action search written below codes:
import ABSL;
import AP.CRM.Global;
var query = ServiceRequest.QueryByElements;
var resultData = query.ExecuteDataOnly();
// 2. Selection
var selectionParams = query.CreateSelectionParams();
// Result
resultData = query.ExecuteDataOnly(selectionParams);
I think this code is not sufficient to display data in output variable. Please help us adding the codes.
Also help me to resolve above mentioned 2 issues.
Regards.