14 hours ago14 hr Some barcode types like QR-Code support structured appends. That means you can have a series of barcodes and carry metadata to identify them as belonging to the same series. And each of them carries the index within the series and the number of barcodes in total. For example you may have 1 or 3, 2 or 3 and 3 or 3.Our MBS FileMaker Plugin handles this with the Barcode.GenerateJSON function. You pass the StructuredAppend option with the JSON object containing index, count and Id entries for the series. The index is one based up to the value in count. Please note that the ID is limited to a few characters or numbers and this depends on the barcode type. Structured append is supported for PDF 417, MaxiCode, QR-Code, DataMatrix, Micro PDF 417, Aztec, HIBC, Dot Code, CodeOne, GridMatrix and Ultra barcode types.Let's take a script like this to generate a barcode:Set Field [ Barcode Generation JSON::Image ; "" ] Set Variable [ $img ; Value: MBS("Barcode.GenerateJSON"; Barcode Generation JSON::JSON) ] If [ MBS("IsError") = 0 ] Set Field [ Barcode Generation JSON::Image ; MBS( "GMImage.WriteToPNGContainer"; $img; "barcode.png") ] Set Variable [ $r ; Value: MBS( "GMImage.Release"; $img ) ] Else Show Custom Dialog [ "Failed to create barcode" ; $img ] End IfAnd pass in the following JSON:{ "symbology": "QRCode", "Text": "https://www.monkeybreadsoftware.com/filemaker/", "Scale": 4, "Option1": 2, "StructuredAppend": { "Index": 3, "Count": 4, "Id": "123" } }Please try the function in MBS FileMaker Plugin 16.0 or later. If you implement TarDoc in Swiss for Tiers-Garant Rechnungen, you may need this to make the required barcodes.
Create an account or sign in to comment