Hello,
As I'm facing the problem of validation during user input in the value filed in the table. I want to limit the user to a particular format. For example I have values to be input by the user of type sec, temperature, time(HH:MM) and true or false. So Please let me know which function in the WinCC OA helps me to limit the user to enter the particular format in the value field.
Please suggest.
BR,
Avinash H.
09844727753
Solution to implement the particular cell in the table column to a different formats.
- avinash.h@siemens.com
- Posts:6
- Joined: Mon Feb 20, 2017 5:44 am
Solution to implement the particular cell in the table column to a different formats.
- Piterskiy
- Posts:46
- Joined: Wed Jul 09, 2014 12:44 pm
Re: Solution to implement the particular cell in the table column to a different formats.
If you are using 3.15, regexpIndex() function could really help you
In the previous versions I see only a cropped analog - patternMatch()
Best Regards
Vladimir Izrailev
In the previous versions I see only a cropped analog - patternMatch()
Best Regards
Vladimir Izrailev
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Solution to implement the particular cell in the table column to a different formats.
There is no direct way to define an arbitrary input format.
You can only define the cell/column format to be either int or float which internally sets a validator on input so you can not enter some letters.
For a bool in a cell, the table will automatically show a checkbox and with cellWidgetRC you can also define a combobox for the selection of predefined values.
What you can do is to check the entered value when the user presses enter (on finishing the edit - in the clicked script)
You can only define the cell/column format to be either int or float which internally sets a validator on input so you can not enter some letters.
For a bool in a cell, the table will automatically show a checkbox and with cellWidgetRC you can also define a combobox for the selection of predefined values.
What you can do is to check the entered value when the user presses enter (on finishing the edit - in the clicked script)