Hello,
I am trying to set start and end time of my trends in data browser with the python script
from org.csstudio.display.builder.runtime.script import PVUtil, ScriptUtil
trend = ScriptUtil.findWidgetByName(widget, "trend")
start_time_text=PVUtil.getString(pvs[0])
end_time_text=PVUtil.getString(pvs[1])
# Set the start/end time properties of the Data Browser
trend.setPropertyValue("start_time", start_time_text)
trend.setPropertyValue("end_time", end_time_text)
Here I am setting start and end time of data browser by pressing the button.
But I am getting an error,
"java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Widget 'trend' (databrowser) has no 'start_time' property
"
How I can set time axis using python script?
Thanks
Vishnu