cancel
Showing results for 
Search instead for 
Did you mean: 

How to export Context data into PDF?

Former Member
0 Kudos

Hi All,

I would like to know how to convert the data displaying in a table to be exported into PDF when user clicks a button called " Export to PDF". I am using WebDynpro For Java.

Please suggest me some good tutorials/steps to be followed.

Thanks in Advance.

Regs/Venkat

Message was edited by:

Venkatesan Selvaraj

Accepted Solutions (0)

Answers (4)

Answers (4)

amolgupta
Active Contributor
0 Kudos

hi,

all the UI elements in the adobe form are generally connected to your web-dynpro Context.

whatever you type in the online adobe form is reflected in the respective context attributes of the dynpro Context of the view where "ur Interactive form UI element is".

that means you can yourself fill the contents of ur interactive form by working on the get/set methods of the context attributes.

Likewise you can clear the form by setting all context attributes to blank eg ""

<b>interactive form has two imp properties:-</b>

<b>*dataSource</b>

data source points to the node all whose context attributes will be made available in the interactive form

<b>*pdfsource</b>

points to the context attribute which will hold the pdf.

note that the type of this pdfSorce attribute will be binary.

if you still have doubts.

give me your gmail mail id. i 'll send a tutorial.

with regards,

-ag.

Former Member
0 Kudos

Hi ag,

I hope u understand my problem.I executed Bapi.That result displayed in table ui element.Here table mapping is done by dynmically.I completed That table data to ExcelFormat.I trouble with exporting PDF format.

For that i created pdf source attribute in view context type binary.I added supply function in sorce context property.

I'm facing problem at binding table with interactive form ui element.

Please send the tutorial to santhosh.donthula@ril.com.

Bye,

santhosh.

Former Member
0 Kudos

Hi Venkatesan,

If u got the solution.plz give rpl ASAP.I have same requirement .

Thanks,

kumar

Former Member
0 Kudos

Hi Venkatesan,

-You can solve this by creating value attributes under a TestNode(ValueNode).

-Map this to node to componenet controller.

-Set the pdfsource property of interactive form to this valuenode

-set pdfobject too.

-Edit the interactive form and bind the context with UI elements in adobe .

-Now for the button in the webdynpro call an event

setExportPdfData()

wher you can set the values to the node elements .

wdContext.nodeTestNode.currentContextElement.setpdfData("xyz");

Cheers

Swathi

Do offer pts:-)

Former Member
0 Kudos

Hi Venkatesan,

try this link:

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#pdf">WebDynpro Howtos Using Interactive Forms</a>

This helped me a lot.

Greetz,

Mike