Hi All,
I'm trying to delete the specific instance right using gel script, I have tried the options shared in communities but those are not working .
Below is the xml , where in I'm trying to remove the both nodes with ids odf_cst_xyz_res_creation_edit &odf_cst_xyz_res_creation_view
<InstanceRights >
<Right id="odf_cst_xyz_res_creation_edit">
<InstanceObject id="00000095" name="00000095" type="xyz_res_creation"/>
</Right>
<Right id="odf_cst_xyz_res_creation_view">
<InstanceObject id="00000095" name="00000095" type="xyz_res_creation"/>
</Right>
</InstanceRights>
I have tried the below code in gel Script, Please look into this and correct me if i'm doing wrong here.
<gel:set asString="true" select="$result//NikuDataBus/Users/User/InstanceRights/Right[@id='odf_cst_xyz_res_creation_edit']"
var="nodeDelete"/>
<core:set value="${nodeDelete.getParentNode()}" var="parent"/>
<core:set value="${parent.removeChild(nodeDelete)}" var="void"/>
Regards,
Ram Babu