Automated data file name in a sequence - Preventing use of slash symbol

  • Software
  • Automated data file name in a sequence - Preventing use of slash symbol
Phil Gooch

Posted on 07.04.2017 01:46

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?


Primož Gorenšek
Automotive Application Engineer
Posted on 10.04.2017 14:34

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

Phil Gooch

Posted on 11.04.2017 06:32

Thank you.

Primož Gorenšek
Automotive Application Engineer
Posted on 14.04.2017 09:19

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:
Login to reply to this topic. If you don't have account yet, you can signup for free account .