<?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 Re: Selecting and showing a value from Oracle Table in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/selecting-and-showing-a-value-from-oracle-table/m-p/156249#M8750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"Long" is almost useless, since it either describes a 32-bit integer, a 64-bit integer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or a deprecated LOB type which hasn't been available since Oracle 8i.&amp;nbsp; This is why&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I requested the actual Oracle type (that which is returned by a DESCRIBE tablename&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in SQL*Plus) &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;and&lt;/STRONG&gt;&lt;SPAN&gt; the output of 'sdetable -o describe' on the table. I cannot help you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;without this information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jan 2014 11:35:15 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2014-01-02T11:35:15Z</dc:date>
    <item>
      <title>Selecting and showing a value from Oracle Table</title>
      <link>https://community.esri.com/t5/data-management-questions/selecting-and-showing-a-value-from-oracle-table/m-p/156246#M8747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- I have a feature layer (CADASTRAL_PARSEL) and a Oracle Table (ABS_PARCEL).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- OBJECTID field of feature layer and SDE_OBJECT_ID of Oracle Table are same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I have a form that searchs for block/parsel from feature layer, shows its 3 value for "neighborhood - section - area"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The other part of the form shows the same values from Oracle Table. Our municipality fills this table with another program (management program) The fields mentioned above are same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am posting a part of the code that starts with cursor that has values of selected block/parcel. The problem is i can not enter QueryFilter for this SDE_OBJECT_ID field of Oracle Table = pfeature.value(intobjectid) of selected feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_OBJECT_ID field of Oracle table is Long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way i found this link and its similar with my problem but it doesn't help me that much:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=992&amp;amp;t=86418"&gt;http://forums.esri.com/Thread.asp?c=93&amp;amp;f=992&amp;amp;t=86418&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pFeatureClass As IFeatureClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pFeatureClass = pFeatureLayer.FeatureClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pFields As IFields&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pFields = pFeatureClass.Fields&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim intSdeNeighbourhood As Integer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;intSdeNeighbourhood = pFields.FindField("NAME_NEIGHBOURHOOD")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim intSdeCadastralSection As Integer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;intSdeCadastralSection = pFields.FindField("CADASTRAL_SECTION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim intSdeArea As Integer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;intSdeArea = pFields.FindField("AREA")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim intObject As Integer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;intObject = pFields.FindField("OBJECTID")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pTable As ITable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pTable = pFeatureClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pCursor As ICursor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pCursor = pTable.Search(pQueryFilter, False) 'YOU DONT SEE THE UPPER CODES BUT ITS OK, EVERYTHING IS WORKING&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pRow As IRow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pRow = pCursor.NextRow&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pFeature As IFeature&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pFeature = pRow&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sde_neighbourhood.Caption = pFeature.Value(intSdeNeighbourhood)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sde_section.Caption = pFeature.Value(intSdeCadastralSection)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sde_area.Caption = pFeature.Value(intSdeArea)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'----------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Here i open Oracle Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pPropset As IPropertySet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pPropset = New PropertySet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pPropset.SetProperty "DATABASE", "C:\Users\botken1\Desktop\ArcObject_Denemeler.mdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pPropset.SetProperty "DATAPROVIDER", "Access Data Source"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pWorkspaceFactory As IWorkspaceFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pWorkspaceFactory = New AccessWorkspaceFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pFeatureWorkspace As IFeatureWorkspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pFeatureWorkspace = pWorkspaceFactory.Open(pPropset, 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'Open the Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pUTable As ITable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pUTable = pFeatureWorkspace.OpenTable("ABS_PARCEL")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pUFields As IFields&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pUFields = pUTable.Fields&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim intSdeObjectID As Integer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;intSdeObjectID = pUFields.FindField("SDE_OBJECT_ID")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pURow As IRow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pURow = pUTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'here i try to show the Oracle Table values with the objectid of selected feature&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pQueryFilterUKBS As IQueryFilter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pQueryFilterUKBS = New QueryFilter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim strSdeOID As String&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;strSdeOID = pFeature.Value(intObject)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'pQueryFilterUKBS.WhereClause = "SDE_OBJECT_ID = 123" THIS CODE WORKS, IT BRINGS YOU THE VALUE OF NEIHGBOURHOOD, SECTION AND AREA OF THE VALUE 123 FROM ORACLE TABLE BUT I DONT WANT TO SEE THE VALUE OF 123, I WANT THE OBJECTID OF SELECTED FEATURE FROM SDE LAYER&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pQueryFilterUKBS.WhereClause = "SDE_NESNE_NO = pfeature.value(intobject)" THIS CODE DOESNT WORK AT ALL. IF I CAN MAKE IT WORK THEN EVERYTHING WILL BE OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pUCursor As ICursor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pUCursor = pUTable.Search(pQueryFilterUKBS, False)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pURow As IRow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pURow = pUCursor.NextRow&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim intUSection As Integer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;intUSection = pUFields.FindField("ORACLE_SECTION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ukbs_section.caption = pURow.Value(intSection)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 09:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/selecting-and-showing-a-value-from-oracle-table/m-p/156246#M8747</guid>
      <dc:creator>bugotk</dc:creator>
      <dc:date>2013-12-31T09:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting and showing a value from Oracle Table</title>
      <link>https://community.esri.com/t5/data-management-questions/selecting-and-showing-a-value-from-oracle-table/m-p/156247#M8748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using the registered rowid column as a foreign key to an external table is not &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;recommended practice -- The rowid can't be guaranteed to be sequential.&amp;nbsp; Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;practice would be to create your own sequence-fed column, and use that for the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;foreign key.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What exact datatype in Oracle is the SDE_OBJECT_ID column? (e.g. NUMBER(n) -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what is the value of 'n')&amp;nbsp; What ArcSDE datatype is reported for the column with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'sdetable -o describe'?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:05:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/selecting-and-showing-a-value-from-oracle-table/m-p/156247#M8748</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-12-31T13:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting and showing a value from Oracle Table</title>
      <link>https://community.esri.com/t5/data-management-questions/selecting-and-showing-a-value-from-oracle-table/m-p/156248#M8749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Using the registered rowid column as a foreign key to an external table is not &lt;BR /&gt;recommended practice -- The rowid can't be guaranteed to be sequential.&amp;nbsp; Best&lt;BR /&gt;practice would be to create your own sequence-fed column, and use that for the&lt;BR /&gt;foreign key.&lt;BR /&gt;&lt;BR /&gt;What exact datatype in Oracle is the SDE_OBJECT_ID column? (e.g. NUMBER(n) -&lt;BR /&gt;what is the value of 'n')&amp;nbsp; What ArcSDE datatype is reported for the column with&lt;BR /&gt;'sdetable -o describe'?&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_OBJECT_ID field of Oracle table is Long.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 10:19:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/selecting-and-showing-a-value-from-oracle-table/m-p/156248#M8749</guid>
      <dc:creator>bugotk</dc:creator>
      <dc:date>2014-01-02T10:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting and showing a value from Oracle Table</title>
      <link>https://community.esri.com/t5/data-management-questions/selecting-and-showing-a-value-from-oracle-table/m-p/156249#M8750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"Long" is almost useless, since it either describes a 32-bit integer, a 64-bit integer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or a deprecated LOB type which hasn't been available since Oracle 8i.&amp;nbsp; This is why&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I requested the actual Oracle type (that which is returned by a DESCRIBE tablename&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in SQL*Plus) &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;and&lt;/STRONG&gt;&lt;SPAN&gt; the output of 'sdetable -o describe' on the table. I cannot help you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;without this information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 11:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/selecting-and-showing-a-value-from-oracle-table/m-p/156249#M8750</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-01-02T11:35:15Z</dc:date>
    </item>
  </channel>
</rss>

