[Chameleon] nested widget parameters?

William Bronsema wbronsema at dmsolutions.ca
Mon May 30 08:40:20 EDT 2005


Hi Bart,

Yes, this is supported.  Check the variable "$this->maszContents" it will
contain the tag structure build with arrays.  Just do a call like:

echo '<pre>';
print_r($this->maszContents);
echo '</pre>';

in the "InitDefaults" function (or a similar function) and you should see
output like:

[TYPENAME] => Array
    (
        [0] => Array
            (
                [VALUE] => parcels
                [_CONTENTS] => 
                [CHILDREN] => Array
                    (
                        [0] => Array
                            (
                                [SEARCHFIELD] => Array
                                    (
                                        [0] => Array
                                            (
                                                [PROPERTYNAME] => AANDUID
                                                [LABEL] => Parcel number
                                                [_CONTENTS] => 
                                            )
                                     )
                             )
                     )
             )
         [1] => Array
            (
                [VALUE] => address
                [_CONTENTS] => 
                [CHILDREN] => Array
                    (
                        [0] => Array
                            (
                                [SEARCHFIELD] => Array
                                    (
                                        [0] => Array
                                             (
                                                [PROPERTYNAME] => STRAAT
                                                [LABEL] => Street
                                                [_CONTENTS] => 
                                            )
                                         [1] => Array
                                            (
                                                [PROPERTYNAME] => PLAATS
                                                [LABEL] => Place
                                                [_CONTENTS] => 
                                            )
                                     )
                             )
                     )
             )
     )

Hope that helps.

Regards,
Bill

------Original Message-----
From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Bart van den
Eijnden
Sent: Monday, May 30, 2005 8:02 AM
To: chameleon at lists.maptools.org
Subject: [Chameleon] nested widget parameters?

Hi list,

is the following nested structure supported for widget parameters?

<CWC2 type="WFSSearch">
  <typeName value="parcels">
    <searchField propertyname="AANDUID" label="Parcel number" />
  </typeName>
  <typeName value="address">
    <searchField propertyname="STRAAT" label="Street" />
    <searchField propertyname="PLAATS" label="Place" />
  </typeName>
</CWC2>

If it is not supported, what would be best way to do this? Would extending
the widget parameter parsing be an option?

Thanks in advance.

Best regards,
Bart

   

Bart van den Eijnden
Syncera-ITSolutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl


_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon




More information about the Chameleon mailing list