on 07-13-2011 7:09 PM
Hi,
I'm using Netweaver 7.02. I inserted a custom button 'PRINT' and on click <Component-controller>-print_page() is executed. After printing Web Dynpro ABAP view, the button 'PRINT' shows up in the print out. Is there a way to make the custom print button invisible before printing?
Thanks.
Hi Df,
Create one attribute of type WDUI_VISIBILITY and bind this to PRINT button VISIBLE property.
In your button action before printing code...first write code to invisible button by using SET_ATTRIBUTE method
passing value '01' for invisible '02' for visible.
wd_context->set_attribute(
name = 'VISIBLE' // your attribute name here..
value = '01' ). // for invisible
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Kris and Srinivas.
I tried unsuccessfully to make the button visible after the PRINT event by immediately changing the visibility attribute in event handler. Addig an additional 'Refresh' button will work to bring back the 'Print' button but it's bit user unfriendly. I hope there will be a better solution in future by SAP. One of the solution can be like FileUpload UI element which automatically adds an input field and BROWSE button. Similarly, there can be a 'PRINT' UI element which will popup the print window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Kris,
By setting the visibility attribute of the 'PRINT' button to '01' just before printing was able to hide the button during print out. However, when I closed the popped up print window without printing; or after printing when the it goes back to the page, the page understandably does not have the PRINT button anymore. The question is after printing or after closing the popped up Print window, is there anything that we can do to refresh the page so that the PRINT button becomes visble again.
Thanks.
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 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
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.