on 05-02-2007 11:26 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Hi Venkatesan,
If u got the solution.plz give rpl ASAP.I have same requirement .
Thanks,
kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.