Jump to content

userfields.ini ok-nok


---
 Share

Recommended Posts

Hi, I need to use OK or NOK result function in userfields. Is there such a function?

My second question, I need an attribute feature option in the report OK - green NOK - red

Thx
Link to comment
Share on other sites

Hi Krzystof

Please sign in to view this quote.

Well, I do not understand why you want to have a OK/NOK as a protocollhead param... The querey about such variables is invoked before a programm is started..
Yes, you can define your own variable in userfields.ini. It make sense to check the content using type,maxlength if you want a user input. Or define a SelectiveList and define a default value which is more stable.
If you use PiWeb the next task is to try to implement the new protocollhead param to your PiWeb Template.

Please sign in to view this quote.

Do I understand right: You want to have a red/green dot in the report depending on whether the protocol head variable is OK or NOK?
I think this should be possible if you use conditional statements which check your variable about content of "OK" or "NOK"

Skeleton sample which is NOT the correct PiWeb Syntax...
if( ${Qdb.Property("u_MYOK")} == "OK")
display green button
else
display red button

Regards
Karsten
Link to comment
Share on other sites

An alternative would be to use the accept / block button (as ok / not ok).
Works in StandardProtocl.ptx, Interactive StandardProtocol.ptx and AcceptProtocol.ptx
In the StandardProtocol.ptx the + magnifying glass appears automatically when errors are found. Clicking on the + magnifying glass shows the error locations 882_0a4117bc329921bd0bf710c722006f6d.png
882_35bfcf9e4cc2ad7bfc6e8aaf3afb7e01.png
882_d327f8f7310d1c2037e93bd2551efbe1.png
Link to comment
Share on other sites

 Share

×
×
  • Create New...