Update Cdus from coin table

Asked

Viewed 80 times

-3

I am developing an application to integrate with Spring ERP V9 and when for the currency table/object and I cannot update the Cdus by the following code.

if (currencyId != 0)
{
     currency.EmModoEdicao = true;

     var fieldToUpdate = new StdBECampos();

     //Update the CDU_Portal 
     fieldToUpdate.Insere(new StdBECampo { Nome = "CDU_Portal", Valor = 0 
});

//Update with data Id on procu4U. 
fieldToUpdate.Insere(new StdBECampo { Nome = "CDU_procu4U_entityId", Valor = currencyId });

                                        PriEngine.Engine.Comercial.Moedas.ActualizaValorAtributos(currencyCode, fieldToUpdate);
                                        PriEngine.Engine.Comercial.Moedas.Edita(currencyCode);
}

I can do it with the same instructions for the drives table. Does anyone know how I can get past it? Thank you!

1 answer

0


Good afternoon, This can be done this way:

currency.CamposUtil.get_Item("CDU_Portal").Valor = 0;
PriEngine.Engine.Comercial.Moedas.Actualiza(currency);
  • Good morning, thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.