Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SmartCard.SplitValues
Split values read from smart card.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SmartCard | 8.5 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |
MBS( "SmartCard.SplitValues"; Input ) More
Parameters
Parameter | Description | Example |
---|---|---|
Input | The hex encoded input string. |
Result
Returns JSON or error.
Description
Split values read from smart card.Files on smartcard can contain key/value data.
Returns JSON with an object containing numbers as text (key) and values as text.
Sample for JSON result:
{
"128": | "MILLER, JOE", |
"130": | "19651201", |
"131": | "123456789012", |
"132": | "\u0001" |
Starting with version 10.0 we hex encode binary data instead of assuming it's UTF-8.
Examples
Split file data:
Set Variable [ $json ; Value: MBS("SmartCard.SplitValues"; Card::FileData) ]
If [ MBS("IsError") ]
Set Field [ Card::JSON ; "" ]
Else
Set Field [ Card::JSON ; MBS("JSON.Colorize"; $json) ]
End If
See also
Release notes
- Version 10.0
- Changed SmartCard.SplitValues to hex encode binary values.
- Version 8.5
- Added SmartCard.ReadFile and SmartCard.SplitValues functions to read data from various smartcards (e.g. Swiss Health Insurance Card or Belgian Identity Card).
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 9.6pr2
- Read patient name from Swiss Health Card
- MBS FileMaker Plugin, version 8.5pr3
- New functions for smart card reading
This function checks for a license.
Created 19th October 2018, last changed 6th December 2019