You need to sign in to do that
Don't have an account?
arunk
pop-up alerts possible?
Hi,
I am new to salesforce. And am planning to create a hotel management system.
Suppose there are four types of roles: Client, waiters, chefs and managers.
What i want is that whenever a client pays a bill amount greater then a predefines value, a alert should pop-up in front of all logged-in managers. Is this possible? Are there any work arounds for this ?
I know that email alerts are possible in this scenario. But i would prefer a pop-up alert.
Thanks in advance,
arun.
All Answers
If you're writing this in VisualForce, you could build in your own validation using JavaScript with the alert() function for pop-ups. I think beyond that you would need to use the standard SalesForce.com validation rules which would display save errors at the top of the page or at the specific field with the error.
Mike
Hi Mike,
Thanks for the reply.
The problem is that i dont want the error on the page where the condition is checked.
I want to alert all "managers" when the condition accurs.
Is this possible?
You might want to check out Activity and Remiders feature of Salesforce. Theoretically, whenever the payment happens, check for your condition ion Apex and accordingly create a Task/Event with reminder settings and assign it to appropriate user. This should work, but needs to be explored for exact implementation.
Alternatively, you can create a JavaScript residing in the VF pages of your logged on user's that keeps polling on a specific field at regular intervals to check whether such a payment has happened. If yes, then display whatever message you want to your Managers. This has to be an asynchronous call to avoid page refreshes.
Hope this helps. Please don't forget to post the exact solution to help the entire community.
Best
metaforce
--------------------------------------------------------------------------------------------------
Mark it as an accepted solution if it works and help the community