<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18999">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#008000 size=2 face=Arial><STRONG>BOA TARDE, ... PRECISO DE UM 
HELP URGENTE E NÃO SEI MAIS AONDE CORRER....</STRONG></FONT></DIV>
<DIV><FONT color=#008000 size=2 face=Arial><STRONG></STRONG></FONT>&nbsp;</DIV>
<DIV><STRONG><FONT color=#008000 size=2 face=Arial>ESTOU COM UM PROBLEMA PARA 
FAZER A SELEÇÃO DE UM LOTE, FAZENDO PELO TASK PANE ELE FAZ.. MAS VOU TER QUE 
CHAMAR ESSA INSCRIÇÃO EXTERNAMENTE.. SEM ESTAR COM NENHUM MAPA ABERTO.. ENTÃO 
TENHO UMA PAGINA WEB COM TODAS AS INSCRIÇÕES QDO CLICO TEM Q ABRIR O MAPA COM UM 
ZOOM E SELECIONADO AQUELE LOTE DAQUELA INSCRIÇÃO. E ESTÁ ME DANDO ESSE 
ERRO:<BR></FONT><FONT size=2 face=Arial><FONT color=#ff0000 
size=3></FONT></FONT></STRONG></DIV>
<DIV><FONT size=2 face=Arial><FONT color=#ff0000 size=3><STRONG>Resource was not 
found: 
Session:0f752a3a-0624-102e-8000-000c2927b627_en_7F0000010AF20AF10AF0//MAPA_SCIM.Map<BR><BR></STRONG><FONT 
color=#008000 size=2><STRONG>MEU CÓDIGO ABAIXO:<BR><BR></STRONG><FONT size=2>
<P align=left></FONT><STRONG><FONT color=#008080 size=2><FONT color=#008080 
size=2>&lt;</FONT></FONT><FONT color=#3f7f7f size=2><FONT color=#3f7f7f 
size=2>html</FONT></FONT><FONT color=#008080 size=2><FONT color=#008080 
size=2>&gt;</P></FONT></FONT></STRONG><FONT size=2>
<P align=left></P>
<P align=left></FONT><STRONG><FONT color=#008080 size=2><FONT color=#008080 
size=2>&lt;</FONT></FONT><FONT color=#3f7f7f size=2><FONT color=#3f7f7f 
size=2>body</FONT></FONT><FONT size=2> </FONT><FONT color=#7f007f size=2><FONT 
color=#7f007f size=2>class</FONT></FONT><FONT size=2>=</FONT><I><FONT 
color=#2a00ff size=2><FONT color=#2a00ff 
size=2>"AppFrame"</I></STRONG></FONT></FONT><STRONG><FONT size=2> </FONT><FONT 
color=#7f007f size=2><FONT color=#7f007f size=2>onLoad</FONT></FONT><FONT 
size=2>=</FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff 
size=2>"Selecao()"</FONT></FONT><FONT color=#008080 size=2><FONT color=#008080 
size=2>&gt;</P></FONT></FONT></STRONG><FONT size=2>
<P align=left></P>
<P align=left></FONT><FONT color=#ff0000 size=2><FONT color=#ff0000 
size=2><STRONG>&lt;?php</STRONG></P></FONT></FONT><FONT size=2>
<P align=left></FONT><STRONG><FONT color=#7f0055 size=2><FONT color=#7f0055 
size=2>include </FONT></FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 
size=2>'/mapguide2010/mapviewerphp/common.php'</FONT></FONT></STRONG><FONT 
size=2><STRONG>;</STRONG></P>
<P align=left></FONT><STRONG><FONT color=#7f0055 size=2><FONT color=#7f0055 
size=2>include </FONT></FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 
size=2>'chamando_mapa.php'</FONT></FONT></STRONG><FONT 
size=2><STRONG>;</STRONG></P>
<P align=left></FONT><STRONG><FONT color=#7f0055 size=2><FONT color=#7f0055 
size=2>include </FONT></FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 
size=2>'/mapguide2010/mapviewerphp/constants.php'</FONT></FONT></STRONG><FONT 
size=2><STRONG>;</STRONG></P>
<P align=left></FONT><FONT color=#7f0055 size=2><FONT color=#7f0055 
size=2><STRONG>try</STRONG></P>
<P align=left></FONT></FONT><FONT size=2><FONT color=#000000>{</FONT></P>
<P align=left><STRONG>MgInitializeWebTier ($configFilePath);</STRONG></P>
<P align=left></P>
<P align=left><STRONG>$userInfo = </STRONG></FONT><FONT color=#7f0055 
size=2><FONT color=#7f0055 size=2><STRONG>new </STRONG></FONT></FONT><FONT 
size=2><STRONG>MgUserInformation($sessionId);</STRONG></P>
<P align=left><STRONG>$siteConnection = </STRONG></FONT><FONT color=#7f0055 
size=2><FONT color=#7f0055 size=2><STRONG>new </STRONG></FONT></FONT><FONT 
size=2><STRONG>MgSiteConnection();</STRONG></P>
<P align=left><STRONG>$siteConnection-&gt;Open($userInfo);</STRONG></P>
<P align=left></P>
<P 
align=left><STRONG>$featureService=$siteConnection-&gt;CreateService(2);</STRONG></P>
<P align=left><STRONG>$resourceID = </STRONG></FONT><STRONG><FONT color=#7f0055 
size=2><FONT color=#7f0055 size=2>new </FONT></FONT><FONT 
size=2>MgResourceIdentifier(</FONT><FONT color=#0000c0 size=2><FONT 
color=#0000c0 
size=2>"Library://GUARUJA/CTM_SCIM/MAPA/MAPA_SCIM.MapDefinition"</FONT></FONT></STRONG><FONT 
size=2><STRONG>);</STRONG></P>
<P align=left><STRONG>$mapName = $resourceID-&gt;GetName();</STRONG></P>
<P align=left><STRONG>$map = </STRONG></FONT><FONT color=#7f0055 size=2><FONT 
color=#7f0055 size=2><STRONG>new </STRONG></FONT></FONT><FONT 
size=2><STRONG>MgMap($siteConnection);</STRONG></P>
<P 
align=left><STRONG>$map-&gt;Create($resourceID,$mapName);</STRONG></P></FONT><FONT 
size=2>
<P align=left></P>
<P align=left><STRONG>$map-&gt;Open($mapName);</STRONG></P>
<P align=left></P>
<P align=left><STRONG>$map-&gt;Save($mapName);</STRONG></P>
<P align=left></P></FONT><FONT size=2>
<P align=left><STRONG>$selection=</STRONG></FONT><FONT color=#7f0055 
size=2><FONT color=#7f0055 size=2><STRONG>new </STRONG></FONT></FONT><FONT 
size=2><STRONG>MgSelection($map);</STRONG></P>
<P align=left><STRONG>$query=</STRONG></FONT><FONT color=#7f0055 size=2><FONT 
color=#7f0055 size=2><STRONG>new </STRONG></FONT></FONT><FONT 
size=2><STRONG>MgFeatureQueryOptions();</STRONG></P>
<P align=left><STRONG>$query-&gt;SetFilter(</STRONG></FONT><FONT color=#0000c0 
size=2><FONT color=#0000c0 size=2><STRONG>"ZONA='0' AND 
SETOR='0077'"</STRONG></FONT></FONT><FONT size=2><STRONG>);</STRONG></P>
<P align=left></P>
<P align=left><STRONG>$DataResId= </STRONG></FONT><STRONG><FONT color=#7f0055 
size=2><FONT color=#7f0055 size=2>new </FONT></FONT><FONT 
size=2>MgResourceIdentifier(</FONT><FONT color=#0000c0 size=2><FONT 
color=#0000c0 
size=2>'Library://GUARUJA/LAYERS/Data/quadras.FeatureSource'</FONT></FONT></STRONG><FONT 
size=2><STRONG>);</STRONG></P>
<P align=left><STRONG>$layerFeatureClassName = 
$layer-&gt;GetFeatureClassName();</STRONG></P>
<P 
align=left><STRONG>$FeatureReader=$featureService-&gt;SelectFeatures($DataResId, 
$layerFeatureClassName,$query);</STRONG></P>
<P 
align=left><STRONG>$layer=$map-&gt;GetLayers()-&gt;GetItem(</STRONG></FONT><FONT 
color=#0000c0 size=2><FONT color=#0000c0 
size=2><STRONG>'quadras'</STRONG></FONT></FONT><FONT 
size=2><STRONG>);</STRONG></P></FONT><FONT size=2>
<P 
align=left><STRONG>$selection-&gt;AddFeatures($layer,$FeatureReader,0);</STRONG></P>
<P 
align=left><STRONG>$selectionXml=$selection-&gt;ToXml();</STRONG></P></FONT><FONT 
size=2>
<P align=left><STRONG>}</STRONG></P>
<P align=left></FONT><FONT color=#7f0055 size=2><FONT color=#7f0055 
size=2><STRONG>catch </STRONG></FONT></FONT><FONT size=2><STRONG>(MgException 
$e)</STRONG></P>
<P align=left><STRONG>{</STRONG></P>
<P align=left></FONT><STRONG><FONT color=#7f0055 size=2><FONT color=#7f0055 
size=2>echo </FONT></FONT><FONT size=2>$e-&gt;GetMessage().</FONT><FONT 
color=#0000c0 size=2><FONT color=#0000c0 
size=2>'&lt;br&gt;'</FONT></FONT></STRONG><FONT size=2><STRONG>;</STRONG></P>
<P align=left></FONT><STRONG><FONT color=#7f0055 size=2><FONT color=#7f0055 
size=2>echo </FONT></FONT><FONT size=2>$e-&gt;GetDetails().</FONT><FONT 
color=#0000c0 size=2><FONT color=#0000c0 
size=2>'&lt;br&gt;'</FONT></FONT></STRONG><FONT 
size=2><STRONG>;</STRONG></P></FONT><FONT size=2>
<P align=left></FONT><STRONG><FONT color=#7f0055 size=2><FONT color=#7f0055 
size=2>echo </FONT></FONT><FONT size=2>$mapName.</FONT><FONT color=#0000c0 
size=2><FONT color=#0000c0 size=2>'&lt;br&gt;'</FONT></FONT></STRONG><FONT 
size=2><STRONG>;</STRONG></P></FONT><FONT size=2>
<P align=left><STRONG>}</STRONG></P></FONT><FONT color=#ff0000 size=2><FONT 
color=#ff0000 size=2>
<P align=left><STRONG>?&gt;</STRONG></P></FONT></FONT><FONT size=2>
<P align=left></P>
<P align=left></P>
<P align=left></FONT><STRONG><FONT color=#008080 size=2><FONT color=#008080 
size=2>&lt;</FONT></FONT><FONT color=#3f7f7f size=2><FONT color=#3f7f7f 
size=2>script</FONT></FONT><FONT size=2> </FONT><FONT color=#7f007f size=2><FONT 
color=#7f007f size=2>language</FONT></FONT><FONT size=2>=</FONT><I><FONT 
color=#2a00ff size=2><FONT color=#2a00ff 
size=2>"javascript"</I></STRONG></FONT></FONT><FONT color=#008080 size=2><FONT 
color=#008080 size=2><STRONG>&gt;</STRONG></P></FONT></FONT><FONT size=2>
<P align=left></P>
<P align=left></FONT><FONT color=#7f0055 size=2><FONT color=#7f0055 
size=2><STRONG>function</STRONG></FONT></FONT><FONT size=2><STRONG> 
Selecao()</STRONG></P>
<P align=left><STRONG>{</STRONG></P></FONT><FONT size=2>
<P align=left><STRONG>selectionXml = '</STRONG></FONT><STRONG><FONT 
color=#ff0000 size=2><FONT color=#ff0000 size=2>&lt;?php</FONT></FONT><FONT 
size=2> </FONT><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>echo 
</FONT></FONT><FONT size=2>$selectionXml; </FONT><FONT color=#ff0000 
size=2><FONT color=#ff0000 size=2>?&gt;</FONT></FONT><FONT color=#2a00ff 
size=2><FONT color=#2a00ff size=2>';</P></FONT></FONT></STRONG><FONT size=2>
<P align=left><STRONG>quadras.SetSelectionXML(selectionXml);</STRONG></P>
<P align=left><STRONG>quadras.ExecuteMapAction(10); </STRONG></P>
<P align=left><STRONG>}</STRONG></P>
<P align=left></FONT><STRONG><FONT color=#008080 size=2><FONT color=#008080 
size=2>&lt;/</FONT></FONT><FONT color=#3f7f7f size=2><FONT color=#3f7f7f 
size=2>script</FONT></FONT><FONT color=#008080 size=2><FONT color=#008080 
size=2>&gt;</P></FONT></FONT></STRONG><FONT size=2>
<P align=left></FONT><STRONG><FONT color=#008080 size=2><FONT color=#008080 
size=2>&lt;/</FONT></FONT><FONT color=#3f7f7f size=2><FONT color=#3f7f7f 
size=2>body</FONT></FONT><FONT color=#008080 size=2><FONT color=#008080 
size=2>&gt;</P></FONT></FONT></STRONG><FONT size=2>
<P align=left></FONT><STRONG><FONT color=#008080 size=2><FONT color=#008080 
size=2>&lt;</FONT></FONT><FONT color=#3f7f7f size=2><FONT color=#3f7f7f 
size=2>input</FONT></FONT><FONT size=2> </FONT><FONT color=#7f007f size=2><FONT 
color=#7f007f size=2>type</FONT></FONT><FONT size=2>=</FONT><I><FONT 
color=#2a00ff size=2><FONT color=#2a00ff 
size=2>"button"</I></STRONG></FONT></FONT><STRONG><FONT size=2> </FONT><FONT 
color=#7f007f size=2><FONT color=#7f007f size=2>name</FONT></FONT><FONT 
size=2>=</FONT><I><FONT color=#2a00ff size=2><FONT color=#2a00ff 
size=2>"Filtar"</I></STRONG></FONT></FONT><STRONG><FONT size=2> </FONT><FONT 
color=#7f007f size=2><FONT color=#7f007f size=2>value</FONT></FONT><FONT 
size=2>=</FONT><I><FONT color=#2a00ff size=2><FONT color=#2a00ff 
size=2>"Filtrar"</I></STRONG></FONT></FONT><STRONG><FONT size=2> </FONT><FONT 
color=#7f007f size=2><FONT color=#7f007f size=2>onclick</FONT></FONT><FONT 
size=2>=</FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff 
size=2>"Selecao()"</FONT></FONT><FONT size=2> </FONT><FONT color=#008080 
size=2><FONT color=#008080 size=2>/&gt;</P></FONT></FONT></STRONG><FONT size=2>
<P align=left></FONT><STRONG><FONT color=#008080 size=2><FONT color=#008080 
size=2>&lt;</FONT></FONT><FONT color=#3f7f7f size=2><FONT color=#3f7f7f 
size=2>br</FONT></FONT><FONT size=2> </FONT><FONT color=#008080 size=2><FONT 
color=#008080 size=2>/&gt;</P></FONT></FONT></STRONG><FONT size=2>
<P align=left></FONT><STRONG><FONT color=#008080 size=2><FONT color=#008080 
size=2>&lt;</FONT></FONT><FONT color=#3f7f7f size=2><FONT color=#3f7f7f 
size=2>iframe</FONT></FONT><FONT size=2> </FONT><FONT color=#7f007f size=2><FONT 
color=#7f007f size=2>id</FONT></FONT><FONT size=2>=</FONT><I><FONT color=#2a00ff 
size=2><FONT color=#2a00ff 
size=2>"quadras"</I></STRONG></FONT></FONT><STRONG><FONT size=2> </FONT><FONT 
color=#7f007f size=2><FONT color=#7f007f size=2>name</FONT></FONT><FONT 
size=2>=</FONT><I><FONT color=#2a00ff size=2><FONT color=#2a00ff 
size=2>"quadras"</I></STRONG></FONT></FONT><STRONG><FONT size=2> </FONT><FONT 
color=#7f007f size=2><FONT color=#7f007f size=2>style</FONT></FONT><FONT 
size=2>="</FONT><FONT color=#7f007f size=2><FONT color=#7f007f 
size=2>width</FONT></FONT><FONT size=2>:</FONT><I><FONT color=#2a00e1 
size=2><FONT color=#2a00e1 size=2>800px</I></STRONG></FONT></FONT><STRONG><FONT 
size=2>;</FONT><FONT color=#7f007f size=2><FONT color=#7f007f 
size=2>height</FONT></FONT><FONT size=2>:</FONT><I><FONT color=#2a00e1 
size=2><FONT color=#2a00e1 size=2>600px</I></STRONG></FONT></FONT><STRONG><FONT 
size=2>" </FONT><FONT color=#7f007f size=2><FONT color=#7f007f 
size=2>src</FONT></FONT><FONT size=2>="</FONT><I><FONT color=#2a00ff 
size=2><FONT color=#2a00ff 
size=2>/mapguide2010/mapviewerphp/ajaxviewer.php?SESSION=</I></STRONG></FONT></FONT><STRONG><FONT 
color=#ff0000 size=2><FONT color=#ff0000 size=2>&lt;?php</FONT></FONT><FONT 
size=2> </FONT><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>echo 
</FONT></FONT><FONT size=2>$sessionId; </FONT><FONT color=#ff0000 size=2><FONT 
color=#ff0000 size=2>?&gt;</FONT></FONT><I><FONT color=#2a00ff size=2><FONT 
color=#2a00ff size=2>&amp;WEBLAYOUT=</I></STRONG></FONT></FONT><STRONG><FONT 
color=#ff0000 size=2><FONT color=#ff0000 size=2>&lt;?php</FONT></FONT><FONT 
size=2> </FONT><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>echo 
</FONT></FONT><FONT size=2>$scimLayout; </FONT><FONT color=#ff0000 size=2><FONT 
color=#ff0000 size=2>?&gt;</FONT></FONT><FONT size=2>"</FONT><FONT color=#008080 
size=2><FONT color=#008080 size=2>&gt;&lt;/</FONT></FONT><FONT color=#3f7f7f 
size=2><FONT color=#3f7f7f size=2>iframe</FONT></FONT><FONT color=#008080 
size=2><FONT color=#008080 size=2>&gt;</P></FONT></FONT></STRONG><FONT size=2>
<P align=left></FONT><STRONG><FONT color=#008080 size=2><FONT color=#008080 
size=2>&lt;/</FONT></FONT><FONT color=#3f7f7f size=2><FONT color=#3f7f7f 
size=2>html</FONT></FONT><FONT color=#008080 size=2><FONT color=#008080 
size=2>&gt;</P></FONT></FONT></STRONG><FONT size=2>
<P align=left></P>
<P><STRONG>SE ALGUÉM PUDER ME AJUDAR AGRADEÇO IMENSAMENTE. ESTOU USANDO O 
MAPGUIDE 2010.</STRONG></P>
<P><STRONG>GRATA</STRONG></P>
<P><STRONG>CARLA TRAPÉ 
MARTINS</STRONG></P></FONT></FONT></DIV></FONT></FONT></BODY></HTML>