new page
previous pages
The purpose of this page is to test / demonstrate how to get at the values on an Xpage
###########################################################################################
Combo Box
1) For a new document an onchange event is required before the value can be accessed by any formula.
2) The getSubmittedValue only works if the "Do not validate or update data" property is set on that event
3) For an existing document the .getValue and getItemValueString methods will read the initial value
4) The update can be triggered by any event so a button can update all of the fields
update all
###########################################################################################
No field events
Value1
Value2
Value3
getComponent(
"comboBox1").getValue();
getComp
onent("comboBox1").getSubmittedValue()
currentDocument.getItemValueString("field1") **
Onchange full update ( note that this will affect all other fields on the form )
Value1
Value2
Value3
getComponent("comboBox2").getValue();
getComponent("comboBox2").getSubmittedValue()
currentDocument.getItemValueString("field1_1") **
Onchange partial update restricted to the field itself ( note that this will affect all other fields on the form )
Value1
Value2
Value3
getComponent("comboBox4").getValue();
getComponent("comboBox4").getSubmittedValue()
currentDocument.getItemValueString("field1_3") **
Onchange partial update restricted to this panel ( note that this will affect all other fields on the form )
Value1
Value2
Value3
getComponent("comboBox5").getValue();
getComponent("comboBox5").getSubmittedValue()
currentDocument.getItemValueString("field1_4") **
Onchange full update ( note that this will affect all other fields on the form )
Do not validate or update data
Value1
Value2
Value3
getComponent("comboBox3").getValue();
getComponent("comboBox3").getSubmittedValue()
currentDocument.getItemValueString("field1_2") **
** this is the filed name on the back end form
###########################################################################################
Edit Box - behaves just the same as acombo box
###########################################################################################
No field events
getComponent(
"inputText1").getValue();
getComp
onent("inputText1").getSubmittedValue()
currentDocument.getItemValueString("inputText1")
Onchange full update ( note that this will affect all other fields on the form )
getComponent("inputText2").getValue();
getComponent("inputText2").getSubmittedValue()
currentDocument.getItemValueString("inputText2")
Onchange full update ( note that this will affect all other fields on the form )
Do not validate or update data
getComponent("inputText3").getValue();
getComponent("inputText3").getSubmittedValue()
currentDocument.getItemValueString("inputText3")
Save document
Summary :
If it is a new document then