cancel
Showing results for 
Search instead for 
Did you mean: 

View dynamic pdf in webdynpro.

Former Member
0 Kudos

Hi everyone

I 've a problem showing dynamic pdf form in a view.

First time it shows the first pdf ;

second time if I try to show another existing pdf,it shows the first pdf;

data: lo_nd_pdf_form = wd_context->get_child_node( name = wd_this->wdctx_pdf_form ).

DATA l_pdf_xstring1 TYPE xstring.

DATA wa_pdf_form TYPE wd_this->element_pdf_form.

DATA tb_pdf_form LIKE TABLE OF wa_pdf_form.

DATA lo_nd_pdf_form TYPE REF TO if_wd_context_node.

DATA lo_el_pdf_form TYPE REF TO if_wd_context_element.

MOVE l_pdf_xstring1 TO wa_pdf_form-form.

MOVE 02 TO wa_pdf_form-visible.

APPEND wa_pdf_form to tb_pdf_form.

lo_nd_pdf_form->bind_table(

EXPORTING

new_items = tb_pdf_form

set_initial_elements = abap_true ).

Thanks a lot.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try this.... set the set_initial_element as abap_false.

lo_nd_pdf_form->bind_table(
EXPORTING
new_items = tb_pdf_form
set_initial_elements = abap_false ).

Former Member
0 Kudos

Did you try clearing the context and trying again

Former Member
0 Kudos

Hi ,

I try with method invalidate on context node where I create the attribute xstring for pdf-form, but it failed.

Former Member
0 Kudos

I try to launch the application trough another web browser like "Firefox", and the application is ok;

Damn't.