- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2016 09:42 AM
Help!
Anyone know how to do a not equal to in a situation like this?
Thanks!
- James
Code |
---|
<j:if test="${jvar_sc_request.approval != 'requested'}"> <g:inline template="item_workflow.xml" /> </j:if> |
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2016 11:01 AM
Hi James,
Your syntax is correct and you should be able to use a != in that jelly. I would make sure that jvar_sc_request is an object and not just a sys_id and that it has an approval property.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2016 11:01 AM
Hi James,
Your syntax is correct and you should be able to use a != in that jelly. I would make sure that jvar_sc_request is an object and not just a sys_id and that it has an approval property.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2016 11:04 AM
Thanks Brad, that's exactly what it was.
I was using jvar_sc_request but it didn't exist in that context, at least not in the form I expected.
I changed it to the below and got it working.
Cheers,
- James
<td class="sc_os_stage" colspan="1">
<j:choose>
<j:when test="${req.approval == 'requested'}"><img src="SMSE_WaitingForApproval.png" width="20" height="20"/> $[SP] ${gs.getMessage('request_awaiting_approval_by')} ${req_approvers}</j:when>
<j:otherwise>
<g:inline template="item_workflow.xml" />
</j:otherwise>
</j:choose>
</td>