<?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 How to cast TableOwner in async mode? in Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Customization/How-to-cast-TableOwner-in-async-mode/m-p/696733#M10002</link>
    <description>&lt;P&gt;So 2 have two models in 2 different modes: syn and asyn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt; model = pfcSession.GetCurrentSession().GetCurrentModel();&lt;/LI-CODE&gt;&lt;LI-CODE lang="java"&gt;  connection = pfcAsyncConnection.AsyncConnection_Connect(null, null, null, 20);
                model = connection.GetSession().GetCurrentModel();&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked and both models are valid and I have no issue casting the TableOwner tableowner from the two models. However, I cannot get a list of tables with async mode&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;TableOwner tableOwner = (TableOwner)model;
                if(tableOwner!=null)
                {
                    tableOwner.ListTables().getarraysize();
                }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tableOwner is not null but ListTables() actually returns null error. I am not sure if I do not cast it properly or I need something special to make it work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 17:43:04 GMT</pubDate>
    <dc:creator>RLEECI</dc:creator>
    <dc:date>2020-11-04T17:43:04Z</dc:date>
    <item>
      <title>How to cast TableOwner in async mode?</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/How-to-cast-TableOwner-in-async-mode/m-p/696733#M10002</link>
      <description>&lt;P&gt;So 2 have two models in 2 different modes: syn and asyn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt; model = pfcSession.GetCurrentSession().GetCurrentModel();&lt;/LI-CODE&gt;&lt;LI-CODE lang="java"&gt;  connection = pfcAsyncConnection.AsyncConnection_Connect(null, null, null, 20);
                model = connection.GetSession().GetCurrentModel();&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked and both models are valid and I have no issue casting the TableOwner tableowner from the two models. However, I cannot get a list of tables with async mode&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;TableOwner tableOwner = (TableOwner)model;
                if(tableOwner!=null)
                {
                    tableOwner.ListTables().getarraysize();
                }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tableOwner is not null but ListTables() actually returns null error. I am not sure if I do not cast it properly or I need something special to make it work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 17:43:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/How-to-cast-TableOwner-in-async-mode/m-p/696733#M10002</guid>
      <dc:creator>RLEECI</dc:creator>
      <dc:date>2020-11-04T17:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to cast TableOwner in async mode?</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/How-to-cast-TableOwner-in-async-mode/m-p/696760#M10003</link>
      <description>&lt;P&gt;stupid me, I cannot use both jlink syn and asyn jar in the same project.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 20:43:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/How-to-cast-TableOwner-in-async-mode/m-p/696760#M10003</guid>
      <dc:creator>RLEECI</dc:creator>
      <dc:date>2020-11-04T20:43:24Z</dc:date>
    </item>
  </channel>
</rss>

