cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Asset Manager - Hide ToolbarItems on Code

julio-silva
Explorer
0 Kudos

Hi Experts,

I hope you're all well! I'm having some issues when trying to hide Toolbar Items on code. Basically i want to hide the toolbar item after running some code. Below you have the code to check if i'm doing something wrong, i though that i should use the same approach as the "setEditable" command, but that does not work.

The commented line was also a test that i made to try, it will go to the rule below. But it doesn't work either.

Is anything i'm missing, or i need to approach this in a totally different way?

Thank you very much for your support.

Best Regards,

Júlio Silva

View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert

I did some checking. Currently setVisible for toolbar items is not supported.

We are working to add that for our next release. You can use setEnabled to enable or disable an item but will need to use the second code sample you included to get to the toolbar item. We also have a backlog to improve accessing the toolbar item but that will be for a further out release.

julio-silva
Explorer
0 Kudos

Hi bill.froelich, Good Morning,

It's sad to hear that. But we'll need to manage it that way.

Thank you very much for your support!