Hello,
Is it possible to define the color of a certain Schedule Item displayed in the ‘Schedule Week View’ or ‘Schedule day view’ ?
I’d like to highlight some to mark them as “important” or “Not Confirmed” or for any other purpose.
Thank you!
Hello,
Is it possible to define the color of a certain Schedule Item displayed in the ‘Schedule Week View’ or ‘Schedule day view’ ?
I’d like to highlight some to mark them as “important” or “Not Confirmed” or for any other purpose.
Thank you!
I did something like this… color the background column in the Equipment Scheduler - Scheduled Events dataset based on the value in the PctDone column.
I put the following code in internalFrameOpened for the window.
data = system.gui.getParentWindow(event).getComponentForPath('Root Container.Equipment Schedule').scheduledEvents
object = system.gui.getParentWindow(event).getComponentForPath('Root Container.Equipment Schedule')
for x in range(data.getRowCount()):
row = x
background = data.getValueAt(row,'Background')
pctDone = data.getValueAt(row,'PctDone')
if pctDone == 0.0:
backgroundcolor = 255,0,0
background = data.setValueAt(row,6,backgroundcolor)
object.repaint()
elif pctDone == 100.0:
backgroundcolor = 0,255,0
background = data.setValueAt(row,6,backgroundcolor)
object.repaint()
else:
backgroundcolor = 255,255,0
background = data.setValueAt(row,6,backgroundcolor)
object.repaint()