<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Apply UVRenderer From a IFeatureLayer Join IStandaloneTable in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/apply-uvrenderer-from-a-ifeaturelayer-join/m-p/562614#M15167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I've found some examples but can't find the one that matches...&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.acuacar.com/graph.gif"&gt;&lt;IMG src="http://www.acuacar.com/graph.gif" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the image, i already have the:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- LoadLayer(): display the layer in the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- CreateWorkSpace(): it creates the FileGDBWorkspace and the IStandaloneTable and add it to the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- JoinTableLayer(): it joins the IStandaloneTable with the IFeatureLayer by a field&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And there is when i get to a dead end, dont know how do i make the UVRenderer with this two elements in different WorkSpaces... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've read&amp;nbsp; about the IQueryDef interface but the example creates a &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;featureWorkspace.CreateQueryDef();&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; and i'm not sure which WorkSpace its referring to...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this example only use on table, but its the only that i got...&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;// For example, tables = "customers"
// subFields = "NAME, ADDRESS"
// whereClause = "ADDRESS LIKE '%CENTER%'"
public ICursor UseQueryDef(IFeatureWorkspace featureWorkspace, String tables,
&amp;nbsp; String subFields, String whereClause)
{
&amp;nbsp; // Create the query definition.
&amp;nbsp; IQueryDef queryDef = featureWorkspace.CreateQueryDef();

&amp;nbsp; // Provide a list of table(s) to join.
&amp;nbsp; queryDef.Tables = tables;

&amp;nbsp; // Declare the subfields to retrieve.
&amp;nbsp; queryDef.SubFields = subFields;

&amp;nbsp; // Assign a where clause to filter the results.
&amp;nbsp; queryDef.WhereClause = whereClause;

&amp;nbsp; // Evaluate queryDef to execute a database query and return a cursor to the application.
&amp;nbsp; ICursor cursor = queryDef.Evaluate();
&amp;nbsp; return cursor;
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be nice.... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2011 11:54:05 GMT</pubDate>
    <dc:creator>JoseSalcedo</dc:creator>
    <dc:date>2011-03-08T11:54:05Z</dc:date>
    <item>
      <title>Apply UVRenderer From a IFeatureLayer Join IStandaloneTable</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/apply-uvrenderer-from-a-ifeaturelayer-join/m-p/562614#M15167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I've found some examples but can't find the one that matches...&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.acuacar.com/graph.gif"&gt;&lt;IMG src="http://www.acuacar.com/graph.gif" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the image, i already have the:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- LoadLayer(): display the layer in the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- CreateWorkSpace(): it creates the FileGDBWorkspace and the IStandaloneTable and add it to the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- JoinTableLayer(): it joins the IStandaloneTable with the IFeatureLayer by a field&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And there is when i get to a dead end, dont know how do i make the UVRenderer with this two elements in different WorkSpaces... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've read&amp;nbsp; about the IQueryDef interface but the example creates a &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;featureWorkspace.CreateQueryDef();&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; and i'm not sure which WorkSpace its referring to...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this example only use on table, but its the only that i got...&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;// For example, tables = "customers"
// subFields = "NAME, ADDRESS"
// whereClause = "ADDRESS LIKE '%CENTER%'"
public ICursor UseQueryDef(IFeatureWorkspace featureWorkspace, String tables,
&amp;nbsp; String subFields, String whereClause)
{
&amp;nbsp; // Create the query definition.
&amp;nbsp; IQueryDef queryDef = featureWorkspace.CreateQueryDef();

&amp;nbsp; // Provide a list of table(s) to join.
&amp;nbsp; queryDef.Tables = tables;

&amp;nbsp; // Declare the subfields to retrieve.
&amp;nbsp; queryDef.SubFields = subFields;

&amp;nbsp; // Assign a where clause to filter the results.
&amp;nbsp; queryDef.WhereClause = whereClause;

&amp;nbsp; // Evaluate queryDef to execute a database query and return a cursor to the application.
&amp;nbsp; ICursor cursor = queryDef.Evaluate();
&amp;nbsp; return cursor;
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be nice.... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 11:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/apply-uvrenderer-from-a-ifeaturelayer-join/m-p/562614#M15167</guid>
      <dc:creator>JoseSalcedo</dc:creator>
      <dc:date>2011-03-08T11:54:05Z</dc:date>
    </item>
  </channel>
</rss>

