|
|
|
It is currently Thu Sep 09, 2010 6:20 am
|
View unanswered posts | View active topics
|
Page 1 of 1
|
[ 4 posts ] |
|
Date Range Component question
| Author |
Message |
|
Jon.Trusik
Trooper
Joined: Fri Jun 25, 2010 5:19 am Posts: 16
|
 Date Range Component question
Can the Date Range Component Start Date be 'preloaded' when a window opens? I'm trying to use the internalFrameActivated event of the window opening to set the startDate property to a date but continue to get an error of "can't convert 'my value' to java.util.Date".
|
| Fri Jul 23, 2010 11:43 am |
|
 |
|
Travis.Cox
Moderator
Joined: Sun Apr 02, 2006 2:46 pm Posts: 229 Location: Sacramento, CA
|
 Re: Date Range Component question
Yes, you just need to bind the start date and end date to an expression like now(0).
_________________ Travis Cox
Inductive Automation
Technical Support Rep.
|
| Fri Jul 23, 2010 2:25 pm |
|
 |
|
Jon.Trusik
Trooper
Joined: Fri Jun 25, 2010 5:19 am Posts: 16
|
 Re: Date Range Component question
What I'm looking to do is just set either date one time, upon entering the window. If I bind it, then it continuously resets to that value. I just need an example of the expression to do this.
|
| Tue Jul 27, 2010 3:08 am |
|
 |
|
Robert.McKenzie
Moderator
Joined: Wed Apr 18, 2007 11:00 am Posts: 148 Location: Sacramento Ca.
|
 Re: Date Range Component question
The expression "now(x)" will continuously reevaluate every x seconds. If you use a 0, then it will only evaluate when the window opens.
If you are using a SQL Query, then you can set the Polling Mode to "Off" to get the same effect.
_________________ Robert McKenzie Inductive Automation Technical Support
|
| Tue Jul 27, 2010 7:46 am |
|
 |
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|