Skip to Content
0
Former Member
Apr 05, 2006 at 07:25 AM

Getting attributes in web design api method

18 Views

Hello gurus,

is it true that in the method "start" of a web table class it is not possible to get the value of an attribute of a characteristic? i.e.

LOOP AT n_r_data_set->N_SX_VERSION_20A_1-AXIS_DATA INTO axis_data.

LOOP AT axis_data-SET INTO set.

LOOP AT set-ATTRIBUTES INTO attrs.

  • here attrs caption is always empty

ENDLOOP.

ENDLOOP.

ENDLOOP.

but later in the characteristic_cell method there i find the correct values in c_cell_content!

and a second question: what would be the correct way to get the number of columns of the table? currently i do it like this:

LOOP AT n_r_data_set->N_SX_VERSION_20A_1-AXIS_INFO INTO axis_info.

IF axis_info-axis = 0.

columnCount = axis_info-ncoords.

columnCount2 = columnCount + axis_info-NCHARS.

ENDIF.

ENDLOOP.

but although columnCount is the correct number of data columns, columnCount2 is not the correct number of all columns including the characteristics. only if these columns do not display key+text or any attributes this number is correct. so what would be the correct way to get the number all columns of the web table in the method "start"?

thanks in advance for your help