<?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: Calling Class from another namespace in Config.daml in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/calling-class-from-another-namespace-in-config/m-p/838377#M3677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/23448"&gt;Charles Macleod&lt;/A&gt;: Thank you for your response.I will take a look into these options and will update you. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2020 05:54:44 GMT</pubDate>
    <dc:creator>SreenivasaRaoPigili</dc:creator>
    <dc:date>2020-04-30T05:54:44Z</dc:date>
    <item>
      <title>Calling Class from another namespace in Config.daml</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/calling-class-from-another-namespace-in-config/m-p/838374#M3674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am trying to segregated tools and its corresponding function classes into separate projects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Followed the below documentation -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Diagnosing-ArcGIS-Pro-Add-ins#namespace-mismatch-causes-controls-to-not-work-or-disappear" title="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Diagnosing-ArcGIS-Pro-Add-ins#namespace-mismatch-causes-controls-to-not-work-or-disappear"&gt;ProGuide Diagnosing ArcGIS Pro Add ins · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#module-plug-in" title="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#module-plug-in"&gt;ProConcepts Framework · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Created two projects called &lt;STRONG&gt;addIn.ProjectA&lt;/STRONG&gt; and &lt;STRONG&gt;userLibrary.ProjectB&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;addIn.ProjectA&lt;/STRONG&gt; is the add-in project. This has config.daml file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;userLibrary.ProjectB&lt;/STRONG&gt; is the project where tools functionality available.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;namespace &lt;STRONG&gt;userLibrary.ProjectB&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;internal class &lt;STRONG&gt;testButtonFunction&lt;/STRONG&gt; : Button&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Crosschecked that the &lt;SPAN&gt;addIn.&lt;/SPAN&gt;&lt;SPAN&gt;ProjectA&lt;/SPAN&gt;'s&amp;nbsp; AssemblyName and Default Namespace is same as in Config.daml's default assembly and defaultnamespace values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. added &lt;SPAN&gt;userLibrary.ProjectB&lt;/SPAN&gt;'s Namespace reference&amp;nbsp;to &lt;SPAN&gt;addIn.&lt;/SPAN&gt;&lt;SPAN&gt;ProjectA&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. in the config.daml added below line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;button id="testButton" caption="&lt;SPAN&gt;t&lt;/SPAN&gt;estButtonFromNewConfig" &lt;STRONG&gt;className="userLibrary.ProjectB.testButtonFunction"&lt;/STRONG&gt; &lt;BR /&gt; loadOnClick="true" smallImage="Images\hello.png" largeImage="Images\&lt;SPAN&gt;hello&lt;/SPAN&gt;.png" &amp;gt;&lt;BR /&gt; &amp;lt;tooltip heading="&lt;SPAN&gt;t&lt;/SPAN&gt;&lt;SPAN&gt;estButtonFromNewConfig&lt;/SPAN&gt;"&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;t&lt;/SPAN&gt;&lt;SPAN&gt;estButtonFromNewConfig&lt;/SPAN&gt;&amp;lt;disabledText /&amp;gt;&lt;BR /&gt; &amp;lt;/tooltip&amp;gt;&lt;BR /&gt; &amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still the button is unable to call the corresponding class. Please help me.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp;&amp;nbsp; &amp;nbsp;If we are having both config.daml and the tools functionality in the same project - we dont have any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2020 10:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/calling-class-from-another-namespace-in-config/m-p/838374#M3674</guid>
      <dc:creator>SreenivasaRaoPigili</dc:creator>
      <dc:date>2020-04-24T10:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Class from another namespace in Config.daml</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/calling-class-from-another-namespace-in-config/m-p/838375#M3675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/23448"&gt;Charles Macleod&lt;/A&gt;&amp;nbsp;- Can you please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 05:59:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/calling-class-from-another-namespace-in-config/m-p/838375#M3675</guid>
      <dc:creator>SreenivasaRaoPigili</dc:creator>
      <dc:date>2020-04-27T05:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Class from another namespace in Config.daml</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/calling-class-from-another-namespace-in-config/m-p/838376#M3676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreeni, apologies for the delay but we were testing this configuration. The bottom line is that the classes referred to in the DAML must be in the add-in assembly. Therefore, to distribute functionality across multiple assemblies, in general, there are two choices (and variations thereof):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spread the functionality across multiple add-ins.The "master" add-in, for example, defines the Tabs and the "optional" add-ins update the Tab(s) with their buttons and so forth.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within&amp;nbsp;the add-in use a containment pattern to load the library classes/functions that do the "work" within the buttons, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;AddinButton&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;

    &lt;SPAN class="keyword token"&gt;private&lt;/SPAN&gt; SomeLibraryClass _doRealWork &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="keyword token"&gt;protected&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;override&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;OnClick&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
       &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;_doRealWork &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          _doRealWork &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;SomeLibraryClass&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
       &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
       &lt;SPAN class="comment token"&gt;//etc&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a third option that involves Categories but that is beyond the scope of this post. If you are interested in that please review these samples and watch this technical session:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ConfigureGallery" rel="nofollow noopener noreferrer" target="_blank"&gt;ConfigureGallery sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/CustomCategories" rel="nofollow noopener noreferrer" target="_blank"&gt;CustomCategories sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=OEPcDG11wak&amp;amp;list=PLN5okgNxFYJo_gcO1snNlEFMHDwxdlwFU&amp;amp;index=3" rel="nofollow noopener noreferrer" target="_blank"&gt;Advanced Pro UI Customization, Dev Summit 2019&lt;/A&gt;. Advance to 36:17.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:12:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/calling-class-from-another-namespace-in-config/m-p/838376#M3676</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2021-12-12T10:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Class from another namespace in Config.daml</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/calling-class-from-another-namespace-in-config/m-p/838377#M3677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/23448"&gt;Charles Macleod&lt;/A&gt;: Thank you for your response.I will take a look into these options and will update you. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 05:54:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/calling-class-from-another-namespace-in-config/m-p/838377#M3677</guid>
      <dc:creator>SreenivasaRaoPigili</dc:creator>
      <dc:date>2020-04-30T05:54:44Z</dc:date>
    </item>
  </channel>
</rss>

