Add a menu item in workflow attachment using "Workitem Attachment ToolbarItem"
Options
- I am trying to add an existing command in a menu item to the smart UI attachments (workflow) panel.
- In csui-sdk 20.3 and 20.4 has the feature to extend the menu options using the workitem.attachments.toolbaritems extension. (ref: csui-sdk-20.4.0\lib\src\workflow\widgets\workitem\workitem.attachments\workitem.attachments.toolbaritems.md)
- According to the “workitem.attachments.toolbaritems.md”, need to register the addition toolbaritem under the “workflow/widgets/workitem/workitem.attachments/toolbaritems” extensible module.
- I have created the attachment.toolbaritem.js file for existing command and registered it in extension.js file to add it in workflow attachment panel.
- If I inspect my registration through “../app/config”. It registers correctly.
- However, my menu entry is not shown in the attachments.
- I have an existing command correctly registering in the toolbars and working correctly in the browse table view.
- I can see request being issued to “api/v2/nodes/actions” when I invoke the item toolbar in the attachments, but cannot see my command signature/key
- When “api/v2/nodes/actions” call first time, it is passing default actions in form data/body
- On second time, it passed remaining actions, but did not have the additional toolbaritem which I have added.
- I think it refers to the commands which mentioned in “workitem.attachments.view.js” and divided the commands in “nonPromotedActionCommands” and “promotedActionCommands” (csui-sdk-20.4\lib\src\workflow\widgets\workitem\workitem.attachments\workitem.attachments.view.js)
0
Comments
-
Hi @Disha Patel , were you able to resolve this scenario?
0
Categories
- All Categories
- 108 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management