Hello,
in an enterprise geodatabase there is a table "GDB_ITEMS" containing a field named "UUID". How can i get the value of the "UUID" field in ArcGIS Pro?
To start a process in ArcGIS Pro i created a custom button in the context menu of geodatabase featureclasses like so:
<modules>
<insertModule id="MetadataAddIn" className="HandleExportDocuments" autoLoad="true" caption="MetadataAddIn">
<controls>
<button id="MetadataAddIn_CreateMetadataPDF" caption="CreateMetadataPDF" className="CreateMetadataPDF" loadOnClick="true" smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonBlue16.png" largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonBlue32.png">
<tooltip heading="Tooltip Heading">Tooltip text<disabledText /></tooltip>
</button>
</controls>
</insertModule>
<updateModule refID="esri_geodatabase_module">
<menus>
<updateMenu refID="fgdbItemFeatureClassTypeMenu">
<insertButton refID="MetadataAddIn_CreateMetadataPDF" placeWith="esri_projectItemEditMetadata" />
</updateMenu>
<updateMenu refID="egdbItemFeatureClassTypeMenu">
<insertButton refID="MetadataAddIn_CreateMetadataPDF" placeWith="esri_projectItemEditMetadata" />
</updateMenu>
<updateMenu refID="fgdbItemTableTypeMenu">
<insertButton refID="MetadataAddIn_CreateMetadataPDF" placeWith="esri_projectItemEditMetadata" />
</updateMenu>
<updateMenu refID="egdbItemTableTypeMenu">
<insertButton refID="MetadataAddIn_CreateMetadataPDF" placeWith="esri_projectItemEditMetadata" />
</updateMenu>
</menus>
</updateModule>
</modules>
For the button "CreateMetadataPDF" there is an OnClick event. In this method i need the "UUID" value of the current featureclass or table from the geodatabase in the table "GDB_ITEMS". Currently i have the following code:
internal class CreateMetadataPDF : Button
{
protected override void OnClick()
{
GDBItem item = ProApp.ContextMenuDataContext as GDBItem;
}
}
How can i get the UUID here?
Which is the correct class to use here because GDBItem is marked as ESRI internal only?
Thank you!
Regards
Christian