cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Offline Interactive Form

Former Member
0 Kudos

Hi,

I was wondering if it as possible to increase number of rows of the table element in the interactive form using the wdDoInit() method? Thanks in advance

Regards,

William

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Thx for helping.. I have been looking through the codes that you have given but i do not really understand it. Do you mind explaining?

Regards

Former Member
0 Kudos

Sure you can, if you bind the table to the table node in your context, you can add a row doing the wdDoinit of wdDohandleresult.

something like:


data: ls_line type string,
        lt_line type table of string.

do 10 times.
  append ls_line to lt_line.
enddo.

data: hdl_node TYPE REF TO if_wd_context_node,
      node_pd_line TYPE REF TO if_wd_context_node.

* set single attributes
  hdl_node = wd_context->get_child_node( name = 'PDFDATA' ).
  hdl_node = hdl_node->get_child_node( name = 'FORMDATA' ).

  node_pd_line = hdl_node->get_child_node( name = wd_this->wdctx_hv_line ).
  node_pd_line->bind_table( lt_line ).