on 08-02-2021 7:09 PM
Buenas estimados, estoy tratando de realizar una actualización a la tabla definida por usuario. del campo "U_Conciliar" , pero al ejecutar la opción del botón actualizar no realizada la actualización del campo.
El Código del botón.
private SAPbouiCOM.Button Button6;
private void Button6_ClickBefore(object sboObject, SAPbouiCOM.SBOItemEventArg pVal, out bool BubbleEvent)
{
BubbleEvent = true;
//throw new System.NotImplementedException();
if (oform.Mode == SAPbouiCOM.BoFormMode.fm_UPDATE_MODE)
{
oUserTable = oCompany.UserTables.Item("CONCILIACION");
string Correlativo = (EditText7.Value.ToString());
if (oUserTable.GetByKey(Correlativo))
{
for (int i = 0; i < oRset.RecordCount; i++)
{
oUserTable.UserFields.Fields.Item("U_EstadoConciliado").Value = ((SAPbouiCOM.CheckBox)Matrix1.Columns.Item("Col_6").Cells.Item(i + 1).Specific).Checked ? ((SAPbouiCOM.CheckBox)Matrix1.Columns.Item("Col_6").Cells.Item(i + 1).Specific).ValOn.ToString() : ((SAPbouiCOM.CheckBox)Matrix1.Columns.Item("Col_6").Cells.Item(i + 1).Specific).ValOff.ToString();
int r = oUserTable.Update();
if (r != 0)
{
OApp.SetStatusBarMessage("Error" + oCompany.GetLastErrorDescription(), SAPbouiCOM.BoMessageTime.bmt_Medium, false);
}
else
{
OApp.SetStatusBarMessage("sucessfully update", SAPbouiCOM.BoMessageTime.bmt_Medium, false);
}
}
}
}
}
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.