Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
SmartCard.SplitValues
Split values read from smart card.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| SmartCard | 8.5 | Yes | Yes | No | Yes | No |
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
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
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).
Created 19th October 2018, last changed 6th December 2019
SmartCard.SetAttribute - SmartCard.Status
Feedback: Report problem or ask question.
Links
MBS FileMaker blog