<?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: Reading extended job properties in ArcGIS Workflow Manager Questions</title>
    <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/reading-extended-job-properties/m-p/364578#M730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok, once I have a record I can use IJTXAuxRecord.get_PropName(int index) to search for the property index. That works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If IJTXAuxPropFieldInfoSet is implemented on some public class I would still appreciate a hint, I would prefer to look up the field indexes before accessing the records.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 May 2010 20:37:50 GMT</pubDate>
    <dc:creator>RetoSchöning</dc:creator>
    <dc:date>2010-05-14T20:37:50Z</dc:date>
    <item>
      <title>Reading extended job properties</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/reading-extended-job-properties/m-p/364577#M729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't found a way to read a value for a job's extended property. I can get the record from the container, but how can I get the field index for the property name (I would prefer not to hardcode the index)? There is an interface IJTXAuxPropFieldInfoSet which seems to be made for this, but I can't find where it is implemented. I checked all types in ESRI.ArcGIS.JTX via reflection, but that interface seems to not be implemented anywhere. Or is there another way how to get at those property values? Do I have to open the AuxRecordContainer as an ITable? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the method I would like to implement. I'm using JTX 9.3.1 build 128. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private static int GetFieldIndex([NotNull] IJTXAuxRecordContainer recordContainer, [NotNull] string fieldName)
{
 // invalid cast:
 IJTXAuxPropFieldInfoSet fieldInfos = (IJTXAuxPropFieldInfoSet) recordContainer;
 
 fieldInfos.Reset();
 IJTXAuxPropFieldInfo fieldInfo = fieldInfos.Next();

 int index = 0;
 while (fieldInfo != null)
 {
&amp;nbsp; if (string.Equals(fieldName, fieldInfo.FieldName, StringComparison.OrdinalIgnoreCase))
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; return index;
&amp;nbsp; }

&amp;nbsp; fieldInfo = fieldInfos.Next();
&amp;nbsp; index++;
 }

 return -1;
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 16:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/reading-extended-job-properties/m-p/364577#M729</guid>
      <dc:creator>RetoSchöning</dc:creator>
      <dc:date>2010-05-14T16:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reading extended job properties</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/reading-extended-job-properties/m-p/364578#M730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok, once I have a record I can use IJTXAuxRecord.get_PropName(int index) to search for the property index. That works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If IJTXAuxPropFieldInfoSet is implemented on some public class I would still appreciate a hint, I would prefer to look up the field indexes before accessing the records.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 20:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/reading-extended-job-properties/m-p/364578#M730</guid>
      <dc:creator>RetoSchöning</dc:creator>
      <dc:date>2010-05-14T20:37:50Z</dc:date>
    </item>
  </channel>
</rss>

