Question

Hello everybody!

I am trying to inactivate the ootb dcm case for the opportunity object, as we have created 2 dcm cases of our own. But anything that I have tried was unsuccessful. When transferring the package from testing environment to pre production environment, even though I can find our custom dcm cases, the ootb dcm is set for all records.

How can I achieve this?

Thank you.

Like 1

Like

2 comments

Hello Maria, 

 

Please check the below thread where the similar question have already been discussed:
https://community.creatio.com/questions/retain-active-state-dcm-differe…
Please let us know in case of additional questions. 

 

Best regards,
Anastasiia

Anastasiia Zhuravel,

Hi Anastasiia, thank you for your reply. Both dcm are set on the same column. What else can I do?

Show all comments

Hello,

 

I need to build a scenario where the user can perform a task by directly clicking on the "Complete" button of a User task on the DCM, without having to choose an Activity result in the subsequent pop-up. 

In other words, the "Complete" button should directly perform the desired action. 

 

Could anyone please guide me on how such a functionality could be achieved. 

Thank you.

Following is the screenshot for reference:

Like 0

Like

3 comments

Hello Rahul,

 

You need to override the onExecuteButtonClick method of the ActivityDashboardItemViewModel schema and use the logic similar to the next one:

 

1) Get the activity Id using ESQ

2) Set the "Completed" status for this activity

 

We don't have a code example of this logic implementation and you will need to create your own code to achieve the task.

 

Best regards,

Oscar

Oscar Dylan,

Hello Oscar,
Thank you for the response.

I tried to proceed with your suggestion. However, I can see that the ActivityDashboardItemViewModel schema is not replaceable.

I have following questions in this regard:

1) Could you guide me on how to proceed with overriding the above method, and will doing so require replacing the ActivityDashboardItemViewModel schema or I will have to create a new schema altogether?

2) Also, just to have a guidance on one of the alternative approach that I had tried, I tried assigning the activity as "Completed" by going into the advanced mode of the activity setup, in the DCM, however that did not seem to work. So, was I also doing something similar to what you had suggested above but in a different way, or are these entirely different solutions?

Following is the screenshot for your reference of the above mentioned alternative:

 

Thank you in advance.

 

Rahul Kumar,

 

The ActivityDashboardItemViewModel is a view model and Ryan Farley created a perfect article that explains how to correctly replace modules (see his comment here https://community.creatio.com/questions/replacing-client-module). You need to replace the ActivityDashboardItemViewModel in the same way.

 

The second approach you tried should set the result to "Completed" by default so it's not a solution in the case when a user should click a "Completed" button and this action should set the "Completed" status for the activity.

 

Best regards,

Oscar

Show all comments