Skip to Content
0
Former Member
Aug 06, 2008 at 08:34 PM

Facing issue in iterator class

21 Views

Hi Experts,

I am facing issue in RENDER_CELL_START method in Interator Class.

I got all the records from the collection wrapper. for each row contins 10 columns. I am using the Case statment to process the each column. Issue i am facing is it is taking only first reocrd. How to we can achive to get the all the records including first record.

Here is the code:

TRY.

  • get entries

wrapper = gr_context_node->get_collection_wrapper( ).

ENDTRY.

  • CHECK wrapper IS BOUND.

CREATE OBJECT lr_rpl_type.

CASE p_column_key.

WHEN 'NAME'.

IF wrapper IS BOUND.

lr_entity ?= wrapper->if_bol_bo_col~get_next( ).

name = lr_entity->get_property_as_string( iv_attr_name = 'NAME').

CONCATENATE

'&nbsp;<a style="font-size:8pt">'

name

'</a>'

INTO name.

lr_rpl_type->add( html1 = name ).

p_replacement_bee = lr_rpl_type.

ENDIF.

************

*****************

Endcase.

I am doing anything wrong here.

Could you please help me to resolve this issue.

Regards,

Srini