How to pass parameters to a dashboard widget?

Status
Not open for further replies.

Incred

Member
Jun 25, 2023
53
0
6
51
Creating a generic dashboard widget is documented and we have created a few simply by using the url containing the php script to run.

fusionpbx=# select dashboard_name,dashboard_path from v_dashboard; dashboard_name | dashboard_path --------------------+------------------------------------------------------------- Call Center Agents | app/call_centers/resources/dashboard/call_center_agents.php Call Forward | app/call_forward/resources/dashboard/call_forward.php Device Keys | app/devices/resources/dashboard/device_keys.php Domain Limits | app/domain_limits/resources/dashboard/domain_limits.php Caller ID | app/extensions/resources/dashboard/caller_id.php Ring Group Forward | app/ring_groups/resources/dashboard/ring_group_forward.php Switch Status | app/switch/resources/dashboard/switch_status.php System Status | app/system/resources/dashboard/system_status.php System CPU Status | app/system/resources/dashboard/system_cpu_status.php System Counts | app/system/resources/dashboard/system_counts.php New Messages | app/voicemails/resources/dashboard/voicemails.php Missed Calls | app/xml_cdr/resources/dashboard/missed_calls.php Recent Calls | app/xml_cdr/resources/dashboard/recent_calls.php


Widget.png

Some dashboard widgets require parameters and I am unsure of how to pass these parameters when creating a dashboard widget, such as the active call centre:

Widegt2.png
 
Last edited:
Status
Not open for further replies.