Automated data file name in a sequence - Preventing use of slash symbol
I created the attached sequence to allow a colleague to travel to a remote site and collect some data for analysis back in the office. The sequence prompts him to enter the vehicle serial number which is then used at the start of the filename to identify the file.
However, he decided to enter a description of the vehicle, not just the serial number and his description included the / slash symbol.
Because Dewesoft then tried to create and save a file with a / in the name it has failed and not recorded anything. According to my colleague, and verified by myself just now, no warning was displayed to indicate that the file was not recorded.
Unfortunately this means he has to travel to the remote site again and perform the test once more.
Is there anyway in a sequence that I can warn the user if they have used the / symbol in the input field?
Attached files:
Automotive Application Engineer
Dear Phil,
There is no such condition available in the sequencer for checking the text but it does make sense to add it. We will check how soon this can be implemented and let you know when this is done.
Best regards,
Primoz
Automotive Application Engineer
Dear Phil,
We have added a new condition in the form block - Validation expression. Please refer to the attached image. With the regular expression syntax you can define exactly which character are allowed and the length of the expression (more info about regular expression syntax here).
With the expression in the screenshot ^[a-zA-Z0-9]{1,12}$ we have defined:
- small characters a-z
- capital letters A-Z
- numbers 0-9
- length of text from 1 to 12 characters.
If you need a fixed length of 10 characters, the expression would be:
^[a-zA-Z0-9]{10,10}$
This update will be available in the next build SP10 RC14. Please check the downloads page for the update.
Best regards,
Primoz
Attached files: