Hi Nathan,
not sure if the array assignment really casts the previous scalar value
to an array. I would try:
post_process() {
…
- $value = array($value_in);
$value[‘options’] = $extension_data;
return true;
What I meant was, that $extension_data should be still available in
pro_process(), while eTemplate is looping (if you made the modification
of uietemplate, that it does not get initialised.
Your solution might work too …
Ralf
Nathan Gray schrieb:
Hi Nathan,
if you add extension_data to the values, which get not initialised in
class.uietemplate.inc.php in line 202 in trunk, you should be able to
use extension_data to pass data from post_process to pre_process, as
process_exec reads the extension_data from the session and puts it a
global var. The following exec stores the global var again in the
session.
So as long as you stay in the same request, which is the case for a
looping nextmatch widget, you can use it to transport data from
post_process to pre_process.
If I understand this right:
pre_process() {
…
$options = explode(’,’,$cell[‘size’]);
if($value[‘options’]) {
$options += $value[‘options’];
}
…
}
post_process() {
…
$value = $value_in;
$value[‘options’] = $extension_data;
return true;
…
}
Won’t that give me a value like
’ajax_select’ => array(
0 => 4,
‘options’ => array(
‘source’ => …
‘icon’ => …
)
)
when the form is submitted instead of
’ajax_select’ => 4
when it doesn’t loop?
Nathan Gray
nathan at goarctic dot com
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
eGroupWare Training & Support ==> http://www.egroupware-support.de
Outdoor Unlimited Training GmbH [www.outdoor-training.de]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 (0)631 31657-0
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers