The element type "g2:scope" must be terminated by the matching end-tag "</g2:scope>".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2017 08:21 AM
Hi
I am trying following to read the data from the table and display in pop up:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="jelly:core" xmlns:g2="glide">
<style>
tr.buttons{height:10px;}
</style>
<g:ui_form>
<g:evaluate var="jvar_short_text" expression="RP.getWindowProperties().short_text" />
<g:evaluate
var="jvar_bot_id"
object="true"
expression="RP.getWindowProperties().bot_id" />
<g:evaluate var="jvar_gr" object="true">
var gr = new GlideRecord("x_14768_catalyst_bot_library");
gr.addQuery("bot_id", "${jvar_bot_id}");
gr.query();
gr;
</g:evaluate>
<j:while test="${jvar_gr.next()}" >
<g:evaluate object="true" var="jvar_items" expression="${jvar_gr.getValue('params')}" />
<p>"${jvar_rows}"</p>
<j:forEach items="${jvar_rows}" var="jvar_param" indexVar="i">
<g:evaluate jelly="true" object="true">
var botparam = jelly.jvar_param.label;
var botName = jelly.jvar_param.name;
</g:evaluate>
<p>${botparam}</p>
<p>${botName}</p>
</j:forEach>
</j:while>
</g:ui_form>
</j:jelly>
But while running this code I am facing the issue The element type "g2:scope" must be terminated by the matching end-tag "</g2:scope>".Can someone please help me to fix the issue or guide me to resolve this.
Thanks,
Vimal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 03:57 AM
Check with this one
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 03:58 AM
This code is not throwing any error
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<style>
tr.buttons{height:10px;}
</style>
<g:ui_form>
<g:evaluate var="jvar_short_text" expression="RP.getWindowProperties().short_text" />
<g:evaluate
var="jvar_bot_id"
object="true"
expression="RP.getWindowProperties().bot_id" />
<g:evaluate var="jvar_gr" object="true">
var gr = new GlideRecord("x_14768_catalyst_bot_library");
gr.addQuery("bot_id", "${jvar_bot_id}");
gr.query();
gr;
</g:evaluate>
<j:while test="${jvar_gr.next()}" >
<g:evaluate object="true" var="jvar_items" expression="${jvar_gr.getValue('params')}" />
<p>"${jvar_rows}"</p>
<j:forEach items="${jvar_rows}" var="jvar_param" indexVar="i">
<g:evaluate jelly="true" object="true">
var botparam = jelly.jvar_param.label;
var botName = jelly.jvar_param.name;
</g:evaluate>
<p>${botparam}</p>
<p>${botName}</p>
</j:forEach>
</j:while>
</g:ui_form>
</j:jelly>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 04:27 AM
Hi Chanu,
Thanks for the reply.
I was facing the same issue with the above-suggested code.After removing few lines from the code that issue has been resolved but not getting any data in botparam and botName.
Following code worked:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<style>
tr.buttons{height:10px;}
</style>
<g:ui_form>
<g:evaluate var="jvar_short_text" expression="RP.getWindowProperties().short_text" />
<g:evaluate var="jvar_bot_id" object="true" expression="RP.getWindowProperties().bot_id" />
<g:evaluate var="jvar_gr" object="true">
var gr = new GlideRecord("x_14768_catalyst_bot_library");
gr.addQuery("bot_id", "${jvar_bot_id}");
gr.query();
gr;
</g:evaluate>
<j:while test="${jvar_gr.next()}" >
<j:forEach items="${jvar_gr.getValue('params')}" var="jvar_param" indexVar="i">
<g:evaluate jelly="true" >
var botparam = jelly.jvar_param.label;
var botName = jelly.jvar_param.name;
</g:evaluate>
<p>${botparam}</p>
<p>${botName}</p>
</j:forEach>
</j:while>
</g:ui_form>
</j:jelly>
Can you please help me to resolve the issue.${jvar_gr.getValue('params')} has the following value :
[{"name":"incident_sysid","label":"Incident sysid","type":"text","default":"859245f94ffe7e80c5a3c3818110c7fc"}]
From this, I am trying to read the label and name but not able to do so far.
Thanks,
Vimal