I love primal form!!
I was able to creat a little form with some useful information for our group. We want to put this up on our dashboard, but I am not sure how to make the form update every X minutes... The amount of time is not important, I just dont know how.
Please help.
Form : Auto Refresh
Form : Auto Refresh
You will need to use a Timer; unfortunately the Timer is not available in PrimalForms until the next service release.
Since it is not available, you can use the following script to create a timer:
Replace the $OnTickEvent with your own custom script block. Note that the timer will only fire while the Form is idle.
I recommend using ScriptingAnswers for any future scripting questions you may have.
David
davidc2008-12-17 11:24:50
Since it is not available, you can use the following script to create a timer:
Code: Select all
$timer1 = New-Object System.Windows.Forms.Timer
$timer1.Interval = 1000 #1 second time interval
$timer1.add_Tick($OnTickEvent)
$timer1.Start(); #Start the timer
I recommend using ScriptingAnswers for any future scripting questions you may have.
David
davidc2008-12-17 11:24:50
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Form : Auto Refresh
If you want to update every minute, use 60000 for the time interval.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Form : Auto Refresh
Thank you for the quick response. I will give it a try (and next time use the scriptinganswers...
Form : Auto Refresh
You're welcome and please let me know if it works out for you.
I mentioned ScriptingAnwsers because these forums are reserved for questions and issues about the Free Tools. In addition you will get a better response when it comes to scripting questions.
I mentioned ScriptingAnwsers because these forums are reserved for questions and issues about the Free Tools. In addition you will get a better response when it comes to scripting questions.
Form : Auto Refresh
I posted a sample form and script that uses a timer to auto refresh.http://www.sapien.com/blog/2008/12/18/w ... nd-timers/