on 12-07-2005 8:39 PM
Hello.
Is it possible to implement a function in dynpro which opens the current view in a new popup window (for print).
The function should be triggerede by a simple button.
In my view thw enduser will type in data in UI elements. I would like the data also to be displayed in the pop up window which opens.
Hi
Printing is not supported in WebDynpro. If you try to create a modal window then also print will not be possible.
You can try the following. It should work but i have not tried it personally.
Say your WD Component has Window1 with View1.
create Another window Window2 with View2.
Scenario is true only if the following condition is met.
Assuming that View2 contains display only data when the window loads.
Create a iFrame in View2. The source property of iFrame type the following javascrip:window.print();
then save. Now call View2 in window2 from View1 using CreateExternalWindow() method.
Now at the time of loading the screen you will get the standard print window popup of the browser and when you say print it will do a screen print.
Remember if you load the screen and then try to call the print window on click of a button it will not work as the control will not know which window to refer to.
That is the reason i have said try with a External Window as it will be a new Browser window and the control will load the standard print popup.
Anyway try it out and let me know if that worked.
regards
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jerry Larsen,
-o WebDynpros for ABAP, please go through
--o http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/content.htm
--o http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/content.htm
-o WebDynpros for Java,
--o http://www.adobe.nl/pdfs/7_SAP.pdf
--o http://homepages.wmich.edu/~e3freder/project2.htm
--o others /people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
Hope this helps you!,
Rgds,
Sreenivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How to start the Print Function in webdyn pro
if anybody knows explain to me one by one
i.e from the beginning.
B'cos i want to take the print
already i posted this Q?
so for i didn't get clear idea about the print
Regards
Dhinakar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
For print a content of a node i implemented a function that creates an html based on my node content then creates a resource with the html and then opens an external window that will content this html. In the external window will have the print function of the browser or can create a link that call the window.print() javascript function.
Best Regards.
Gregory.
hi jerry,
In the event handler of the button.To open a popup window u write the following code in that event handler.
IWDWindowInfo w=wdComponentAPI.getComponentInf().findInWindows("windowname");
IWDWindow win_obj=wdComponentAPI.getWindowManager().createWindow(win,true);
win_obj.open();
This will open the popup window.For using the same current view in that window.First u create the new window(popup window)in windows option in explorer view. In that window u embed the current view in that.
For the value enter in the popup(user data) to be transfered to main view , u use the component controller.u create value attribute in both view of same type and also in component controller. in the property tab of both view define the use of component controller in both views. map the value attribute in view to component controller attribute.
This will solve ur problem.
For more reference check this link
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on server-side eventing - 14.htm
for further reference check this link
Hope this helps u,
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jerry
Look this link
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/profile?userid=1324291">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/profile?userid=1324291</a>
BR
Evgeny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.