Combo recebendo valor

Mais um problema: tenho um cadastro normal… com um grid mostrando todos os dados. Quando clico no grid , os dados são mostrados nos seus respectivos campos … para os <edittext> funciona na boa… só n estou conseguindo passar o valor para o <combobox>. Alguém sabe como fazer???

Laszlo

[code]<?xml version="1.0" encoding="ISO-8859-1" ?>
<canvas width="1000" bgcolor="#FFFFF0">

<greenstyle name="specialstyle"/>
<dataset name="dsSendData" request="true" src="http://10.96.168.4/tipoatendimento_pesq.php"/>
<dataset name="dset" request="true" src="http://10.96.168.4/prioridades.php" />

<class name="box" height="610" width="140" bgcolor="#838B83" x="0" y="0"/>
<class name="borderedbox" extends="box">
<attribute name="bordersize" value="3"/>
<view bgcolor="#F0FFF0"
x="${parent.bordersize}"
y="${parent.bordersize}"
width="${parent.width - parent.bordersize2 }"
height="${parent.height - parent.bordersize
2 }"/>
</class>

<class name="contactview" extends="view" visible="true" x="20" height="120">
<!-- 2 -->

&lt;text fontstyle=&quot;bold&quot; x=&quot;160&quot; y=&quot;105&quot;&gt;Código&#58;&lt;/text&gt;
        &lt;edittext fontstyle=&quot;bold&quot; name=&quot;cod_tipo_atendimento&quot; datapath=&quot;@cod_tipo_atendimento&quot; x=&quot;255&quot; y=&quot;100&quot; width=&quot;50&quot; enabled=&quot;false&quot;/&gt;

        &lt;text fontstyle=&quot;bold&quot; x=&quot;160&quot; y=&quot;135&quot;&gt;Descrição&#58;&lt;/text&gt;
        &lt;edittext fontstyle=&quot;bold&quot; name=&quot;desc_tipo_atendimento&quot;  datapath=&quot;@desc_tipo_atendimento&quot; x=&quot;255&quot; y=&quot;130&quot; width=&quot;300&quot;/&gt;

        &lt;statictext fontstyle=&quot;bold&quot; x=&quot;160&quot; y=&quot;165&quot; &gt;
                  Prioridade&#58;
      &lt;/statictext&gt;
        &lt;combobox id=&quot;cb_cod_prioridade&quot; x=&quot;255&quot; y=&quot;160&quot;  name=&quot;cb_cod_prioridade&quot;
     width=&quot;190&quot; editable=&quot;false&quot; shownitems=&quot;3&quot;&gt;
        &lt;textlistitem datapath=&quot;dset&#58;/tabela/prioridades&quot; text=&quot;$path&#123;'desc_prioridade/text&#40;&#41;'&#125;&quot;
                   value=&quot;$path&#123;'cod_prioridade/text&#40;&#41;'&#125;&quot;/&gt;
     &lt;/combobox&gt;
     
        &lt;text name=&quot;msn&quot;  width=&quot;300&quot; x=&quot;250&quot; y=&quot;205&quot; visible=&quot;false&quot;&gt;&lt;font color=&quot;#ff0000&quot;&gt;ok&lt;/font&gt;&lt;/text&gt;

 &lt;method name=&quot;sendData&quot; args=&quot;action&quot;&gt;
  var d=canvas.datasets.dsSendData;                       // 3
  var p=new LzParam&#40;&#41;;                                    // 3a
  p.addValue&#40;&quot;action&quot;, action, true&#41;;
  p.addValue&#40;&quot;cod_tipo_atendimento&quot;, cod_tipo_atendimento.getText&#40;&#41;, true&#41;;
  p.addValue&#40;&quot;desc_tipo_atendimento&quot;, desc_tipo_atendimento.getText&#40;&#41;, true&#41;;
  p.addValue&#40;&quot;cod_prioridade&quot;, cb_cod_prioridade.getValue&#40;&#41;, true&#41;;
  d.setQueryString&#40;p&#41;;                                   // 3c
  d.doRequest&#40;&#41;;                                         // 3d
&lt;/method&gt;

&lt;!-- 4 --&gt;

</class>

<borderedbox bordersize="3" x="0" y="0" width="720"/>
<view y="5" x="5" height="26" width="710" bgcolor="#838B83">
<text y="5" x="300" fgcolor="#E0EEE0" align="center"><font face="verdana"><b>Cadastro de Tipos de Atendimento</b></font></text>
</view>

        &lt;borderedbox bordersize=&quot;3&quot; height=&quot;116&quot; x=&quot;105&quot; y=&quot;85&quot; width=&quot;500&quot;/&gt;

        &lt;contactview name=&quot;newContact&quot; datapath=&quot;new&#58;/contact&quot;&gt;
        &lt;button style=&quot;&#123;basecolor&#58;0xbbffbb&#125;&quot; width=&quot;100&quot; y=&quot;230&quot; x=&quot;150&quot;&gt;Inserir
        &lt;handler name=&quot;onclick&quot;&gt;
      parent.sendData&#40;&quot;insert&quot;&#41;;                         // 5
      parent.datapath.updateData&#40;&#41;;
      var dp=canvas.datasets.dsSendData.getPointer&#40;&#41;;
      dp.selectChild&#40;&#41;;
      dp.addNodeFromPointer&#40; parent.datapath &#41;;
      parent.setDatapath&#40;&quot;new&#58;/contact&quot;&#41;;
      parent.msn.setText&#40;&quot;Dados incluídos com sucesso!&quot;&#41;;
      parent.msn.setVisible&#40;true&#41;;

    &lt;/handler&gt;
     &lt;/button&gt;
        &lt;button style=&quot;&#123;basecolor&#58;0xbbffbb&#125;&quot; width=&quot;100&quot; y=&quot;230&quot; x=&quot;250&quot;&gt;Alterar
         &lt;handler name=&quot;onclick&quot;&gt;
      parent.sendData&#40;&quot;update&quot;&#41;;                      // 7
      parent.datapath.updateData&#40;&#41;;
      var dp=canvas.datasets.dsSendData.getPointer&#40;&#41;;
      dp.selectChild&#40;&#41;;
      parent.setDatapath&#40;&quot;new&#58;/contact&quot;&#41;;
      parent.msn.setText&#40;&quot;Dados alterados com sucesso!&quot;&#41;;
      parent.msn.setVisible&#40;true&#41;;
    &lt;/handler&gt;
     &lt;/button&gt;
        &lt;button style=&quot;&#123;basecolor&#58;0xbbffbb&#125;&quot; width=&quot;100&quot; y=&quot;230&quot; x=&quot;350&quot;&gt;Excluir
         &lt;handler name=&quot;onclick&quot;&gt;
      parent.sendData&#40;&quot;delete&quot;&#41;;                      // 7
      parent.datapath.updateData&#40;&#41;;
      var dp=canvas.datasets.dsSendData.getPointer&#40;&#41;;
      dp.selectChild&#40;&#41;;
      parent.setDatapath&#40;&quot;new&#58;/contact&quot;&#41;;
      parent.msn.setText&#40;&quot;Dados excluídos com sucesso!&quot;&#41;;
      parent.msn.setVisible&#40;true&#41;;
    &lt;/handler&gt;
     &lt;/button&gt;
        &lt;button style=&quot;&#123;basecolor&#58;0xbbffbb&#125;&quot; width=&quot;100&quot; y=&quot;230&quot; x=&quot;450&quot;&gt;Limpar
        &lt;handler name=&quot;onclick&quot;&gt;
      parent.cod_tipo_atendimento.setText&#40;&quot;&quot;&#41;;
      parent.desc_tipo_atendimento.setText&#40;&quot;&quot;&#41;;
      parent.cb_cod_prioridade.clearSelection&#40;&quot;1&quot;&#41;;
      parent.msn.setVisible&#40;false&#41;;
    &lt;/handler&gt;
        &lt;/button&gt;

        &lt;/contactview&gt;

    &lt;grid height=&quot;100&quot; x=&quot;105&quot; y=&quot;280&quot; width=&quot;500&quot; style=&quot;$once&#123;specialstyle&#125;&quot;
                  shownitems=&quot;7&quot; datapath=&quot;dsSendData&#58;/resultset&quot;&gt;

             &lt;gridcolumn  width=&quot;80&quot;&gt;Código
                   &lt;text datapath=&quot;@cod_tipo_atendimento&quot; onclick=&quot;newContact.datapath.setPointer&#40;this.datapath.p&#41;&quot;/&gt;
             &lt;/gridcolumn&gt;
             &lt;gridcolumn width=&quot;320&quot;&gt;Descrição
                   &lt;text datapath=&quot;@desc_tipo_atendimento&quot; onclick=&quot;newContact.datapath.setPointer&#40;this.datapath.p&#41;&quot;/&gt;
             &lt;/gridcolumn&gt;
             &lt;gridcolumn width=&quot;100&quot;&gt;Prioridade
                   &lt;text datapath=&quot;@desc_prioridade&quot; onclick=&quot;newContact.datapath.setPointer&#40;this.datapath.p&#41;&quot;/&gt;
             &lt;/gridcolumn&gt;



        &lt;/grid&gt;

</canvas>[/code]

Dataset - dsSendData retorna:

&lt;resultset&gt;
&lt;result cod_tipo_atendimento=&quot;1&quot; desc_tipo_atendimento=&quot;Tipo de atendimento&quot; desc_prioridade=&quot;Média&quot; cod_prioridade=&quot;2&quot; /&gt;
&lt;result cod_tipo_atendimento=&quot;2&quot; desc_tipo_atendimento=&quot;Tipo de atendimento 2&quot; desc_prioridade=&quot;Média&quot; cod_prioridade=&quot;2&quot; /&gt;
&lt;result cod_tipo_atendimento=&quot;3&quot; desc_tipo_atendimento=&quot;Tipo de atendimento 3&quot; desc_prioridade=&quot;Média&quot; cod_prioridade=&quot;2&quot; /&gt;
&lt;result cod_tipo_atendimento=&quot;4&quot; desc_tipo_atendimento=&quot;Tipo de atendimento 4&quot; desc_prioridade=&quot;Média&quot; cod_prioridade=&quot;2&quot; /&gt;
&lt;/resultset&gt;

Dataset - dset retorna:

[code]<?xml version="1.0" encoding="ISO-8859-1" ?>

  • <tabela>
  • <prioridades>
    <cod_prioridade>1</cod_prioridade>
    <desc_prioridade>Baixa</desc_prioridade>
    </prioridades>
  • <prioridades>
    <cod_prioridade>2</cod_prioridade>
    <desc_prioridade>Média</desc_prioridade>
    </prioridades>
  • <prioridades>
    <cod_prioridade>3</cod_prioridade>
    <desc_prioridade>Alta</desc_prioridade>
    </prioridades>
    </tabela>
    [/code]

hum… preguiça de ler tudo isso…

o que tu quer fazer no combo que não está conseguindo fazer?

Rsrsrsrsrsrsrsr… ta bom , ta bom… vou ser mais sucinta:
Quero clicar no grid e fazer com que meu combo prioridades receba o valor da coluna prioridade… :slight_smile:

hum…

o conteudo do combo vai ser aquele valor do ultimo XML ali?

bom quando clicar no grid, evento onselect, pegue o item selecionado
ele vai retornar um pointer para a posição do seu dataset
que está exibindo o conteudo, desse pointer vc recupera outro valor
que acredito que esteja ali tambem, e com esse valor vc via scripting
atualiza o combo…

tem um método do combo se não me engano que tem como selecionar um item, pelo valor da tag value :wink:

Bah… isso eu n consegui ainda :S:S:S
Difícillllllllllllllllllllllllll!!! rssrsrsrsrsrsrsrs

hum…
de uma olhada nesses links:

gridcombobox
exemplo | código fonte do exemplo

ve se ajuda em algo :wink:

[color=“violet”]Erko… depois de tantos meses trabalhando com Laszlo… posso dizer que aprendi muito… mas recuperar o valor do grid e passar para o combobox eu ainda não consegui!!! Sério… me ajuda rsrssrrsrss…
Montei um exemplo bem simples… dá uma olhadinha pra mim qdo vc tiver um tempinho???
Obrigada!!! Beijocas :D:D:D
[/color]

[code]
<?xml version="1.0" encoding="ISO-8859-1"?>
<canvas>

&lt;dataset name=&quot;dsSendTipo&quot;&gt;
&lt;resultset&gt;
           &lt;resultado&gt;
                      &lt;result erro=&quot;&quot; cod_tipo_atendimento=&quot;1&quot; desc_tipo_atendimento=&quot;Erro / problema&quot; desc_prioridade=&quot;Baixa&quot; cod_prioridade=&quot;1&quot;&gt;\n&lt;cod_tipo_atendimento&gt;1&lt;/cod_tipo_atendimento&gt;
                              &lt;desc_tipo_atendimento&gt;Erro / problema&lt;/desc_tipo_atendimento&gt;
                              &lt;cod_prioridade&gt;1&lt;/cod_prioridade&gt;
                              &lt;desc_prioridade&gt;Baixa&lt;/desc_prioridade&gt;
                      &lt;/result&gt;
                      &lt;result erro=&quot;&quot; cod_tipo_atendimento=&quot;2&quot; desc_tipo_atendimento=&quot;Dúvida&quot; desc_prioridade=&quot;Baixa&quot; cod_prioridade=&quot;1&quot;&gt;\n&lt;cod_tipo_atendimento&gt;2&lt;/cod_tipo_atendimento&gt;
                              &lt;desc_tipo_atendimento&gt;Dúvida&lt;/desc_tipo_atendimento&gt;
                              &lt;cod_prioridade&gt;1&lt;/cod_prioridade&gt;
                              &lt;desc_prioridade&gt;Baixa&lt;/desc_prioridade&gt;
                      &lt;/result&gt;
           &lt;/resultado&gt;
           &lt;result erro=&quot;&quot; cod_tipo_atendimento= &quot;-1&quot; desc_tipo_atendimento= &quot;Selecione&quot;&gt;&lt;cod_tipo_atendimento&gt;-1&lt;/cod_tipo_atendimento&gt;
                   &lt;desc_tipo_atendimento&gt;Selecione&lt;/desc_tipo_atendimento&gt;
           &lt;/result&gt;
           &lt;result erro=&quot;&quot; cod_tipo_atendimento=&quot;1&quot; desc_tipo_atendimento=&quot;Erro / problema&quot; desc_prioridade=&quot;Baixa&quot; cod_prioridade=&quot;1&quot;&gt;\n&lt;cod_tipo_atendimento&gt;1&lt;/cod_tipo_atendimento&gt;
                   &lt;desc_tipo_atendimento&gt;Erro / problema&lt;/desc_tipo_atendimento&gt;
           &lt;cod_prioridade&gt;1&lt;/cod_prioridade&gt;
                   &lt;desc_prioridade&gt;Baixa&lt;/desc_prioridade&gt;
           &lt;/result&gt;
           &lt;result erro=&quot;&quot; cod_tipo_atendimento=&quot;2&quot; desc_tipo_atendimento=&quot;Dúvida&quot; desc_prioridade=&quot;Baixa&quot; cod_prioridade=&quot;1&quot;&gt;\n&lt;cod_tipo_atendimento&gt;2&lt;/cod_tipo_atendimento&gt;
                   &lt;desc_tipo_atendimento&gt;Dúvida&lt;/desc_tipo_atendimento&gt;
                   &lt;cod_prioridade&gt;1&lt;/cod_prioridade&gt;
                   &lt;desc_prioridade&gt;Baixa&lt;/desc_prioridade&gt;
           &lt;/result&gt;
&lt;/resultset&gt;
&lt;/dataset&gt;

&lt;dataset name=&quot;dsSendPriorid&quot;&gt;
&lt;resultset&gt;
           &lt;geisa&gt;
                  &lt;result erro=&quot;&quot; cod_prioridade=&quot;1&quot; desc_prioridade=&quot;Baixa&quot; tempo_estimado=&quot;70&quot;&gt;\n&lt;cod_prioridade&gt;1&lt;/cod_prioridade&gt;
                          &lt;desc_prioridade&gt;Baixa&lt;/desc_prioridade&gt;
                          &lt;tempo_estimado&gt;70&lt;/tempo_estimado&gt;
                  &lt;/result&gt;
                  &lt;result erro=&quot;&quot; cod_prioridade=&quot;2&quot; desc_prioridade=&quot;Média&quot; tempo_estimado=&quot;15&quot;&gt;\n&lt;cod_prioridade&gt;2&lt;/cod_prioridade&gt;
                          &lt;desc_prioridade&gt;Média&lt;/desc_prioridade&gt;
                          &lt;tempo_estimado&gt;15&lt;/tempo_estimado&gt;
                  &lt;/result&gt;
                  &lt;result erro=&quot;&quot; cod_prioridade=&quot;3&quot; desc_prioridade=&quot;Alta&quot; tempo_estimado=&quot;1&quot;&gt;\n&lt;cod_prioridade&gt;3&lt;/cod_prioridade&gt;
                          &lt;desc_prioridade&gt;Alta&lt;/desc_prioridade&gt;
                          &lt;tempo_estimado&gt;1&lt;/tempo_estimado&gt;
                  &lt;/result&gt;
                  &lt;result erro=&quot;&quot; cod_prioridade=&quot;4&quot; desc_prioridade=&quot;hhhhhhhhh&quot; tempo_estimado=&quot;444&quot;&gt;\n&lt;cod_prioridade&gt;4&lt;/cod_prioridade&gt;
                          &lt;desc_prioridade&gt;hhhhhhhhh&lt;/desc_prioridade&gt;
                          &lt;tempo_estimado&gt;444&lt;/tempo_estimado&gt;
                  &lt;/result&gt;
           &lt;/geisa&gt;
           &lt;result erro=&quot;&quot; cod_prioridade=&quot;-1&quot; desc_prioridade=&quot;Selecione&quot; tempo_estimado=&quot;444&quot;&gt;\n&lt;cod_prioridade&gt;-1&lt;/cod_prioridade&gt;
                   &lt;desc_prioridade&gt;Selecione&lt;/desc_prioridade&gt;
                   &lt;tempo_estimado&gt;&lt;/tempo_estimado&gt;
           &lt;/result&gt;
           &lt;result erro=&quot;&quot; cod_prioridade=&quot;4&quot; desc_prioridade=&quot;hhhhhhhhh&quot; tempo_estimado=&quot;444&quot;&gt;\n&lt;cod_prioridade&gt;1&lt;/cod_prioridade&gt;
                   &lt;desc_prioridade&gt;Baixa&lt;/desc_prioridade&gt;
                   &lt;tempo_estimado&gt;70&lt;/tempo_estimado&gt;
           &lt;/result&gt;
           &lt;result erro=&quot;&quot; cod_prioridade=&quot;4&quot; desc_prioridade=&quot;hhhhhhhhh&quot; tempo_estimado=&quot;444&quot;&gt;\n&lt;cod_prioridade&gt;2&lt;/cod_prioridade&gt;
                   &lt;desc_prioridade&gt;Média&lt;/desc_prioridade&gt;
                   &lt;tempo_estimado&gt;15&lt;/tempo_estimado&gt;
           &lt;/result&gt;
           &lt;result erro=&quot;&quot; cod_prioridade=&quot;4&quot; desc_prioridade=&quot;hhhhhhhhh&quot; tempo_estimado=&quot;444&quot;&gt;\n&lt;cod_prioridade&gt;3&lt;/cod_prioridade&gt;
                   &lt;desc_prioridade&gt;Alta&lt;/desc_prioridade&gt;
                   &lt;tempo_estimado&gt;1&lt;/tempo_estimado&gt;
           &lt;/result&gt;
           &lt;result erro=&quot;&quot; cod_prioridade=&quot;4&quot; desc_prioridade=&quot;hhhhhhhhh&quot; tempo_estimado=&quot;444&quot;&gt;\n&lt;cod_prioridade&gt;4&lt;/cod_prioridade&gt;
                   &lt;desc_prioridade&gt;hhhhhhhhh&lt;/desc_prioridade&gt;
                   &lt;tempo_estimado&gt;444&lt;/tempo_estimado&gt;
           &lt;/result&gt;
&lt;/resultset&gt;
&lt;/dataset&gt;


&lt;!-- CLASSE DE CADASTRO DE TIPOS DE ATENDIMENTOS --&gt;
    &lt;class name=&quot;tipoatend&quot; extends=&quot;view&quot; visible=&quot;true&quot; height=&quot;120&quot;&gt;



           &lt;view y=&quot;125&quot; x=&quot;19&quot; height=&quot;26&quot; width=&quot;976&quot; resource=&quot;icons/topo9.png&quot; &gt;
                 &lt;text y=&quot;6&quot; x=&quot;301&quot; fgcolor=&quot;#104E8B&quot; align=&quot;center&quot;&gt;&lt;font face=&quot;verdana&quot;&gt;
                       &lt;b&gt;Cadastro de Tipos de Atendimento&lt;/b&gt;&lt;/font&gt;&lt;/text&gt;
           &lt;/view&gt;

           &lt;text x=&quot;295&quot; y=&quot;190&quot;&gt;Código&#58;&lt;/text&gt;
           &lt;edittext name=&quot;cod_tipo_atendimento&quot; datapath=&quot;@cod_tipo_atendimento&quot;
                     x=&quot;400&quot; y=&quot;185&quot; width=&quot;50&quot; enabled=&quot;false&quot; id=&quot;cod_tipo_atendimento&quot;/&gt;

           &lt;text x=&quot;295&quot; y=&quot;220&quot;&gt;Descrição&#58;&lt;/text&gt;
           &lt;edittext name=&quot;desc_tipo_atendimento&quot;  datapath=&quot;@desc_tipo_atendimento&quot;
                     x=&quot;400&quot; y=&quot;215&quot; width=&quot;300&quot; id=&quot;desc_tipo_atendimento&quot; maxlength=&quot;50&quot;/&gt;

           &lt;text x=&quot;295&quot; y=&quot;250&quot;&gt;Prioridade&#58;&lt;/text&gt;
           &lt;combobox id=&quot;cb_cod_prioridade3&quot; x=&quot;400&quot; y=&quot;245&quot;  name=&quot;cb_cod_prioridade3&quot;
                     width=&quot;190&quot; editable=&quot;false&quot; shownitems=&quot;3&quot;&gt;
                     &lt;textlistitem datapath=&quot;dsSendPriorid&#58;/resultset/result&quot; text=&quot;$path&#123;'desc_prioridade/text&#40;&#41;'&#125;&quot;
                                   value=&quot;$path&#123;'cod_prioridade/text&#40;&#41;'&#125;&quot;/&gt;
           &lt;/combobox&gt;

           &lt;text name=&quot;msn&quot;  width=&quot;300&quot; x=&quot;415&quot; y=&quot;295&quot; visible=&quot;false&quot; fgcolor=&quot;#B22222&quot;/&gt;

           &lt;method name=&quot;sendData&quot; args=&quot;action, param, param2&quot;&gt;
           &lt;!&#91;CDATA&#91;

                   var valtext = param.getText&#40;&#41;;
                   var valtext2 = param2.getText&#40;&#41;;
                   //Debug.write&#40; &quot;Entrou aqui! &quot; + valtext &#41;;
                   //Debug.write&#40; &quot;Entrou aqui2! &quot; + valtext2 &#41;;
                   var msg= '';

                   if &#40;action == &quot;insert&quot;&#41;
                   &#123;
                        if&#40;&#40;valtext == &quot;&quot;&#41;&amp;&amp;&#40;&#40;valtext2 == &quot;&quot;&#41;||&#40;valtext2 == &quot;Selecione&quot;&#41;&#41;&#41;
                        &#123;
                              canvas.myalert13.open&#40;&#41;;
                              msg=&quot;Erro.&quot;;
				              return false;
                        &#125;
                        else if&#40;&#40;valtext == &quot;&quot;&#41;&amp;&amp;&#40;&#40;valtext2 != &quot;&quot;&#41;||&#40;valtext2 != &quot;Selecione&quot;&#41;&#41;&#41;
                        &#123;
                              canvas.myalert13.open&#40;&#41;;
                              msg=&quot;Erro.&quot;;
				              return false;
                        &#125;
                        else if&#40;&#40;valtext != &quot;&quot;&#41;&amp;&amp;&#40;&#40;valtext2 == &quot;&quot;&#41;||&#40;valtext2 == &quot;Selecione&quot;&#41;&#41;&#41;
                        &#123;
                              canvas.myalert14.open&#40;&#41;;
                              msg=&quot;Erro.&quot;;
				              return false;
                        &#125;
                   &#125;

                   if &#40;msg==&quot;&quot;&#41;
                   &#123;
                        var d=canvas.datasets.dsSendTipo;
                        var p=new LzParam&#40;&#41;;

                        p.addValue&#40;&quot;action&quot;, action, true&#41;;
                        p.addValue&#40;&quot;cod_tipo_atendimento&quot;, cod_tipo_atendimento.getText&#40;&#41;, true&#41;;
                        p.addValue&#40;&quot;desc_tipo_atendimento&quot;, desc_tipo_atendimento.getText&#40;&#41;, true&#41;;
                        p.addValue&#40;&quot;cod_prioridade&quot;, cb_cod_prioridade3.getValue&#40;&#41;, true&#41;;
                        d.setQueryString&#40;p&#41;;
                        d.doRequest&#40;&#41;;
                        cod_tipo_atendimento.setText&#40;&quot;&quot;&#41;;
                        desc_tipo_atendimento.setText&#40;&quot;&quot;&#41;;
                        cb_cod_prioridade3.clearSelection&#40;&quot;&quot;&#41;;
                        if&#40;action == &quot;insert&quot;&#41;
                        &#123;
                             msn.setText&#40;&quot;Dados incluídos com sucesso!&quot;&#41;;
                             msn.setVisible&#40;true&#41;;
                        &#125;
                        else
                        &#123;
                             msn.setText&#40;&quot;Dados excluídos com sucesso!&quot;&#41;;
                             msn.setVisible&#40;true&#41;;
                        &#125;
                   &#125;
        &#93;&#93;&gt;
        &lt;/method&gt;

        &lt;button width=&quot;100&quot; y=&quot;315&quot; x=&quot;355&quot;&gt;Gravar
        &lt;handler name=&quot;onclick&quot;&gt;
                 parent.sendData&#40;&quot;insert&quot;,desc_tipo_atendimento,cb_cod_prioridade3 &#41;;
                 parent.datapath.updateData&#40;&#41;;
        &lt;/handler&gt;
        &lt;/button&gt;

        &lt;button width=&quot;100&quot; y=&quot;315&quot; x=&quot;455&quot;&gt;Excluir
        &lt;handler name=&quot;onclick&quot;&gt;
                 parent.sendData&#40;&quot;delete&quot;, 0,0&#41;;
                 parent.datapath.updateData&#40;&#41;;
        &lt;/handler&gt;
        &lt;/button&gt;

        &lt;button width=&quot;100&quot; y=&quot;315&quot; x=&quot;555&quot;&gt;Limpar
        &lt;handler name=&quot;onclick&quot;&gt;
                 parent.cod_tipo_atendimento.setText&#40;&quot;&quot;&#41;;
                 parent.desc_tipo_atendimento.setText&#40;&quot;&quot;&#41;;
                 cb_cod_prioridade3.clearSelection&#40;&quot;&quot;&#41;;
                 parent.msn.setText&#40;&quot;&quot;&#41;;
        &lt;/handler&gt;
        &lt;/button&gt;

        &lt;grid height=&quot;300&quot; x=&quot;205&quot; y=&quot;355&quot; datapath=&quot;dsSendTipo&#58;/resultset/resultado&quot;&gt;

              &lt;gridcolumn  width=&quot;130&quot;&gt;Código
                           &lt;text datapath=&quot;@cod_tipo_atendimento&quot;
                                 onclick=&quot;newtipoatend.datapath.setPointer&#40;this.datapath.p&#41;&quot;/&gt;
              &lt;/gridcolumn&gt;
              &lt;gridcolumn width=&quot;350&quot;&gt;Descrição
                          &lt;text datapath=&quot;@desc_tipo_atendimento&quot;
                                onclick=&quot;newtipoatend.datapath.setPointer&#40;this.datapath.p&#41;&quot;/&gt;
              &lt;/gridcolumn&gt;
              &lt;gridcolumn width=&quot;120&quot;&gt;Prioridade
                          &lt;text  datapath=&quot;@desc_prioridade&quot;
                                 onclick=&quot;newtipoatend.datapath.setPointer&#40;this.datapath.p&#41;&quot;/&gt;
              &lt;/gridcolumn&gt;
        &lt;/grid&gt;
    &lt;/class&gt;

<tipoatend name="newtipoatend" id="newtipoatend" visible="true" datapath="dsSendTipo:/tipoatend"/>
</canvas>[/code][/b]

[color=“violet”]
Consegui uma solução: não sei se é a correta mas funcionou:
Criei um campo edittext (visible=false) que vai receber o meu “cod_prioridade”… aí quando clico no grid, esse campo recebe o valor do point… e depois eu seto o valor no combo… ficou assim:
[/color]

&lt;gridcolumn width=&quot;130&quot;&gt;Código &lt;text datapath=&quot;@cod_tipo_atendimento&quot; onclick=&quot;newtipoatend.datapath.setPointer&#40;this.datapath.p&#41; ,newtipoatend.cb_cod_prioridade3.selectItemAt&#40;teste.getText&#40;&#41;&#41;&quot;/&gt; &lt;/gridcolumn&gt;
[color=“violet”]Pelo menos deu certo!!! Obrigada :D:D:D[/color]