Quantcast
Channel: Ivanti User Community : Popular Discussions - All Communities
Viewing all articles
Browse latest Browse all 2325

Window calculation help!!!

$
0
0

Morning All


I'm having some serious issues with my calculation, I  have read through the Dynamic windows document and appreciate that it is an overview of "Boo" within Service Desk however I could do with some pointers or advice. I have the following window design within my survey. What I want to happen is the feedback field at the bottom to be hidden unless any of the answers to the questions above are set to 1,2 or 10. Then if they are the feedback option is to be visible and set to mandatory.

 

None of the options are mandatory/hidden at the moment.

 

Below my window you can see my calculation and the error I get and I have no idea how to move forward. As you can see I have 4 questions set at the moment I am testing it against 1 question until I get it right. Thanks in advance.

 

 

import System

static def GetAttributeValue(_IncidentSurveyv2):

  _IncidentSurveyv2._Feedback = true

  _IncidentSurveyv2._Feedback = false

  if _IncidentSurveyv2._Question1  <'3' or '>9'

  return String.Format(":SetHidden(_Feedback, {0});:SetMandatory(_Feedback,{1});",_IncidentSurveyv2._Feedback,_IncidentSurveyv2._Feedback)

Boo Error calc.PNG

 

Boo error wind.PNG

StuMcNeill any advice on this?

 

Nay


Viewing all articles
Browse latest Browse all 2325

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>