You need to sign in to do that
Don't have an account?

Reference a field of an Object's related Object
Hi all,
So in my org, we have an events object and a team object. The team object is related to the events object. In a visualforce page that create an events calender displaying all of our events, we have a few filters at the top for sport and other various fields. What I would like to do is create a filter that uses a field from the team object to filter the event.
My code looks like this when I reference an event field:
&& ['all', myEvent.type].indexOf($('#type_selector').val()) >= 0
Is there a way for me to grab or reference a field from the team object?
Any help would be appreciated!
Liz
So in my org, we have an events object and a team object. The team object is related to the events object. In a visualforce page that create an events calender displaying all of our events, we have a few filters at the top for sport and other various fields. What I would like to do is create a filter that uses a field from the team object to filter the event.
My code looks like this when I reference an event field:
&& ['all', myEvent.type].indexOf($('#type_selector').val()) >= 0
Is there a way for me to grab or reference a field from the team object?
Any help would be appreciated!
Liz