cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically adding TextViews in a table cells

Former Member
0 Kudos

Hi,

I'm developing a webdynpro java application.

I must read data from database and create table (html table dynamically), and put textviews into table cells dynamically.

I must put data that read from database into textviews.

I know reading from database, but i do not know creating html table and textviews into cells dynamically.

How can i do that?

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member197348
Active Contributor
0 Kudos

Hi Cemil Bozlagan,

Why do you want to create the table dynamically?

Usually dynamic programming is not preferable because it affects performance and increases complexity to your application. Most of the scenarios we can handle with static programming though they seem to be dynamic.

Some of the possible scenarios:

Create a node that the type of database table and bind it to the table created in design time.

if your table size varies dynamically, you know framework will handle this.

If the database table fields are fixed but the fields to be displayed vary in run time. We can handle this using visibility property.

If the database table fields are not known until runtime then you need dynamic programming to create the context and table.

Check this [link |http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/6fdae690-0201-0010-a580-d104b459cb44&overridelayout=true]for dynamic context programming.

Check this [thread |;as well.

feel free to revert if you get any problem in implementation.

Regards,

Siva

Former Member
0 Kudos

I don't understand your question. If you read the data from a model and have a Table UI element bound to the corresponding context node, everything happens automatically. No need to "add TextViews to table cells."

Armin