You need to sign in to do that
Don't have an account?
Laytro80
Apex Trigger I think
Hi,
I have an object called meeting note and a child object called attendee.
When you create a meeting you can add as many attendees as you want.
What I would like to happen is when you add an attendee and hit save you are returned not to the attendee record but to the linked meeting note.
Thanks
Ross
Let me know if this works. I'm pretty new to Apex too :)
All Answers
Ross,
You don't want a trigger. In this case you could build a custom visualforce page for the attendee 'add' function. The page would need a custom controller extension that can redirect the user to the parent object page after the save.
Thanks John,
Appreciate the pointer.
Very new to APEX development, can handle the visualforce page ui.
The controller is a new thing for me, will have a look at the tutorials.
Any pointers on the controller code required to do this?
Cheers
R
Let me know if this works. I'm pretty new to Apex too :)
Big thanks for this. I am just refreshing the sandbox so will have a go with the code tonight / first thing. Many thanks.
Ross
Thanks John & JoeyD
The method was spot on and the code was perfect.
All the very best,
Ross