Scoped GlideRecord - getAttribute(String fieldName)

Returns the dictionary attributes for the specified field.

Table 1. Parameters
Name Type Description
fieldName String Field name
Table 2. Returns
Type Description
String Attribute values

doit();
function doit() {
  var gr = new GlideRecord('sys_user');
  gr.query("user_name","admin");
  if (gr.next()) {
    gs.print("we got one");
    gs.print(gr.location.getAttribute("tree_picker"));
  }
}