The element type "g2:scope" must be terminated by the matching end-tag "</g2:scope>".

vimal11592
Tera Expert

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

7 REPLIES 7

Jace Benson
Mega Sage

Try changing;


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="jelly:core" xmlns:g2="glide">



To;


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="jelly:core" xmlns:g2="null">


Hi Jace,



Thanks for the reply.



I have tried the suggestion but still getting the same error.



Thanks,


Vimal


Chandu Telu
Tera Guru
Tera Guru

HI Vimal,



Could you please check the highlighted below



do you required to use g2 here


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="jelly:core" xmlns:g2="glide">


Hi Chandu,



I have changed the highlighted line to :



<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="jelly:core" xmlns:g2="null">



But still getting the same error.




Thanks,


Vimal