[Kr...] Posted April 27, 2023 Share Posted April 27, 2023 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 More sharing options...
[Ka...] Posted April 27, 2023 Share Posted April 27, 2023 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 More sharing options...
[Gu...] Posted April 27, 2023 Share Posted April 27, 2023 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in