<div>Hi Ronnie,</div>  <div>&nbsp;</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks for your kind reply,Actually first i tried to work with SQL Server 2005 and storing Geometry data using Map3D2008 and i manage to create datastore and edit,delete update etc from Map3D 2008 then i tried to use it for the web and tried to theme and modify using the ADSK Mapguide studio 2008 but here the problem start arising and i unable to get the properties and other things in the mapguide studio although i able to manage connection ang get new feature classes etc but unable to view and when i try to change some themeing condition it use to give error that some table doesn not exists although i can easily work with map3D 2008 with the same table,so then i tried to work with SDF and joined the&nbsp;SDF file&nbsp;with SQL server2005 Views and i tried to query but as you told that it will filter only on primary source of join so i tried to
 set filter on the primary source of the joined feature source,</div>  <div>&nbsp;</div>  <div>$name = trim($_GET['sDeed']);</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (strlen($name) &gt; 0 )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; $n=$name+0.0;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;echo gettype($n);----------------------&gt;Double</div>  <div>&nbsp;</div>  <div>&nbsp;&nbsp; $filter="ID=".$n; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>  <div>&nbsp;&nbsp;&nbsp; $featureResId = new MgResourceIdentifier("Library://ABC/Data/Estates.FeatureSource");</div>  <div><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $queryOptions = new MgFeatureQueryOptions();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $queryOptions-&gt;SetFilter($filter);</div> 
 <div>&nbsp;</div>  <div>This use to give the following error in the joined feature source with filter on primary source-</div>  <div>&nbsp;</div>  <div><FONT color=#bf005f>Double</FONT></div>  <div>  <TABLE width="100%" border=0><FONT color=#bf005f>ID=1The Property Type is invalid.The Property Type is invalid. Exception occurred in method MgProxyGwsFeatureReader.GetProperty at line 403 in file c:\build_bond_area\bond_nightly\build_41.3\ent\os\common\mapguidecommon\Services/ProxyGwsFeatureReader.cpp</FONT>  <TBODY><FONT color=#bf005f></FONT></TBODY></TABLE></div>  <div>&nbsp;</div>  <div>but when i use the same filter on the SDF File(not Joined)&nbsp;it use to give me the result ,so can you tell me what i am missing or doing wrong and how can i proceed with working SQL Server 2005 and Autodesk MapGuide Studio 2008.</div>  <div>&nbsp;</div>  <div>Thanks</div>  <div>Max<BR><BR><B><I>Ronnie Louie &lt;ronnie.louie@autodesk.com&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq
 style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <META content="Microsoft Word 12 (filtered medium)" name=Generator>  <STYLE>  v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}  </STYLE>    <STYLE>  <!--   /* Font Definitions */   @font-face   {font-family:Calibri;   panose-1:2 15 5 2 2 2 4 3 2 4;}  @font-face   {font-family:Tahoma;   panose-1:2 11 6 4 3 5 4 4 2 4;}  @font-face   {font-family:CourierNewPSMT;   panose-1:0 0 0 0 0 0 0 0 0 0;}   /* 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   {mso-style-priority:99;   color:blue;   text-decoration:underline;}  a:visited, span.MsoHyperlinkFollowed   {mso-style-priority:99;   color:purple;   text-decoration:underline;}  p   {mso-style-priority:99;  
 mso-margin-top-alt:auto;   margin-right:0in;   mso-margin-bottom-alt:auto;   margin-left:0in;   font-size:12.0pt;   font-family:"Times New Roman","serif";}  span.EmailStyle18   {mso-style-type:personal-reply;   font-family:"Calibri","sans-serif";   color:#1F497D;}  .MsoChpDefault   {mso-style-type:export-only;}  @page Section1   {size:8.5in 11.0in;   margin:1.0in 1.0in 1.0in 1.0in;}  div.Section1   {page:Section1;}  -->  </STYLE>    <DIV class=Section1>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hi Max,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">When you have join of SDF to SQL Server feature source, you can only define
 a filter for the fields from the primary source of the join (i.e. the properties in the SDF).&nbsp; It is not currently possible to setup a filter for the secondary feature source of a join (i.e. the SQL Server datasource properties).&nbsp; Depending on what you a trying to achieve, you may be able to get similar desired result by setting up an appropriate theme based on the properties from the secondary feature source.<o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Ronnie<o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY:
 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></div>  <DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">  <div 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'"> Rahul [mailto:unicorn_admirer@yahoo.com] <BR><B>Sent:</B> Thursday, September 06, 2007 3:27 AM<BR><B>To:</B> MapGuide Users Mail List<BR><B>Subject:</B> [mapguide-users] SDF &amp; SQL Server 2005 Joined Feature Source<o:p></o:p></SPAN></div></DIV>  <div class=MsoNormal><o:p>&nbsp;</o:p></div>  <DIV>  <div class=MsoNormal>Hi All,<o:p></o:p></div></DIV>  <DIV>  <div class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I tried to join the SDF faeture source spatial data with the SQL Server 2005 Views(non spatial data)&nbsp;,I manage
 to get the new joined feature source and get the attributes in the property pane&nbsp; but i stuck in the Search criteria and when i tried to search&nbsp; the joined feature class using the filter like -<o:p></o:p></div></DIV>  <DIV>  <div class=MsoNormal>&nbsp;<o:p></o:p></div></DIV>  <DIV>  <div class=MsoNormal>$filter ="LU_STATUS = '" . $status ."'"." and " . "PD_GROUP= '".$group."'"." and " . "SHAREHOLDE= '".$share."'"." or " . "PROMOTION= '".$plan."'";<o:p></o:p></div></DIV>  <DIV>  <div class=MsoNormal>&nbsp;<o:p></o:p></div></DIV>  <div class=MsoNormal><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'CourierNewPSMT','serif'">$queryOptions = new MgFeatureQueryOptions();<o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'CourierNewPSMT','serif'">$queryOptions-&gt;SetFilter($filter);<o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'CourierNewPSMT','serif'">&nbsp;<o:p></o:p></SPAN></div>  <div
 class=MsoNormal><SPAN style="FONT-FAMILY: 'CourierNewPSMT','serif'">I unable to get any values and it use to give no search found.Can anybody help me regarding this issue and where i can get&nbsp; some detail for working with SQL commands on the feature source ,i tried in the mapagent some basic sql commands but it use to give error and i cannot find the way to go with them.</SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'CourierNewPSMT','serif'"><o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'CourierNewPSMT','serif'">&nbsp;<o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'CourierNewPSMT','serif'">Thanks<o:p></o:p></SPAN></div>  <div class=MsoNormal><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'CourierNewPSMT','serif'">Max<o:p></o:p></SPAN></div>  <DIV>  <div class=MsoNormal><BR><BR>&nbsp;<o:p></o:p></div></DIV>  <div>&nbsp; <o:p></o:p></div>  <DIV class=MsoNormal style="TEXT-ALIGN:
 center" align=center>  <HR align=center width="100%" SIZE=1>  </DIV>  <div class=MsoNormal>Yahoo! oneSearch: Finally, <A href="http://us.rd.yahoo.com/evt=48252/*http:/mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC">mobile search that gives answers</A>, not web links. <o:p></o:p></div></DIV>_______________________________________________<BR>mapguide-users mailing list<BR>mapguide-users@lists.osgeo.org<BR>http://lists.osgeo.org/mailman/listinfo/mapguide-users<BR></BLOCKQUOTE><BR><p>&#32;
      <hr size=1>Moody friends. Drama queens. Your life? Nope! - their life, your story.<br> <a href="http://us.rd.yahoo.com/evt=48224/*http://sims.yahoo.com/">Play Sims Stories at Yahoo! Games. </a>