I have a tag change script on a view param that looks like this:
Param (end time in millis)
endMillis = currentValue.value end = system.date.fromMillis(endMillis) # make the range to the most recent hour ending minute = system.date.getMinute(end) start = None if minute == 0: start = system.date.addHours(end, -1) else: start = common.datetime.getRecentHourEnding() self.getChild("root").getChild("Input").getChild("StartTime").props.value = start self.getChild("root").getChild("Input").getChild("EndTime").props.value = end
I’m doing this because this screen is navigated to from another screen and the end value represents what hour of data to show. But then once they are on the screen, they should be able to then manipulate the start and end times manually.
This change script does exactly what I expect it to in preview mode but in a client session it doesn’t do anything.
What would make it not work in a client session?