
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2017 12:54 PM
I know that when in global you use setDisplayValue() to set the password and that works fine, however in a scoped app setDisplayValue() is not an option.
How do I do this? setValue() does not work, nor does gr.password = "blah";//with an gr.update() after it.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2017 03:04 PM
So the answer I found out is you have to use GlideElement.
Setting display value in scoped apps.
So this works:
var gr = new GlideRecord("sys_user");
gr.get(some_sys_id);
gr.user_password.setDisplayValue("test");//useing glide Element
gr.update();
This does NOT WORK
var gr = new GlideRecord("sys_user");
gr.get(some_sys_id);
gr.setDisplayValue("user_password", "test");//useing glideRecord
gr.update();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2017 03:04 PM
So the answer I found out is you have to use GlideElement.
Setting display value in scoped apps.
So this works:
var gr = new GlideRecord("sys_user");
gr.get(some_sys_id);
gr.user_password.setDisplayValue("test");//useing glide Element
gr.update();
This does NOT WORK
var gr = new GlideRecord("sys_user");
gr.get(some_sys_id);
gr.setDisplayValue("user_password", "test");//useing glideRecord
gr.update();