Hi ,
Does anyone have idea on how to disable the options appearing in Action bar in Smart view.
Client wants to hide some of the buttons at system level
@Jan Velas
Any inputs on this?
Hi Youva,
Sorry I was gone on vacation trip across the Europe. 😄
One way I found is complicated and presumably not officially supported by Opentext. (I don't know any better though. 😉)
It assumes you're trying to achieve this using Smart UI SDK and already know how to work with it.
"csui/widgets/nodestable/toolbaritems.masks": { //<-- targets the file which handles masking buttons  "masks": {   "tableHeaderToolbar": { //<-- Name of the "toolbar" we want to control - table header    "blacklist": [     "AddVersion", //<-- Signatures of the "Commands" we want to hide     "Classify",     "Copy",     "Delete",     "Move",     "RemoveClassification",     "Reserve"    ]   },   "inlineActionbar": { //<-- Different toolbar, this one is the one that shows when you mouse over row    "blacklist": [     "AddVersion",     "Classify",     "Copy",     "Delete",     "Move",     "RemoveClassification",     "Reserve"    ]   }  } }
Important notes:
Useful info:
options.collection = new FilteredToolItemsCollection( options.collection, { Â status: status, Â Â commands: this.commands, Â delayedActions: options.delayedActions, Â mask: options.toolItemsMask // <-- HERE is the toolItemsMask object });
I hope this may help you.
Your Smart UI Rubber Duck 🦆
Jan
PS: I think it would be ideal to somehow disable the commands on server side, using OScript, but that is something I never had a chance to try.
Thank you so much for your inputs and efforts.
@Ján Veľas, Can you please let me know if we achieve this for a particular folders alone? Client wants to hide these Copy, Move, Delete for only a particular folder.
Also one more doubt, can we configure the functions menu to remove or add new fields like we do in active view
Hello @bharath_ot,
Client wants to hide these Copy, Move, Delete for only a particular folder.
The best option would be to restrict the user permissions on the mentioned folder. But I assume you cannot do that, since you're asking here. 🙂
Another option is to use the Smart UI SDK to replace the commands' code. I don't know if SDK allows you to easily change the csui (default) commands with new ones.
The way I would do it if there is no better way:
If you need help with that please start a new thread and ping me.
After a long break from the forums, 😴
PS: There is a known bug with the masks (from comment #4) not working in CS 22.1
Opentext kindly provided a patch pat162004803 which should be available in System Center
Hello Jan,
I tried to extend the copylink command but it's not working. I am able to duplicate the copy command but unable to extend.
Hello @mvna,
Let's start a new discussion, please. :-)
This page is about hiding commands in action bar and I don't want to clutter it.
Just ping me in the new thread and I'll try to help.
I am able to achieve this by hiding the existing copy link and create a custom copy link for our customization requirements.
Regards,
Naveen.
@mvna
Congrats on your achievement! Creating Custom Actions on the Smart UI Multi-Select command bar is something I have been after for a while too. Ultimately I want to create Custom Patch that adds/removes new commands and that when clicked would call a WebReport.
(I think it is inappropriate to have to create full on module just to add a button to the screen)
This patch would similar/moddeled
to how you can create Appearances & ActiveViews in the Classic. As I have noted many times on this Forum, the Smart UI has so few entry points into in for the WebReport Developer.
Please see:
https://forums.opentext.com/forums/developer/discussion/309338/nodes-table-real-example#latest
NodesList and NodesTable actually offer a even less Multi-Object commands i(f you are trying build an Aggregate View).
Any chance you share with me the code to extend/control the Smart UI Multi-Select command?
-MC
mike@ggcs.ca
Thanks @Ján Veľas for detailed description.
There is one more area (maybe there are even more like this, e.g. WF task view and similar) where it would be required to hide functions in similar way - metadata header (when you are in properties view or on document overview page and click on function menu).
As it does not have special toolbars I had to omit one level and the code that was working for me (22.4):
"csui/widgets/metadata/header.dropdown.menu.items.mask": {
"masks": {
"blacklist": [
"AddVersion",
...
]
}
And do you know if and how it would be possible to hide properties panels? When OT started to bundle all xECM modules in core, it added some function menu entries (luckily these can be hidden easily) as well as additional property panels. I asked OT if they plan to create some switch to enable/disable these modules (similarly as for WR or RM), but they told me that it is not planned. So, for customers who simply do not use any of xECM functionality, it does not make sense to show XReference panel or similar.
Thanks,
Ugis