Author |
|
GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: July 24 2008 at 09:58 | IP Logged
|
|
|
I just noticed in the PH User Manual, a suggestion to auto-trim the event log to keep it from growing too large!
I created a timed event trigger with a formula of...
ph_trimeventlog("2")
But when I check the formula it evaluates to "!" not "1".
I assume this means I have not used a correct formula syntax, but I'm stumped then. What would be correct?
Also BTW where is the log file saved? I can't seem to even find one in all the normal places!
Thanks.
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|
Back to Top |
|
|
ficklma1 Groupie
Joined: December 08 2007 Location: United States
Online Status: Offline Posts: 59
|
Posted: July 24 2008 at 10:48 | IP Logged
|
|
|
Hi GadgetGuy,
I think you just need to remove the quotes.
i.e. ph_trimeventlog(2)
Edited by ficklma1 - July 24 2008 at 10:49
|
Back to Top |
|
|
GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: July 24 2008 at 12:07 | IP Logged
|
|
|
That was how I initially entered the parameter, but that formula evaluated to "0" which I thought indicated a bad syntax.
I thought correct formulas evaluate to "1" when "verified," but I'm now guessing that is not the case.
Any educational comments, anyone?
Thanks
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: July 24 2008 at 13:24 | IP Logged
|
|
|
A good result is usually 0.
|
Back to Top |
|
|
GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: July 24 2008 at 14:47 | IP Logged
|
|
|
TonyNo wrote:
A good result is usually 0. |
|
|
Then Tony what does a "1" indicate (if anything) or is the "desired result" dependent on the formula?
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: July 24 2008 at 19:58 | IP Logged
|
|
|
Yup. The result code varies by function. Check the Help for more. The docs for this say...
Quote:
Returns a 0 if successful and a 1 if an error occurs |
|
|
Quote:
Also BTW where is the log file saved? |
|
|
In the database. If you want to export it, you can do that when you are looking at it in PH.
Edited by TonyNo - July 24 2008 at 20:05
|
Back to Top |
|
|