Skip to main content

eBA Form Update

if (!eBAConfigurationHelper.ApplicationConfig.DefaultInstanceEnabled)

{

eBAConfiguration.Config.InitializeConfiguration();

}

eBAConnection con = CreateServerConnection();

This is how I open the connection.

WorkflowDocument docIMP = con. WorkflowManager.CreateDocument("IM", "IMP");

eBAForm frmIMP = new eBAForm(docIMP.DocumentId);

I create a form and capture it from the id

DataTable dtPriority = getExcellData( "select * from [PRIORITIES$]");

I read data from an excell, I write the incoming rows to the detail table object in the form

foreach (DataRow row in dtPriority.Rows)

{

FormDetailsGridRow oncRow = frmIMP.DetailsGrids["DTONC"]. Rows.Add();

oncRow["ONC"]. AsString = row["PRIORITY"]. ToString();

oncRow["ONCACK"]. AsString = row["DESCRIPTION"]. ToString();

}

frmIMP.Fields["Text1"]. AsString = "test";

, you can type data into the fields on the form.

frmIMP.Update();

Con. Close();