Hello,
I’m working on converting some E10 customs to kinetic 2022.x… so far this is the only error left…
'Ice.BO.CompanyDataSet.CompanyRow' does not contain a definition for 'AttachNetworkRoot' and no extension method 'AttachNetworkRoot' accepting a first argument of type 'Ice.BO.CompanyDataSet.CompanyRow' could be found (are you missing a using directive or an assembly reference?)
and this is the code:
#region DispatchAttachments
private void attList() {
Cursor.Current = Cursors.WaitCursor;
DynamicQueryAdapter baqAdapter = new DynamicQueryAdapter(oTrans);
CompanyAdapter comp = new CompanyAdapter(this.oTrans);
comp.BOConnect();
Ice.Core.Session epiSession = (Ice.Core.Session)ProjectEntryForm.Session;
comp.GetByID(epiSession.CompanyID);
***FPSpath = comp.CompanyData.Company[0].AttachNetworkRoot.ToString() + @"\";***
comp.Dispose();
baqAdapter.BOConnect();
string company = epiSession.CompanyID;
//string BAQID = company + "-DispatchAttachment";
QueryExecutionDataSet dsBaq = new QueryExecutionDataSet();
if(_edvProject.Row < 0)
{
dsBaq.ExecutionParameter.AddExecutionParameterRow("ProjectID", "", "nvarchar", false, Guid.NewGuid(), "A");
}
if(_edvProject.Row > -1)
{
dsBaq.ExecutionParameter.AddExecutionParameterRow("ProjectID", Project_DataView[0]["ProjectID"].ToString(), "nvarchar", false, Guid.NewGuid(), "A");
}
baqAdapter.ExecuteByID(company + "-DispatchAttachment", dsBaq);
EpiDataView edvProjects = new EpiDataView();
edvProjects.dataView = new DataView(baqAdapter.QueryResults.Tables["Results"]);
DataTable gridUD20 = baqAdapter.QueryResults.Tables["Results"];
//Add adpater to tables
attGrid.DataSource = gridUD20;
baqAdapter.Dispose();
attGrid.DisplayLayout.AutoFitStyle = AutoFitStyle.ResizeAllColumns;
baqAdapter.Dispose();
Cursor.Current = Cursors.Default;
Any help will be very appreciated.