For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > August 2004 > QFC Problem with showing Groups variables









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author QFC Problem with showing Groups variables
I2eptilex

2004-08-30, 3:57 pm

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']['newline
status'],$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_B
UTTONS
..'button_24deannex.gif','value="'.$num.'"');
$this->addGroup($zuordn, 'zuord'.$num, null, ' ',false);
}


I2eptilex

2004-08-30, 3:57 pm

Attachment didn't come through. Trying it again.

I2eptilex wrote:

> 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']['newline
status'],$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_B
UTTONS
> .'button_24deannex.gif','value="'.$num.'"');
> $this->addGroup($zuordn, 'zuord'.$num, null, ' ',false);
> }
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com