cancel
Showing results for 
Search instead for 
Did you mean: 

Binding templateSource for PDF

Former Member
0 Kudos

I have the same data I need in 5+ forms, but there are graphical differences in each one. I thought I would just create the 5+ PDF forms then dynamically bind the templateSource attribute to the proper string, but this attribute is not bindable.

What is the alternative?

Thanks,

Josh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Within an IF first_time eq ABAP_TRUE.....ENDIF in the WDDOMODIFYVIEW, you have to take a reference to the class cl_wd_interactive_form.

Then you have to get reference to the interactive form uielement that you have embedded by lo_ref ?= view->get_element( 'INTERACTIVEFORM_UIELEMENT_NAME ).

You can make use of the method set_template_source to bind the form template dynamically.

The most common scenario is, you have a single interface which is being used by several form templates. In such a case the above approach is feasible.

Regards,

PRosenjit.

Answers (0)