<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">Thank for replying,<br><br>There is no exception. Here is my code:<br><br>try <br>{ <br>MgInitializeWebTier ($configFilePath); <br>$userInfo = new MgUserInformation($sessionId); <br>$siteConnection = new MgSiteConnection(); <br>$siteConnection->Open($userInfo); <br><br>$resourceService = $siteConnection->CreateService(MgServiceType::ResourceService); <br>$map = new MgMap($siteConnection);<br>$map->Open($mapName);<br><br>$featureService = $siteConnection->CreateService(MgServiceType::FeatureService); <br><br>$queryOptions = new MgFeatureQueryOptions(); <br>$queryOptions->SetFilter("FeatId > 0"); <br>$layer = $map->GetLayers()->GetItem("District");<br>$featureResId = new
MgResourceIdentifier($layer->GetFeatureSourceId());<br><br>$featureReader = $featureService->SelectFeatures($featureResId, $layer->GetFeatureClassName(), $queryOptions);<br><br>while ($featureReader->ReadNext()) <br>{ <br> echo $featureReader->GetInt32('DistrictID') . "<br />"; <br>} <br>$featureReader->Close(); <br><br>} <br>catch (MgException $e) <br>{ <br> echo $e->GetMessage(); <br> echo $e->GetDetails(); <br>}<br><br>I have more than 300 record in layer District, but I can only see 100 record out of 300. I don't know what wrong..<br><br><br>Thanx,<br><br><br>Ary Sucaya<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Bruce Dechant <bruce.dechant@autodesk.com><br>To: MapGuide Users Mail List <mapguide-users@lists.osgeo.org><br>Sent: Tuesday, December 11, 2007 8:30:29
PM<br>Subject: RE: [mapguide-users] FeatureReader<br><br>
<style>
<!--
_filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle17
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
.MsoChpDefault
        {font-size:10.0pt;}
_filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {}
-->
</style>
<div class="Section1">
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">There is no limit. Is an exception being thrown? If so that
would give you a clue as to why it is not working as expected.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Thanks,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Bruce</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">From:</span></b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">
mapguide-users-bounces@lists.osgeo.org [mailto:mapguide-users-bounces@lists.osgeo.org]
<b>On Behalf Of </b>ary sucaya<br>
<b>Sent:</b> Monday, December 10, 2007 9:20 AM<br>
<b>To:</b> Mapguide User<br>
<b>Subject:</b> [mapguide-users] FeatureReader</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">Hii
group,</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">I
have a problem with feature reader. I have a sdf layer joined with external
table and i can't make a looping for all of this records. It's always jump out
the loop after 100 records. I tried the same code with different sdf layer
without join to external layer, it's work well. </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">Is
there any limitation of joined layer in MapGuide 1.2? Anyone can help me?</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">regards,</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">Ary
Sucaya</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div class="MsoNormal" style="text-align: center;" align="center">
<hr align="center" size="1" width="100%">
</div>
<p class="MsoNormal">Looking for last minute shopping deals? <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearch/category.php?category=shopping">Find
them fast with Yahoo! Search.</a></p>
</div>
</div><br></div></div><br>
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>