Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Change an event based on the current date

If you have a question or need help, this is the place to be.
Post Reply
kmanpilkers
Posts: 4
Joined: Mon Jul 04, 2011 1:18 pm

Change an event based on the current date

Post by kmanpilkers »

Hi guys,

I'm new to EventGhost, just started messing with it yesterday. I work for an insurance brokers and we need to automate the database cleanup and accounting close of day that is performed every evening (currently I have to do this manually). So far, so boring. But the challenging part is I need to be able to change an event based on the current date.

During the close day, you are asked if you want to "change the date" (yes, we really have a system that can't automatically change the date itself!). This is the point where you just edit the date and move it on a day, so from the 4th July to the 5th etc. for the next day. I want to be able to automate this part too. Presumably I will have to capture the current date as a variable somehow and then increment it by 1. Anyone know if this is possible/easy to do with EventGhost?

Thanks in advance for any help. :D

Kev
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Change an event based on the current date

Post by Pako »

Welcome on board!
Yes, with EventGhost you certainly can solve your problem.
You unfortunately did not write what should be the date format.
One of the ways to get the date is here:
ScheduleDayClosing.gif
The event then looks like here:
DayClosing-Event.gif
DayClosing-Event.gif (14.3 KiB) Viewed 1238 times
You can use (in some macro) this date as eg.event.payload.
But get the date is just the easier part of the task.
I think the bigger tproblem is how to use this date in your application.

Pako
kmanpilkers
Posts: 4
Joined: Mon Jul 04, 2011 1:18 pm

Re: Change an event based on the current date

Post by kmanpilkers »

Sorry, first time back on this forum in a while and I hadn't subscribed to this thread. Many thanks for your response, I will try this out.
kmanpilkers
Posts: 4
Joined: Mon Jul 04, 2011 1:18 pm

Re: Change an event based on the current date

Post by kmanpilkers »

BTW, it turned out there was a very simple way of me changing the date, so I never needed to capture it in the end - I could simply open a calendar from the UI and key the right-arrow. This will just select the next day, simple!
Post Reply