on 03-31-2008 9:01 AM
I've used the below code to populate 3 rows , but at run time first row will be empty after that next 3 rows will be populated.
Why its not starting from the first row?
for(int i=0;i<wdContext.nodeEmp().size();i++){
IPrivateLogin_DCView.IEmpElement empele= wdContext.nodeEmp().getEmpElementAt(i);
if(i==0){
empele.setEmp_name("Deepa");
empele.setEmp_age("35");
empele.setEmp_no(" 1");
}
if(i==1){
empele.setEmp_name("Raju");
empele.setEmp_age("32");
empele.setEmp_no("INFO 1");
}
if(i==2){
empele.setEmp_name("Rose");
empele.setEmp_age("42");
empele.setEmp_no("454 ");
}
}
Hi,
change the cardinality of the node from 1..n to 0..n
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.