Sometimes form code will not update in the Lines even though if you do the correct set-ups and selected form code in Orders and Invoices.
Right.
Have seen that Form Code (Field of the Purchase Header & Sales Header Table) has the Field level property :
TableRelation = IF (C Form=CONST(No)) "State Forms"."Form Code" WHERE (State=FIELD(State),Transit Document=CONST(No),C Form=CONST(No)) ELSE IF (C Form=CONST(Yes)) "Form Codes".Code WHERE (C Form=CONST(Yes))
and C/AL Code :
Form Code - OnLookup()
IF "C Form" THEN
FormCodes.LookupFormCodes("Form Code")
ELSE
StateForms.LookupStateForm(State,"Form Code")
??
If we remove the Code from the Form Code - OnLookup() then it will work perfect .
Comments
Sometimes form code will not update in the Lines even though if you do the correct set-ups and selected form code in Orders and Invoices.
Right.
Have seen that Form Code (Field of the Purchase Header & Sales Header Table) has the Field level property :
TableRelation = IF (C Form=CONST(No)) "State Forms"."Form Code" WHERE (State=FIELD(State),Transit Document=CONST(No),C Form=CONST(No)) ELSE IF (C Form=CONST(Yes)) "Form Codes".Code WHERE (C Form=CONST(Yes))
and C/AL Code :
Form Code - OnLookup()
IF "C Form" THEN
FormCodes.LookupFormCodes("Form Code")
ELSE
StateForms.LookupStateForm(State,"Form Code")
??
If we remove the Code from the Form Code - OnLookup() then it will work perfect .