How can I iterate over the properties of a container? (horizontal iteration), so I can later define variables to make the iteration over the data?..
I want to do something like this:
String a = item.getItemProperty(first_property).getValue().toString();
String b = item.getItemProperty(second_property).getValue().toString();
String c = item.getItemProperty(third_property).getValue().toString();
...
With all this variables I can later get their values with a normal BeanContainer iteration…
Hi tobias…I’ve being using what you told me here and works perfect…Now, I need to retrieve the first column object, so I can display that only column using table.setVisibleColumns, but I´ve being having some trouble…any idea on how to do it?
Table.getVisibleColumns() should only return the columns that are visible and in the order that they are shown in the table.
However, what exactly are you trying to do? Sounds that you are trying to do things in a hard way and there might have an easier way to do what you want to accomplish.
What I want to do is that from the collection i get using Table.getVisibleColumns(), get the first column and just show that one…It seems simple but for some reson I haven’t being able to do it…
Beware of possible NPEs. If this is not the solution you wanted or you did try this and it didn’t work, at least I will have to see some code to get a better understanding of your problem.