on 03-13-2008 9:01 AM
hai all,
In database there is a table with data which is split and available in 5 rows.I need to get all these 5 rows displayed in the textedit UI.
When i run a loop only the last row or first row is set in the text edit.
I think array should be used for this but plz help me in creating context attribute for this and getting all the 5 rows displayed in my text edit.
Thanks n Regards
Sharanya.R
Hi ,
1)Create a value Attribute and bind it to textedit.
2)Loop through the table and concatenate all the values to a String variable
String str = " ";
for(int i =0 ; i< <table size> ;i++)
{
str = str + " " +wdcontext.node<table>.get<value>();
}
3) set the str value to tha value attribute.
wdcontext.currentcontextelement.set<valueattribute>(str);
Thanks,
Sunitha Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.