I am working with a simple search to connect to the industry class bo. I have text field storing the id for the industry type. Im also trying to pass said type to the industry class simple search. When I select on the the search I get all of the records in the in search screen. no filter need to put something on the where clause but not sure here. When I select the record I need not getting the information stored in the correct ud fields. Let me know what I can do to get this working correctly.
is there a way to test my simple search adapter to pull in the correct data im using the search bo for the industry class and it is not putting the information in to the application as I have selected the record in the search here is my attached code and it does not like this code for some reason.
private void SearchOnIndClassCodeSearchAdapterShowDialog()
{
// Wizard Generated Search Method
// You will need to call this method from another method in custom code
// For example, [Form]_Load or [Button]_Click
EpiDataView edv1 = ((EpiDataView)(this.oTrans.EpiDataViews[“UD02”]));
bool recSelected;
string whereClause = “ICTypeID = '” + (string)edv1.CurrentDataRow[“Character06”] + “'”;
//string whereClause = string.Empty; //MessageBox.Show(“Character06”); //System.Data.DataSet dsIndClassCodeSearchAdapter = Ice.UI.FormFunctions.SearchFunctions.listLookup(this.oTrans, “IndustryClassAdapter”, out recSelected, true, whereClause);
System.Data.DataSet dsIndClassCodeSearchAdapter = Ice.UI.FormFunctions.SearchFunctions.listLookup(this.oTrans, “IndClassCodeSearchAdapter”, out recSelected, true, whereClause);
if (recSelected)
{
System.Data.DataRow adapterRow = dsIndClassCodeSearchAdapter.Tables[0].Rows[0];
IndClassCodeSearchAdapter this is the adapter im using if I use the other business object im able to pull some of the data but not the record I need out of the other business object.
there currenlly does not have errors but when my search runs and I select the record It is not putting the information in the ud table columns. Or showing anything in the message box.
Are you talking about the MessageBox code I just posted? It shows up blank?
Also, you need to save your UD record. If you hit save after running your code, you are saying it doesnt populate? Personally, in this case, I dont think I’d use the Begin\EndEdit.
I have the current data row in my code but the data is not populating in current data set. Also this is a sub search other than the one I have I have with ud02 here is screen shot of my entry screen. My issues is with the search on the bottom industry class search. my code is below the code for my search I can click on the search button and pulls up my information but when I click on the data I want It does not populate in the character filed I have listed.