Dashboard Engines Conflict – TreeEngine and OverviewEngine Data Loading Issue

Hi,
I defined a dashboard page where I want to use ContentEngine , OverviewEngine , and TreeEngine to load different content. However, the data for the tree is not loading, and it seems that the request is not being sent. When I remove the OverviewEngine , the tree works as expected. It also seems that having two different overviews on the same dashboard doesn’t work either. Are there any limitations in this regard?

This is the request that simply isn’t sent when I integrate the OverviewEngine , but is sent correctly when I remove it:

[
    {
        "jsonrpc": "2.0",
        "method": "QUERY",
        "id": "tree",
        "params": {
            "query": {
                "targetDocumentModel": "Location_DM",
                "projectionName": "document",
                "constraint": {
                    "operator": "not",
                    "operand": {
                        "operator": "has",
                        "relationshipModel": "UserLocation",
                        "targetRole": "Location",
                        "maxDepth": 0
                    }
                },
                "paging": {
                    "pageNumber": 0,
                    "pageSize": 100
                },
                "links": [
                    {
                        "relationshipModel": "UserLocation",
                        "targetRole": "User",
                        "maxDepth": 2,
                        "fields": [
                            "/user/username"
                        ]
                    }
                ]
            }
        }
    }
]

This is an excerpt from the PreviewApp_AM.json;

[
  {
	"layout": {
	  "settings": {
		"rows": [
		  {
			"columns": [
			  {
				"width": {
				  "sm": 12,
				  "md": 12,
				  "lg": 6
				}
			  },
			  {
				"width": {
				  "sm": 12,
				  "md": 12,
				  "lg": 6
				},
				"rows": [
				  {
					"columns": [
					  {
						"width": {
						  "sm": 12,
						  "md": 12,
						  "lg": 12
						}
					  }
					]
				  },
				  {
					"columns": [
					  {
						"width": {
						  "sm": 12,
						  "md": 12,
						  "lg": 12
						}
					  }
					]
				  }
				]
			  }
			]
		  }
		]
	  },
	  "name": "Dashboard"
	},
	"type": "REGION_CLEAR"
  },
  {
	"type": "VIEW_ADD",
	"name": "ContentEngine",
	"models": [
	  {
		"modelType": "content",
		"name": "WelcomePage_CM"
	  }
	]
  },
  {
	"type": "VIEW_ADD",
	"name": "OverviewEngine",
	"models": [
	  {
		"modelType": "overview",
		"name": "UserAssignedProjects_OM"
	  }
	]
  },
  {
	"type": "VIEW_ADD",
	"name": "TreeEngine",
	"models": [
	  {
		"modelType": "tree",
		"name": "Location_TM"
	  }
	]
  }
]

Thanks for your support!

Foued

Hi @foued-soft-queue, to display the Overview Engine and the Tree Engine in a dashboard, we need to use the Multiple Activities dashboard. Since the preview app only supports a single-activity dashboard, it’s not possible to add multiple engines to a dashboard.
Please read the guide in the [Client Sample application]<INTERNAL_LINK> (go to UI handling → Layout → Dashboard Layout → Multiple Activities).

I followed the guide and can show 2 overview engines and 1 tree engine in the dashboard

Note:

  • You can try it with the project template.
  • The layout for the dashboard in your example is not in the correct grid structure.

Hi @minh-firm-chasm,

Thank you for your prompt reply. That helps me a lot.

Foued

Hi @minh-firm-chasm

Just as a suggestion:

Wouldn’t it be easy to turn the Preview App into a multiple activities dashboard? I think that would be a good workspace example for the Preview App.