Import Optional fields using Interop SDK for AR

SUGGESTED

Hi, Can any one help on this optional field in .Net API

Problem: Optional field can't be inserted. Only the tick mark can be viewed in AR invoice entry UI screen

Source code:

ARINVOICE1detail4.RecordClear();
ARINVOICE1detail4.RecordCreate(ViewRecordCreate.NoInsert);
ARINVOICE1detail4.Process();
ARINVOICE1detail4.Fields.FieldByName("CNTLINE").SetValue(0, false);
ARINVOICE1detail4.Fields.FieldByName("OPTFIELD").SetValue("YEAR", false);
////ARINVOICE1detail4.Read(false);
ARINVOICE1detail4.Fields.FieldByName("VALIFTEXT").SetValue("2021", false);
ARINVOICE1detail4.Insert();
ARINVOICE1detail4.Read(true);
ARINVOICE1detail4.RecordCreate(0);

Parents
  • 0
    SUGGESTED

    I've got the C# code for this as I did just the same yesterday. Django is correct though as you need to set the swset value and then before you insert check the exists value. If true then call update instead. You don't need to set cntline. I don't use the valindex field but I'll check that out later. I'll be back online here later today

Reply
  • 0
    SUGGESTED

    I've got the C# code for this as I did just the same yesterday. Django is correct though as you need to set the swset value and then before you insert check the exists value. If true then call update instead. You don't need to set cntline. I don't use the valindex field but I'll check that out later. I'll be back online here later today

Children