Wednesday, April 4, 2012

Different way to get the ViewPanel's Row Value

We have a method- getChildren(), It is used to get the children of our DOM object.

Basically our xpage's back-end code is a DOM object. So we can get the element's value via tree structure. So Everything in our viewPanel is a hierarchy.

We can get viewColumnValue via this tree structure.


var row= getComponent("viewPanel1").getChildren().toArray();
var va="";
for(var i=0;i {
va=va + " - "+ row[i].getValue();
}
return va

No comments:

Post a Comment