DataGrid Navigation to a Specific View

Hi everyone!

I’m trying to implement a navigation functionality in a UI Page, and I was wondering if anyone could help me.

I have a Data Grid where each row represents a Process Activity ¶. I want to add a column that allows users to navigate to the Checklist Instance associated with each PA.

To achieve this, I created a Custom Type Template (Kendo) using cmf-core-controls-dataGrid-navigation, passing the entity and its ID as parameters.

This works correctly, but it always redirects me to the View page of the Checklist Instance.

My question is: Is there a way to configure the navigation destination so that, instead of opening the Checklist Instance’s View page, it redirects directly to its Perform page?

Has anyone done something similar or knows if this is possible?

Thanks in advance!

Hi! Yes, you can use the url attribute on cmf-core-controls-dataGrid-navigation to override the default destination and navigate directly to the Perform page:

<cmf-core-controls-dataGrid-navigation
    type="EntityType"
    entityType="ChecklistInstance"
    id="#: data.ChecklistInstance.Id #"
    name="#: data.ChecklistInstance.Name #"
    url="/Entity/ChecklistInstance/#: data.ChecklistInstance.Id #/Perform">
</cmf-core-controls-dataGrid-navigation>

Just adjust data.ChecklistInstance.Id and data.ChecklistInstance.Name to match the fields available in your Data Grid.

Hi @Carlos_Samouco
I was checking this with @Beatriz_Lira , and we were not able to find this attribute in the devtools because we have more than 1200 matches for the selector “cmf-core-controls-dataGrid-navigation”
Is this available somewhere?
Also, we only need the id. @Beatriz_Lira will share the final solution.
Best Regards,
João Querido

Hi Carlos Samouco,

First of all, thank you for your help!

In my final solution, I didn’t need to include the ChecklistInstanceName, since I’m only displaying an icon in the grid rather than the Checklist Instance name.

Here’s how my cmf-core-controls-dataGrid-navigation is configured:

<cmf-core-controls-dataGrid-navigation
    type="EntityType" entityType="ChecklistInstance"
    id="#: data.ChecklistInstanceId #"
    url="/Entity/ChecklistInstance/#: data.ChecklistInstanceId #/Perform">
</cmf-core-controls-dataGrid-navigation>

Thank you!