This is probably the most frequently asked question :) and I've seen  
so many variations in the forums, but none of them solved my problem.

I have the following code:

<grid name="results" width="${parent.width}" height="${parent.height}"
          rowheight="20" multiselect="false" basecolor0="$ 
{this.style.basecolor}"
          datapath="countryds:/response/countries/">
   <gridtext width="30" editable="false" sortable="false"  
datapath="position()">#</gridtext>
   <gridtext width="40" editable="false" datapath="@code">Code</ 
gridtext>
   <gridtext width="280" editable="false" datapath="@name">Name</ 
gridtext>
   <gridcolumn sortable="false" width="50">
     <button name="edit"
                  onclick="Debug.write('edit button',  
parent.parent.dataset.xpathQuery('@code') );"
                  width="45">Edit</button>
   </gridcolumn>
</grid>

I'm trying to get the some sort of a reference to the row that  
corresponds to where the Edit button was clicked. I've tried the  
following:

parent.parent.getSelection but returns null since the row is not  
actually selected, just the button is clicked

Any ideas?

Thanks again,
Daniel
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to