cancel
Showing results for 
Search instead for 
Did you mean: 

Database display

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Dont reply for this threads it seems to be a point hunting between vinoth sekar and Noel Maria Deepak Iruthayaraj

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.sdn.folder.sdn...

Hope some moderators see this .

Regards

Ayyapparaj

Former Member
0 Kudos

Hi

Thank you

I want to dispaly the text of next row in next line

regards

Vinoth

Former Member
0 Kudos

Hi

You are using textEdit and want to wrap the next column data to next line. If so, then use the following link:

Regards

Noel

Former Member
0 Kudos

Hi

Otherwise

Repalce " " with '\n'

str = str + '\n' +wdcontext.node<table>.get<value>();

.

Regards

Noel

Former Member
0 Kudos

Hi,

Just append "\n" after each row of data and finally set it to the attribute of textedit.

thanks & regards,

Manoj

Former Member
0 Kudos

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);

Regards

Noel