on 07-05-2006 4:51 AM
Hello All,
I have a table with N columns (N to be determined dynamically). In each row, I have to display N different images in the corresponding N columns. The requirement could be pictorially depicted like this.
Table
-------------------------------------------------------
Name | Span 1 | Span 2 | Span 3 | Span N |
-------------------------------------------------------
T1 | Image 1 | Image 2 | Image 3 | Image N |
-------------------------------------------------------
T2 | Image 4 | Image 5 | Image 6 | Image M |
-------------------------------------------------------
:
:
TN
Since N is known only at runtime, I think I have to create N attributes dynamically and bind them to the table cell editor. I would like to know if this dynamic creation of attributes could be avoided, since it is a overhead (N is customizable and can be greater than 100 as well) .
Any pointers will be highly appreciated.
Thanks,
Bala
Bala,
You are on the right way: giving your requirements to have up to 100 columns dynamic context / ui manipulations is the only valid option, and it is not that complex.
If you have, say, up to 10 columns, then it would be simpler to create all 10 attributes and 10 columns, and then manipulate columns visibility. But in your case go ahead with dynamic programming.
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bela,
If you happen to use Web Dynpro ABAP, go for the MultiPane. You will be able to declare everything statically at design time. Using dynamic programming won't be needed then.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.