FORMAT(OptionField) Not Displaying Text

eYeeYe Member Posts: 168
Hi

Can anyone please tell me why you can't display the Option Caption in:
MESSAGE('%1', "Document Type"::Order);

//FORMAT doesn't work either
MESSAGE('%1', FORMAT("Document Type"::Order));

The following, however, does work:
GET;
MESSAGE('%1', "Document Type");
Kind Regards,
Ewald Venter

Comments

  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    If you calling format or message passing "Document Type"::Order in fact you're passing a number, some particular value, not a field.

    if you're passing "Document Type" alone, you're passing a field, having some value (which might be for example equal to 2, or Document Type"::Order.

    Regards,
    Slawek
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Sign In or Register to comment.