21281 Posts in 5729 Topics by 2600 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 196 Views |
-
Passing a variable to getCMSFields_forPopup

17 August 2012 at 1:58am
Hi
Is there anyway to pass a variable to getCMSFields_forPopup?
$tablefield = new HasManyDataObjectManager(
$this,
'FixtureHomePlayers',
'FixtureHomePlayer',
array(
'TeamPlayer.PlayerName' => 'Name',
'TeamPlayer.PlayerPosition' => 'Position',
'Tries' => 'Tries',
'Goals' => 'Goals'
),
'getCMSFields_forPopup(VARIABLE-NAME-HERE)',
'Team.ID='.$this->HomeTeamID, //filter
'TeamPlayer.PlayerName', //sort
'LEFT JOIN TeamPlayer ON FixtureHomePlayer.TeamPlayerID=TeamPlayerID LEFT JOIN Team ON TeamPlayer.TeamID=Team.ID' //join);
$fields->addFieldToTab("Root.Content.HomeTeam",$tablefield);But that does not work, I need to pass the HomeTeamID to the popup, so it only loads players for that team.
Cheers
-
Re: Passing a variable to getCMSFields_forPopup

21 August 2012 at 7:38am
hmmm not a nice solution, but you *could* set a session variable (that is blanked on navigation away)
that session variable could be read elsewhere... but this is guess I don't understand what you are trying to do
| 196 Views | ||
|
Page:
1
|
Go to Top |


