gr.variables.getElements() in scoped app

maxpower
Tera Contributor

In this documentation there is an example of using gr.variables.getElements(). The example in global scope works fine but not in my scoped app. Is there an scoped equivalent function?

3 REPLIES 3

Harsh Vardhan
Giga Patron

getElement(String fieldName)

Retrieves the GlideElement for a specified field.

Parameter(s):
NameTypeDescription
fieldNameStringA field name
Return:
TypeDescription
GlideElementA GlideElement object
Scoped equivalent:

To use the getElement() method in a scoped application, use the corresponding scoped method: getElement().

Harsh Vardhan
Giga Patron

Phuong Nguyen
Kilo Guru

Hi maxpower,

Harshvardhan provided good information, but essentially gr.getElement() should work in scoped app

Thanks,

Phuong