Skip to content

Instantly share code, notes, and snippets.

@manvillej
Created July 22, 2019 17:28
Show Gist options
  • Save manvillej/ab7137ae80a9ed2dc962ab3b56a6fda7 to your computer and use it in GitHub Desktop.
Save manvillej/ab7137ae80a9ed2dc962ab3b56a6fda7 to your computer and use it in GitHub Desktop.
bad ui page
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:evaluate var="jvar_models" object="true">
var gr = new GlideRecord("cmdb_hardware_product_model");
gr.addEncodedQuery("cmdb_model_category=b9eb7414c3031000b959fd251eba8fe5"); // category is iphone
gr.query();
gr;
</g:evaluate>
<j:while test="${jvar_models.next()}">
<j:if test="${jvar_models.getValue('description')!=''}">
<g2:no_escape>${jvar_models.getValue('description')}</g2:no_escape>
</j:if>
</j:while>
</j:jelly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment