How to customize Worklist control in K2 smartforms? - workflow

I am using worklist control in my form to follow the work processes in case of forms. And i want to customize this control. It has a default format that allows to right click, select next step in the list directly, open form or view flow as follows.
http://i.stack.imgur.com/YsmtT.jpg
But, i need to disable that submenu. Instead of that, when i double clicked on a work, it must be open the form directly. And the user must see the form before approved certainly. The thing that i wanted is a simple difference. But designer doesn't allow to change. Can i edit this situation somehow?
Is that possible?
Thanks.

There's currently no way of customising the worklist control that is out of the box.
However, you can build your own worklist control using this broker available on the community.
http://community.k2.com/t5/K2-blackpearl/Worklist-Service-Broker/ba-p/889
The worklist broker will generate SmartObjects that allow you to wired them to a list view.

The latest version of K2 (4.6.11) allows a little more configuration of the Worklist control. You may choose the buttons and columns that are displayed by default.

If you want to create custom worklist in K2 Designer. Firstly, create SMO from Worklist Service. Then you have to make custom SP for generate data and 1 folio column folio. Finally, Create SMO from SP step 2 and associate it using SMO edit in K2 Designer.

Related

Create Plugin behind a custom button in Dynamics CRM

I have a requirement that is needed a plugin in Dynamics CRM.
I want to create a plugin on the phonecall entity and after a click on the custom button, the plugin will create an incident with data of phonecall. how can do this please help me? I didn't find any solution or tutorial video on the internet that can help me to implement this requirement.
Before you get into custom coding a plugin, you might want to consider whether you an out-of-box workflow or Power Automate Flow to do what you need.
Whatever automation you choose, you could have it trigger on the setting of a two options field or a change in the Phone Call's status.
You can use Ribbon Workbench to add a custom button and JavaScript to set that checkbox. Or, JavaScript could directly launch the workflow.
The PCF Gallery also has a number of button options which might be easier than the "DIY" option of Ribbon Workbench.
If you definitely need the plugin, you could register the plugin to fire on change of the checkbox, and again use a button to check on the checkbox.
Speaking of actions, you could also publish your Phone Call to Incident logic as a custom action and have the button call that action.
As you can see, there are plenty of options. It is typically a good idea to explore using configurable options like Power Automate Flow and PCF Gallery controls before custom coding a plugin.

Ag-Grid. How to send slots to "ag-side-bar"?

I have a tool panel and I want to send slot (e.g. <h1>Edit table columns</h1>) to above of the search input. Is there any way to do this?
Unfortunately at this time there's no way to inject HTML inside the standard columns tool panel.
If you'd like to do that you'll have to build your own tool panel component and use that instead of the default column tool panel. You can do that using the approach described here:
https://www.ag-grid.com/javascript-grid-tool-panel-component/

How do I publish just 1 HTML file in author instance of aem server?

I want to create a simple HTML file
/content/1.html
in the author instance in the aem server and publish it. How should I publish it - either through the UI or command-line is fine?
Two options for easier, to handle from browser itself,
1) Go to tree activation page and select the page path which you want to activate and click on the Activate button use the check boxes ( Only Modified, Only Activated, Ignore Deactivated) according to your need,
2) Go to crx/de console select the page that you want to activate under the content node. use the right side Replication Tab Replicate button to replicate the node.
Note that when using this node level replicate action you need to
activate all the child/individual nodes that are required to your page
content.
There are several other ways of doing replication by code, CURL, etc. as which one to use depends on your comfort levels.
package manager Image
Simplest ways are already mentioned above but i am mentioning one more way .
check it out if you are more comfortable with it.
You can replicate it or publish your file using Package manager.
1.Goto http://localhost:4502/crx/packmgr
2.Goto your package[/content/1.html] and edit it.
3.Save it and choose the replicate option under the more tab.
In the page side kick, you click on properties then "activate"

Adobe CQ - CQ5 - Limit a component to only being usable on a given page template

I am developing components for CQ5 and wish to control them so that component A is only displayed in the sidekick if the page is of template T_A, and components B and C are only visible if the page is of type template T_B, however I have so far not been able to find a set of properties to allow this.
Does anyone know of any way to achieve this functionality?
I am also able to retrieve the page template in code via the use of
currentPage.getProperties().get("cq:template", "").equals(MyTemplate) however, once I have not been able to find a way to control sidekick component visibility.
I have also attempted variation on Disabling The Components Tab, however this too has met with no success (even at the level of disabling the entire components tab).
This feature is baked into CQ5 and requires no special coding. The general way of controlling what components are visible in the side kick (specially what components are allowed for a given parsys) is controlled via a design. The remainder of my answer is based on the assumption that you have no special requirement other than controlling what components are allowed for a parsys (i.e no run time requirements).
The components (or component groups) allowed for a parsys are stored in the design of the site . You can control this behavior by editing the design dialog of the parsys.
The steps for achieving this are as follows
Go to design mode by clicking on the ruler icon at the bottom of the side kick
Click on edit button of the required parsys
Check the components required from the allowed component list
The allowed components are stored on per template basis. Since this data is stored in a design , all the pages must have the same design. The design must be exported too, for this to work across instances [ref : https://stackoverflow.com/questions/17049259/limiting-allowed-components-in-a-template-in-cq5
]

Clarifications on the Domo dashboard

The tool I'm using to develop a dashboard is Domo Centerview builder. The graphs are not getting loaded when I open the dashboard but it appears only after selecting the controls.
controls like check-box, radio-buttons , radio-group and drop down lists should be placed independently. It should not come under any KPI's if u place it inside any KPI's it wont take the data until some event happens in the dashboard
I assume you are talking about Domo here - which is used to build business intelligence dashboards.
Any graph you create using the analyzer goes to your overview page. You can then move the graphs/cards to the page that you want.