Posts

Showing posts with the label Barcode

D365FO- X++ Code logic to show values as Bar code

Image
 X++ Code : Class ShowBarcodes { public static BarCodeString ShowBarcode(str _text)         {             Barcode barcode;                  barcode = Barcode::construct(BarcodeType::Code128);             barcode.string(true, _text);             barcode.encode();                  return barcode.barcodeStr();           } } Assigning barcode to the string field: Syntax :  Table name . fieldname = Classname:: methodname (parameter value) E.g :  Ewaybill. Ewaybarcode =showbarcodes::ShowBarcode(SalesLine_in.EWayBillNo); output :