Tree

1 resposta
G

Estou fazendo uma tree dinãmica... mas ela só consegue ler o root... os filhos n está trazendo :S Alguém sabe como o que pode ser?

Laszlo
<canvas width="450" height="450">


  <dataset name="arvore" request="true" src="http://10.96.168.4/unidades_pessoas_pesq.php" />

  <view x="20" y="20" layout="axis: x; spacing: 10">

    <!-- data replicated tree -->
    <view width="200" height="200">
      <tree datapath="arvore:/" icon="null" showroot="false">
        <tree datapath="*" icon="null" text="$path{'@name'}"
              isleaf="$path{'@grandparent'}"/>
      </tree>
    </view>
  </view>
</canvas>
Retorno do Dataset
<hobbit name="Setores">
<hobbit name="DACA Humanas">
<hobbit name="Cirineo" grandparent="true"/>
<hobbit name="Leandro Ribeiros" grandparent="true"/>
</hobbit>
<hobbit name="Pergamum">
<hobbit name="Daniela Miqueletto" grandparent="true"/>
<hobbit name="Geisa Pereira Garcia" grandparent="true"/>
<hobbit name="Marcos Rogério" grandparent="true"/>
</hobbit>
<hobbit name="SIGA">
<hobbit name="Daniela Miqueletto" grandparent="true"/>
<hobbit name="Eduardo Domanski" grandparent="true"/>
</hobbit>
</hobbit>

1 Resposta

E

bom aonde sei que tem um exemplo de tree dinamica é no Laszlo-explorer
que ele monta akele menu tree view dinamicamente a partir de um XML…

ainda não cheguei a mexer muito com tree :razz:
vou ver se arranjo um tempo para testar isso :wink:

[]'s

Criado 5 de março de 2007
Ultima resposta 6 de mar. de 2007
Respostas 1
Participantes 2