Resource Tracking

trying to give the user a status of our Dock loading doors, Available, Not Available. Would like to be able to display this horizontally on a page or all pages if possible.

we have over 30 door and when a truck is parked there, Not Available(red background), if no truuck parked Available(green Background).

I look at the resource component but its setup to manage resources as in a schedule. These doors are not scheduled by appointment.Im going to drive the status via a nother related table that holds the status of the orders, so when loading the order, not available and driver leaves, becomes available.

Also looked at HTML but not sure how to present it horizontally or update the color of the cell based on the status..

Any Help to point me in a direction will be greatly appreciated.

Any help will be app

As far as changing the background color based on status, you can use a display rule if you are using a table. It’s hard to provide help with out a screenshot of your setup but if you are using a table to display your data, each field has a setting called display rule. The trick here is whatever field you’re using as a condition needs to also be added to the table. If you don’t want that field to be visible on the table, you can add the class: hide to the class section.

Hope this helps, if you provide more info on your setup, I may be able to help further.

Hi, Thanks for your reply. I think I got it to work as I expected using the resource component. Only piece missing is automatically refreshing(reloading) that component. I have other component on the page so I dont need those reloaded.

Here is some javascript that will refresh the resource table every 1 minute. Adjust the time as you see fit. Note: It will refresh all resource tables on the page.

setInterval(function () {
  const refreshButton = document.querySelector('.fc-resourceRefresh-button');
  if (refreshButton) {
    refreshButton.click();
    console.log('[AutoRefresh] Clicked the refresh button');
  } else {
    console.warn('[AutoRefresh] Refresh button not found');
  }
}, 60000); // every 60,000 milliseconds = 1 minute

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.