I reviewed both sites -- thanks very much!
However, I am not sure I can do this using the RPC or calling server side in client side...
Here is what I am doing:
1. User clicks button to call out to a servlet, returning JSON that I grab the name/value pairs from
2. I now have a value I need to populate a field in the document on the client side -- that is, the document has just been created (it is "new") and I need to put a value into a field
From my old Javascript days, I thought you could use:
document.forms[0].thisField.value = "Hello";
To populate a field on a document. Can this be done in XPages?
Something like:
var doc = document.forms[0];
doc.thisField.value = "Hello";
From what I can tell, it looks like the field names (<input>) are dynamically changed when rendered on the web.
Could I use something like:
document.getElementById("thisField").value = "Hello";
Any help would be great...
Thanks!
Dan