Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Transaction Patterns » PopUp - Link1 table
Re: PopUp - Link1 table [message #7413 is a reply to message #5586] Sun, 15 March 2020 05:59 Go to previous messageGo to previous message
htManager is currently offline  htManager
Messages: 434
Registered: May 2014
Senior Member
Hi Tony,
I have a new problem concerning this topic. I have two tables. One which stores all the teams for each season and one that stores the team members of these teams. Now I want to insert team members for a new season with this construction.
In the _cm_initialise() method of the team member table class I have the first problem, because I have to change $where to '' to get all possible teams from the popup1 form of the team table. I think that this is the reason why I have additional problems and why the code which you provided in FAQ79 doesn't work in this case.
When selecting one or more teams, I get the team members for this team shown in the popup2 form. (I cannot change the $settings['select_one'] = TRUE for the (popup1) team table. Even if I try this in the _cm_popupCall() method.)
I thought that I could see the selected team members in the _cm_popupReturn() method and I thought that I could insert them via an add4 pattern? I hope this will work. I am not at this point so I haven't tried it yet.
In the popup2 form I have this time only the choose button. The choose null button isn't displayed.
I attachded my code of the _cm_initialise() method. Can you tell me what is wrong with it?


function _cm_initialise ($where, &$selection, $search)
// perform any initialisation for the current task.
{
// wenn htm_orga_mannschaften_kontakte(popup2) aufgerufen wird, werden alle verfügbaren Mannschaften angezeigt
switch ($GLOBALS['task_id']) {
case 'htm_orga_mannschaften_kontakte(popup2)':
if ($GLOBALS['return_from'] == '') {
$where = '';
$pattern_id = getPatternId();
if (strtolower($pattern_id) == 'popup2') {
// request_id has not been supplied yet, so get it now via a popup
$this->scriptNext('htm_orga_mannschaften(popup1)');
} // if
}
else {
if (empty($selection)) {
if (isset($GLOBALS['return_from'])) {
if ($GLOBALS['return_from'] == 'htm_orga_mannschaften(popup1)') {
// nothing selected from popup screen
$this->scriptPrevious($GLOBALS['errors']);
} // if
} // if
} // if
} // else
}; // switch ($GLOBALS['task_id'])

return $where;

} // _cm_initialise
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Filepicker - choose Null button
Next Topic: List view (List3)
Goto Forum:
  


Current Time: Sun Nov 24 23:32:17 EST 2024

Total time taken to generate the page: 0.02070 seconds