Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting default value
#1
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
Reply
#2
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:

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

I think you may have to exit the Admin and restart (the admin) to see the change.
Reply
#3
jkish Wrote:I think you may have to exit the Admin and restart (the admin) to see the change.

Yup, thanks, that was it!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  setting up CQC tom 12 1,966 10-31-2021, 02:41 PM
Last Post: Dean Roddey
  Setting up SQL Database sic0048 4 1,794 12-27-2018, 05:57 PM
Last Post: Dean Roddey
  WebRiva Chrome Resetting to Default Template Jnetto 1 1,549 01-04-2018, 09:40 PM
Last Post: Dean Roddey
  Simple check before setting Elk M1 to Arm State KenC 7 5,321 10-03-2017, 05:55 PM
Last Post: Dean Roddey
  Default CAB layout potts.mike 3 1,960 05-06-2016, 02:23 PM
Last Post: Dean Roddey
  Opacity Setting DaveB 0 1,133 03-10-2013, 07:07 AM
Last Post: DaveB
  Setting defaults in variable driver not working znelbok 3 2,003 12-27-2012, 12:50 PM
Last Post: Dean Roddey
  How to Have Master Server Specify Default Local Network TurboSam 15 5,909 05-12-2011, 10:44 AM
Last Post: Dean Roddey
  Default Web Server Port fivestar 41 12,121 11-26-2010, 06:28 AM
Last Post: khill
  Changing the default formatting of signed/unsigned fields Dean Roddey 0 1,189 10-05-2010, 02:11 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)