Get Values from UI Page

praneeth24
Kilo Contributor

This is my UI Page.

var json = new Packages.org.json.JSONArray();

    while (jelly.jvar_diag.nextNode()) {

          var diagNode = jelly.jvar_diag.getNode();

          var jsonNode = new Packages.org.json.JSONObject();

          jsonNode.put("name", diagNode.name);

          var vals = new Packages.org.json.JSONArray();

          jsonNode.put("values", vals);

 

      addValueToJSON(vals, "Statistics For", diagNode.stats['instance_name']);

  addValueToJSON(vals, "Build Name", diagNode.stats['glide.build.name']);

  addValueToJSON(vals, "Build Date", diagNode.stats['glide.build.date']);

I need to get the value for Statics for and insert it in an another table.I am able to insert the record but the value is not coming as expected it is undefined.

Anyhelp would be appreciated

10 REPLIES 10

Can you explain what the purpose of this UI page is? I'm not able to determine exactly what it is you are trying to accomplish or why you are using an UI page to do it. It may not be the proper solution. If I understood the problem/objective/business case, I might be able to help.


I need to make a report in stats.do page.So I was trying to use a UI page


As far as I know, stats.do is not something you can extend to include reports from other areas. Are you trying to report on the information FROM stats.do?


Yes I am.I am making use of sys_cluster_state table's stats xml field to get the data to UI page and tried to create a record in a custom table and then push a report from there


any idea on this ctomasi?