Invalid condition in htpml
search cancel

Invalid condition in htpml

book

Article ID: 244668

calendar_today

Updated On:

Products

CA Service Desk Manager

Issue/Introduction

Custom Analyst role created to allow access to specific ticket types and request areas.

 

std.log 

ERROR  parse.c  8968 Unable to evaluate PDM_IF at xx_wf_tab.htmpl[108] due to invalid condition:  "NonPROD" != "" && (("NonPROD" != "StdAddRMNCSN") || ("NonPROD" != "STDAWSRMNCS"))

 

 

Environment

Release : 17.3

Component :

Cause

Invalid syntax used in xx_wf_tab.htmpl

Resolution

Error received when evaluating statement

</PDM_IF>
<PDM_IF "$args.category" != "" && "$args.category" != "StdAddRMNCSN" && "$args.category" != "STDAWSRMNCS">
<PDM_IF "$prop.form_name_3" != "edit"  && $args.status == "OP">
<PDM_MACRO name=button Caption="Insert Tasks[I]" Func="do_insert_tasks()" hotkey_name="Insert Tasks[I]" ID=btn909 Width=120>
<PDM_ELSE>
<PDM_MACRO name=button Caption="Insert Tasks[I]" Disabled=yes Func="do_insert_tasks()" hotkey_name="Insert Tasks[I]" ID=btn909 Width=120>
</PDM_IF>
<PDM_ELSE>
<PDM_MACRO name=button Caption="Insert Tasks[I]" Func="do_insert_tasks()" hotkey_name="Insert Tasks[I]" ID=btn909 Width=120>
</PDM_IF>
<PDM_MACRO name=btnEndRow>

Corrected by separating the IF statements like the example below:

<PDM_IF "$prop.form_name_2" == "iss" || "$prop.form_name_2" == "chg" || "$prop.form_name_2" == "cr" || "$prop.form_name_2" == "in" || "$prop.form_name_2" == "pr" || "$prop.form_name_2" == "approval_console">
 <PDM_IF "$args.category" != "" && "$args.category" != "StdAddRMNCSN" && "$args.category" != "STDAWSRMNCS">
  <PDM_MACRO name=tabBanner title="Classic Workflow Tasks - not ootb" add_btns=true>
 <PDM_ELSE>
  <PDM_MACRO name=tabBanner title="Classic Workflow Tasks" add_btns=true>
 </PDM_IF>
<PDM_ELSE>
  <PDM_MACRO NAME=tabBanner title="Workflow Tasks">
</PDM_IF>

Additional Information

Custom modifications aren't supported