![]() |
Setting default value - Printable Version +- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums) +-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3) +--- Forum: CQC Support (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=9) +--- Thread: Setting default value (/showthread.php?tid=7288) |
Setting default value - pilotguy7ca - 06-19-2011 I have the variable driver called var with a field LastRainDate of type Time and I'm trying to have a triggered event set the value to the current time and then to set this new value as its default. The trigger is working fine as the current value is changing but the default is staying blank; here is what I'm doing: If System::GrThan P1=$(davisvpro2.Rain_Rate) P2=0 Devices::FieldWrite P1=var.LastRainDate P2=%(StdRTV:TimeStamp) P3=True Devices::SendDrvCmd P1=var P2=SetFldDefault P3=LastRainDate End Setting default value - jkish - 06-19-2011 pilotguy7ca Wrote:I have the variable driver called var with a field LastRainDate of type Time and I'm trying to have a triggered event set the value to the current time and then to set this new value as its default. The trigger is working fine as the current value is changing but the default is staying blank; here is what I'm doing: I think you may have to exit the Admin and restart (the admin) to see the change. Setting default value - pilotguy7ca - 06-19-2011 jkish Wrote:I think you may have to exit the Admin and restart (the admin) to see the change. Yup, thanks, that was it! |