Hi Admin
After some testing I can confirm that this is working for my test project on the save button redirect
- it works between forms related to the same table
table1.layout1 -> table1.layout2 -> table1.layout3
- it works between forms with tables unrelated to each other
table1.layout1 -> table2.layout1 -> table3.layout1
Perhaps at some stage in the development of v2.0+ we could use a variable array containing additional variables and their related values in the redirect?
currently only the current id is passed,
It would be possible in the current V2.0 to pass more than one value or a specific field value
- if the redirect field accepted a string such as "filter_category_id=[id], filter_group_id=[cid]"
- the csv string would then be read and the array defined as in the second example below
the structure is there to pass multiple values as shown below
- the only thing is that the url becomes very long passing additional individual values
- could an array of values be passed as ....&values in the url
Just a thought
REDIRECT WORKS WITH THE FOLLOWING case 'yyyyyy.save':
$this->applyRedirection($result, array(
'com_xxxx.yyyyyy.layout1',
'com_xxxx.yyyyyy.layout2'
), array(
'cid[]' => null,
'filter_some_id'=> 'cid['.$model->getId().']', // pass the current id
));
break;
For those wanting to pass more than one variable in the redirect to combos in the next form (not currently available in cook redirect) edit the relevant controller file save function
PASSING MORE THAN ONE VARIABLE - not currently available in cook redirect case 'yyyyyyy.save':
$this->applyRedirection($result, array(
'com_xxxx.yyyyyy.layout1',
'com_xxxx.yyyyyy.layout2'
), array(
'cid[]' => null,
'filter_some_id'=> 'cid['.$model->getId().']', // pass the current id
'filter_another_id'=> $item->another_id // add the the additional value cor the combo here
));
break;
PASSING ALTERNATE VARIABLES - not currently available in cook redirect case 'yyyyyy.save':
$this->applyRedirection($result, array(
'com_xxxx.yyyyyy.layout1',
'com_xxxx.yyyyyy.layout2'
), array(
'cid[]' => null,
// remove this 'filter_some_id'=> 'cid['.$model->getId().']', // pass the current id
'filter_another_id'=> $item->another_id // add the the additional value cor the combo here
));
break;
Hope it helps