cancel
Showing results for 
Search instead for 
Did you mean: 

How to make PrintButton invisible

Former Member
0 Kudos

Hi,

my requirement is to print the view. For this I used PrintButton UI. It is working fine but it is printing PrintButton also along with view. Can you please tell me how to make PrintButton invisible while printing? or any suggestions for printing the view?

Message was edited by:

Shyam Prasad

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186016
Active Contributor
0 Kudos

Hi Shyam,

Is there any UI element like PrintButton or you making a button that invokes pritning of the view.

If it is second one you can create a preview print page where the button is invisible, and call the printing function in the inbound plug of the view.

Regards,

Ashwani Kr Sharma

Former Member
0 Kudos

Hi,

Yes I am using UI element PrintButton. But for my requirement I think PrintButton is not appropriate as it prints the printbutton also. Can u give me any suggestions for printing the view.

Former Member
0 Kudos

Hi ,

Check this..

.Seems it wont work with the higher versions.

And ... since there does not seem to be any event handler present for this.. it would not be possible to hide it.. !

Regards

Bharathwaj

Former Member
0 Kudos

Hai,

create a context attribute XX > type>dictionarysimple type>com.sap.ide.webdynpro.uielementdefinitionsVisible.

bind it to button visibility property

In your code simply

wdContext currentContextElement.setXX(WDVisibility.NONE);

see this.

https://forums.sdn.sap.com/click.jspa?searchID=2637607&messageID=3338612

Regards,

naga