This script creates local constant variable whose datatype contains of textIDs from tmx file.
- Text system file (tmx) has to be under ST program folder.
- Script creates .typ and .var files under program folder. Filenames match tmx file.
- Script finds tmx with specific prefix and creates:
- Datatype: Member name is set by text file 'TextID' and description by language 'en'. Value is set by 'text system path', this is optional.
- Variable: Constant of type of newly created datatype. Default values are mandatory to set here.
- Using language defined in script, if system language is not the same in all configurations
Put this file in path: '[ProjectName]/Logical/Scripts/MsgSysScript.ps1'.
Enable powershell scripting (open powershell termianal):
- Type: 'Get-ExecutionPolicy -list'. 'CurrentUser' or 'LocalMachine' should be 'RemoteSigned'
- Allow policy, type: 'Set-ExecutionPolicy RemoteSigned -Scope CurrentUser' (or -Scope LocalMachine)
- NOTE: Windows or IT can block powershell scripting
To allow prebuild in Automation Studio:
- Open menu "Project - Change runtime versions", open tab "Build events".
- Add to box "Configuration Pre-Build Step": '$(AS_PROJECT_PATH)/Logical/Scripts/MsgSysScript.ps1 -prebuild'