Hello Creatio Community,

I am looking to set up a chart widget that can be dynamically filtered based on values from other fields on the same dashboard. Specifically, I want the chart, which is connected to the Case object, to update its data when a user selects a value from a dropdown field (for example, an Account field related to the Case). This would allow users to filter the chart data according to the field they select, providing a more tailored and interactive experience.

Any guidance on how to achieve this dynamic filtering within the dashboard would be greatly appreciated!

Like 0

Like

2 comments

Instead of adding a lookup, use a quickfilter component. I believe as long as you're on 8.1.4 or higher you can have that filter a chart elements directly.

Ryan Farley,

Hi Ryan,

Thank you for your insightful advice. 

Show all comments

I have chart widget into page

 

modules: /**SCHEMA_MODULES*/{
			"Chart452beb29-7161-4b29-9f9d-f83d29ce5fc7": {
				"moduleId": "Chart452beb29-7161-4b29-9f9d-f83d29ce5fc7",
				"moduleName": "CardWidgetModule",
				"config": {
					"parameters": {
						"viewModelConfig": {
							"widgetKey": "Chart452beb29-7161-4b29-9f9d-f83d29ce5fc7",
							"recordId": "23ec46b0-0c9f-46d2-8b2d-b292c90aa7ad",
							"primaryColumnValue": {
								"getValueMethod": "getPrimaryColumnValue"
							}
						}
					}
				}
			}
		}

I want to change the filter so that the filtering takes place on a specific collection of records that comes from the web service

ex filter

id = ["23ec46b0-0c9f-46d2-8b2d-b292c90aa7ad", ["452beb29-7161-4b29-9f9d-f83d29ce5fc7"]

I could not find the table where the filtering settings for the Chart are stored

Where can I find the information I need?

Like 0

Like

3 comments

Hello,

 

The settings of the widget can be found in the SysWidgetDashboard table (for example using the "recordId" parameter (in the code provided the Id is "23ec46b0-0c9f-46d2-8b2d-b292c90aa7ad" and the query should be:

 

SELECT * FROM "SysWidgetDashboard"

WHERE "Id" = '23ec46b0-0c9f-46d2-8b2d-b292c90aa7ad'

 

)). The filtration is stored in the "Items" column of the table. The problem here is that there is no way to dynamically pass Ids to this column. You can only try sending an UPDATE query (using Terrasoft.UpdateQuery sent from the client-side) to the SysWidgetDashboard table and this column and modify the "Items" column content of the widget once you receive a response from your webservice. This is the only way I can see here and it should be tested.

 

Best regards,

Oscar

Hi is their any update in on  how to setup a dynamic filter for chart widget

 

Pranshu Basak,

Since version 8.0.9 this option is available. You must first configure the widget and then a list will appear in the right panel (if it is a chart, for example), and there you can set up a connection with the page or another component on the page:

Show all comments