<div>Hello guys...</div>
<div>I have a table with a character(11) PK...</div>
<div>When I trie to get the shapes with&nbsp;queryByRect, all&nbsp;results are with shapeindex equal 0 (zero) ...</div>
<div>If I tried that with a table with a integer PK, everthing works perfect..</div>
<div>My code:</div>
<div>
<p>layerObj _layer = mapObj.getLayerByName(__layer);<br>if (_layer.queryByRect(mapObj, _oGeo) == 0)<br>{<br>&nbsp;&nbsp; for (int i = 0; i &lt; _layer.getNumResults(); i++)<br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; resultCacheMemberObj _result = _layer.getResult(i);&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp; //_result.shapeindex == 0&nbsp;<br>&nbsp;&nbsp;&nbsp; shapeObj _obj = new shapeObj(-1); //dummy<br>&nbsp;&nbsp; _layer.open();<br>&nbsp;&nbsp; _layer.getShape(_obj, -1, _result.shapeindex);<br>&nbsp; }<br>}</p>
<p>&nbsp;</p>
<p>Any solutions?<br></p>
<p>[]īs</p></div>