Initial Release
Datatype class that can be extended from or used directly.
It supports validation of property values using regular expression.
It supports additional validation of property values using a string to indicate the classmethod to call.
It supports a stripping sequence for automatic value cleanup.
The property can be configured with a explicitly set regular expression
or the reference to a global node containing the regular expression,
which can then be changed without the need to recompile.
The additional validator can also be configured to read from a global similar to the regular expression.
The value cleanup can also be configured to read from a global similar to the regular expression.
zpm “install baasvancodeza-iris-smart-string”
The usage sample is available in the GitHub repo
git clone https://github.com/baasvancodeza/iris-smart-string.git
docker-compose build
docker-compose up -d
docker-compose exec iris iris session iris -U IRISAPP
s ^SysConfig("IDNumberRegex") = "^\d{13}$"
s ^SysConfig("LastNameCleanup") = "$lb($lb(""<=>W"","""",""""),$lb(""*C"","""",""""),$lb(""*P"","""",""- '""))"
Do ##class(baasvancodeza.Demo.RunDemo).Run()
s ^SysConfig("IDNumberRegex") = "^\d{13}$"
s ^SysConfig("LastNameCleanup") = "$lb($lb(""<=>W"","""",""""),$lb(""*C"","""",""""),$lb(""*P"","""",""- '""))"
Do ##class(baasvancodeza.Demo.RunDemo).Run()
The Demo showcases the following features
First Phase
Second Phase
Third Phase
Finally
Path | Purpose |
---|---|
/src/baasvancodeza/DataTypes | Source to use and include in your deployment |
/src/baasvancodeza/Demo | A demonstration of usage |
Work throught he Demo package to see implementation examples.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the https://github.com/baasvancodeza/iris-smart-string/blob/main/LICENSE file for details.
Initial Release