Created
January 25, 2022 09:52
-
-
Save hasokeric/a6fd4418b7ed6d6f006fcbb4dd89de82 to your computer and use it in GitHub Desktop.
ProcessCaller.PerformSearch Epicor uses ProcessCaller.PerformSearch throughout all of its UIApps for various adapters. No Dependencies Needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object searchReslts = ProcessCaller.PerformSearch(oTrans.EpiBaseForm, "JobEntryAdapter", "List" /* or Rows */, "JobNum = '" + args.ProposedValue.ToString() + "'"); | |
if (searchReslts is DataSet) | |
{ | |
DataSet searchDS = (DataSet) searchReslts; | |
if (searchDS.Tables[0].Rows.Count > 0) | |
{ | |
string jobNum = searchDS.Tables[0].Rows[0]["JobNum"].ToString(); | |
string partNum = searchDS.Tables[0].Rows[0]["PartNum"].ToString(); | |
string revisionNum = searchDS.Tables[0].Rows[0]["RevisionNum"].ToString(); | |
args.Row["ChildKey4"] = partNum; | |
args.Row["ChildKey5"] = revisionNum; | |
} | |
} | |
// Example 2 | |
searchReslts = ProcessCaller.PerformSearch(this.TopLevelControl, “EmpBasicAdapter”, “EmpID = ‘” + this.txtEmployeeNum.Text + “‘”); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment