Get XPage Field Value via Server-Side JavaScript

Mindwatering Incorporated

Author: Tripp W Black

Created: 08/19/2010 at 02:55 AM

 

Category:
Notes Developer Tips
XPages

Issue:
How do you get and set a fieldvalue on a Xpage field via JavaScript?

Solution:
Use getComponent() like so:
var myfldval = getComponent("MyFldElementID").getValue();
...
getComponent("AnotherElementID").setValue("NewStringValue");
...


previous page