I'm trying to update a user field, created in CabecStk.
The code is more or less this:
public class Class1 : EditorTransferenciasStock
{
public override void TeclaPressionada(int KeyCode, int Shift, ExtensibilityEventArgs e)
{
base.TeclaPressionada(KeyCode, Shift, e);
if (KeyCode == 72)
{
BSO.Inventario.Transferencias.ActualizaValorAtributo("TRA", varTransf, "000", varSerie, "CDU_DATA", DateAndTime.Today);
}
}
}
When you press a key (H) it should write the date value in the CDU_DATA field (which is created in cabecstk). The error returned is that the field does not exist. I think the error is, and in my greatest difficulty, in knowing where the UpdateValueAtribute is for stocks, for example.
In other words:
Aplicacao.BSO.Comercial.Stocks.ActualizaValorAtributo "TRA", var_transf, "000", varserie, "CDU_DATA", Date
Now it's:
BSO.Inventario.Transferencias.ActualizaValorAtributo("TRA", varTransf, "000", varSerie, "CDU_DATA", DateAndTime.Today);
Or am I in the wrong place, or doing the code wrong?