Error accessing this.Documentpending property Type

Asked

Viewed 108 times

1

I would appreciate possible help to overcome the mistake:

this.DocumentPendente.Typentity = 'This.DocumentPendente.Typology' generated an exception of the type 'Microsoft.CSharp.Runtimebinder.Runtimebinderexception'

Code:

public class PayablesReceivables : EditorPendentes
{
    public override void AntesDeGravar(ref bool Cancel, ExtensibilityEventArgs e)
    {
        try
        {
            PSO.Dialogos.MostraAviso(this.DocumentoPendente.TipoEntidade.ToString());
            if ((PSO.Utils.FStr(this.DocumentoPendente.TipoEntidade) == "B") && (PSO.Utils.FStr(this.DocumentoPendente.Tipodoc) == "TLDEP"))
            {
                this.DocumentoPendente.ContaBancaria = this.DocumentoPendente.Entidade;
            }
        }
        catch (System.Exception ex)
        {
            PSO.Dialogos.MostraErro(ex.Message, StdPlatBS100.StdBSTipos.IconId.PRI_Exclama, "");
        }

        base.AntesDeGravar(ref Cancel, e);
    }
}
  • Hello @Raposo. Are you sure the error is there? It is that the line that is giving error does not appear in your code. Besides, at this point, I don’t think anything is wrong there (at least in terms of the type of data).

  • Hello. The desired customization is basically what I published. Usings and namespace "namespace primavera.Logistics.Extensibility are missing". I’ve got some code in the sales editor and I’ve only got this one in the pending editor.

  • Right, but in which line does the error occur? You have debug to try to understand?

  • @Fox This is a problem of spring, the object that is available for use in PEX is not exposed in the base class. Must be reported to spring.

No answers

Browser other questions tagged

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