In XPages, I have :
one field, id is "ATR_TEST"
one field, id is "inputText32"
a button, id is "button9", value is "Save"
After I input a price on "inputText32" and click the "Save", the price will be shown on "ATR_TEST", the "inputText32" and "Save" will be hidden.
I already complete :
input a price on "inputText32" and click the "Save"
price will show on "ATR_TEST"
"inputText32" and "Save" will hide
Need to do :
Click the "Save" will save this price in the database and leave this document.
The following is "Save"'s code :
var x = getComponent("inputText32").getValue();
getComponent("ATR_TEST").setValue(x);
var a:javax.faces.component.UIComponent = getComponent("inputText32");
var b:javax.faces.component.UIComponent = getComponent("button9");
a.setRendered(false);
b.setRendered(false);
if(getComponent("ATR_TEST").getValue()!= ""){
document1.save();
}