Skip to Content
0
Former Member
Jun 05, 2009 at 08:24 AM

Table shows content, but says it has no columns

35 Views

Hello everyone,

In my wdDoModifyView() method, I have the following code:

if (firstTime) {
    wdThis.wdGetContactenController().getContacten();
    int size = tHistorisch.numberOfColumns();
    wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Cols = '"+size+"'");
}

In this, tHistorisch is an IWDTable. The data is retrieved in the controller's getContacten() method, which as you can see, is called. When run, it shows content (28 rows worth, in fact) so the DataSource is valid, and the table has the 10 columns that I gave it when I used Apply Template. Yet, the output of the above code is:

Cols = '0'

Can anyone shed any light on this? Thanks in advance.

Regards,

Kars Meyboom.

Edited by: Kars Meyboom on Jun 5, 2009 10:25 AM