You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.
I have been working very recently with the dashing framework. I was displaying a list of tasks assigned to a team. Till now, It was only one team to list and no issues so far. Now I have a set of teams & I want to display data based on data-id from .erb file. For example, the below is my erb sample.
<html>
<li data-switcher-interval="20000" data-row="2" data-col="3" data-sizex="2" data-sizey="1">
<div data-id="Team A" data-view="List" data-title="Bugs Trend for Team A" data-moreinfo="" data-top-margin="10"></div></li>
</html>
I wrote a scheduled job to get the list of all teams into an array in jobs.rb. Is there a way to send data-id to jobs.rb file, so I can filter the values from the array and call the event.
Regards,
Kalyan
The text was updated successfully, but these errors were encountered:
Hi Kalyan,
maybe I missed it, but where is the dynamic part of it?
If you specify a static ID in your .erb file, then you always will see the data for that ID, e.g. Team A in your example.
What is your goal?
A single widget showing the tasks of all teams, e.g. rotating (showing one team at a time)
A dedicated widget for each team
A widget on a universal dashboard that displays the tasks of a team based on some context information
(1) and (2) are trivial. For (1) you can send the corresponding data by the server's background job on a schedule. For (2) you would have a dedicated widget ID for each widget and the job sends the corresponding data to the widget IDs.
For (3) you could work with a request parameter that dynamically sets the ID of the widget in the .erb file, e.g. data-id="tasklist_<%= params[:team] %>". The background job would send data (send_event) to IDs it can generate from the data it read, e.g. targetWidgetID = "tasklist_" + $team.
Hi,
I have been working very recently with the dashing framework. I was displaying a list of tasks assigned to a team. Till now, It was only one team to list and no issues so far. Now I have a set of teams & I want to display data based on data-id from .erb file. For example, the below is my erb sample.
I wrote a scheduled job to get the list of all teams into an array in jobs.rb. Is there a way to send data-id to jobs.rb file, so I can filter the values from the array and call the event.
Regards,
Kalyan
The text was updated successfully, but these errors were encountered: