QFC Problem with showing Groups variables
| From: | I2eptileX | Date: | Mon, 30 Aug 2004 15:43:08 +0000 |
| Subject: | QFC Problem with showing Groups variables | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14336@lists.php.net to get a copy of this message | ||
Hi all,
I got a strange behaviour with QFC, I have a text element and afterwards there are a few groups with 4 text elemnts each. The thing is that when I change the content of the text elements go to the next page and go back, the text elements in the group appear as the values in the "constants" variables. The simple text elements on the other hand appear with the values of the "values" variables.
Can this be an error? I haven't used group names, because I have to address all fields in the groups in the same way. Has anyone else had this problems?
Check the attachment to see what I mean. I wrote "aaaaa" in the upper field and in the field below the number 160 but only the one in the upper field appears.
Here some code of mine of this particular page:
class PageZuordnung extends HTML_QuickForm_Page
{
function buildForm()
{
$this->_formBuilt = true;
//Navigation Bar
navigation_bar($this,4);
$this->addElement('header', null, 'Zuordnung');
$this->addElement('html','<tr><td><table>');
$this->addElement('html','<tr><td colspan ="2"><table>');
$this->addElement('hidden','zuord_size');
$this->addElement('hidden','newline');
$this->addElement('image',$this->getButtonName('neuezeile'),DIR_WS_IMAGES_BUTTONS .'button_24neu.gif','value="new"');
$this->data =& $this->controller->container();
$gkz_gem_arr = array();
for($i=0;$i<$this->data['values']['zuord_size'];$i++){
$this->make_normal_line($i);
}
for($i=0;$i<$this->data['values']['zuordnung']['newline'];$i++){
$this->make_annex_line($data['values']['newlinestatus'],$i);
}
//$this->addElement('html','<tr>');
//$this->addElement('html','</table></td></tr>');
$this->addElement('html','</table></td></tr>');
}
function make_normal_line($num){
$zuordn[] =& $this->createElement('text','gkz'.$num,null,'size="10"');
$zuordn[] =& $this->createElement('text','plz'.$num,null,'size="10"');
$zuordn[] =& $this->createElement('text','gemeindename'.$num,null,'size="30"');
$zuordn[] =& $this->createElement('image',$this->getButtonName('deannex'),DIR_WS_IMAGES_BUTTONS .'button_24deannex.gif','value="'.$num.'"');
$this->addGroup($zuordn, 'zuord'.$num, null, ' ',false);
}