<?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: How to handle custom MVC table having rows of custom POJO object in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963318#M8432</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/301264"&gt;@AKC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It depends what object it is.&lt;/P&gt;
&lt;P&gt;For example if the row is an object that is identified by number try to get the row object and use getter to get that information..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess that the object is just virtual and is not stored anywhere so&lt;/P&gt;
&lt;P&gt;try to check the values of all getters from command bean in debug mode when you can stop the operation in IDE and check the actual real variables and data&amp;nbsp; that are pushed to the commandbean object.&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;SPAN&gt;getText&lt;BR /&gt;&lt;/SPAN&gt;getComboBox&lt;BR /&gt;getTextArea&lt;BR /&gt;getChecked&lt;/PRE&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_0-1721899439151.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108269i5796FC18301644EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HelesicPetr_0-1721899439151.png" alt="HelesicPetr_0-1721899439151.png" /&gt;&lt;/span&gt;
&lt;P&gt;PetrH&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 25 Jul 2024 09:25:06 GMT</pubDate>
    <dc:creator>HelesicPetr</dc:creator>
    <dc:date>2024-07-25T09:25:06Z</dc:date>
    <item>
      <title>How to handle custom MVC table having rows of custom POJO object</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963165#M8426</link>
      <description>&lt;P&gt;I have custoom wizard in which I implemented MVC table. This table is having objects which are belonging to a custom POJO class. I want to retrieve values for each column (each column is aa POJO attribute). Once I get those all column values, I want to create an object of WTDocument type.I tried with objHandle but not succeeded. Can anyone help me with process of this implementation ?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 15:53:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963165#M8426</guid>
      <dc:creator>AKC</dc:creator>
      <dc:date>2024-07-24T15:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle custom MVC table having rows of custom POJO object</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963289#M8429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/301264"&gt;@AKC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is your question? What API is used to create WTDocument?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you do not know how to use NmComandBean object to get the row informations in the processor that process the wizard?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If you can get all information from POJO objects then just create the WTDocument based on that information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;code to create WTDocument&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;WTContainer container = getFolderByName(); // own function to search the folder to store
String typeDefstr = "wt.doc.WTDocument";

WTDocument retDocument = WTDocument.newWTDocument();
retDocument.setNumber(number);
retDocument.setName(name);
setDocType(retDocument, typeDefstr);

WTPrincipal currentuser = SessionHelper.getPrincipal();
WTOrganization org = currentuser.getOrganization();
if (org != null)
{
	retDocument.setOrganization(org);
}
if (container != null)
{
	retDocument.setContainer(container);
}
if (folder != null)
{
	FolderHelper.assignLocation(retDocument, folder);
}
//save ....
try
{
	retDocument = (WTDocument) PersistenceHelper.manager.store(retDocument);
} catch (WTException uni)
{
uni.printStackTrace();
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS&amp;gt; Knowledge base contains information that the &lt;SPAN&gt;NmCommandBean.getSelectedXXX&amp;nbsp;&lt;/SPAN&gt;returns only WTObject class if the POJO class is not set in the table definition&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ptc.com/en/support/article/CS345786" target="_self"&gt;CS345786 - NmCommandBean.getSelectedXXX APIs don't work with POJO objects in Windchill PDMLink&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 07:07:40 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963289#M8429</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-07-25T07:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle custom MVC table having rows of custom POJO object</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963313#M8431</link>
      <description>&lt;P&gt;Thanks for the reply Petr. I know the process for&amp;nbsp; new WTDocument. My challenge is that I am not sure&amp;nbsp;&lt;SPAN&gt;how to use NmComandBean object to get the row informations in the processor that process the wizard.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For your information I am getting POJO data as below in my MVC table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AKC_0-1721898170311.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108268i5A4B7D361DE03A94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AKC_0-1721898170311.png" alt="AKC_0-1721898170311.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the above table, I can able to fetch value for Comments entered which is text area (column 5) , attached file (column 6) and selected action (combo box which is column 7). However I am not able to fetch columns 1 and 2 which are specific document's number and description respectively.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for sharing the article&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.ptc.com/en/support/article/CS345786?_gl=1*1tbg1t4*_gcl_au*MTMzNTI5MjQ4LjE3MjE1NjU5NDE.*_ga*MTIxMDI2ODU2OC4xNjc3NjYyNzc3*_ga_7NMP2MSYPM*MTcyMTg5NzQ1Ny4xMDguMC4xNzIxODk3NDU3LjYwLjAuMA." target="_blank" rel="noopener"&gt;https://www.ptc.com/en/support/article/CS345786?_gl=1*1tbg1t4*_gcl_au*MTMzNTI5MjQ4LjE3MjE1NjU5NDE.*_ga*MTIxMDI2ODU2OC4xNjc3NjYyNzc3*_ga_7NMP2MSYPM*MTcyMTg5NzQ1Ny4xMDguMC4xNzIxODk3NDU3LjYwLjAuMA.&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; I will go through it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AKC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 09:03:00 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963313#M8431</guid>
      <dc:creator>AKC</dc:creator>
      <dc:date>2024-07-25T09:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle custom MVC table having rows of custom POJO object</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963318#M8432</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/301264"&gt;@AKC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It depends what object it is.&lt;/P&gt;
&lt;P&gt;For example if the row is an object that is identified by number try to get the row object and use getter to get that information..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess that the object is just virtual and is not stored anywhere so&lt;/P&gt;
&lt;P&gt;try to check the values of all getters from command bean in debug mode when you can stop the operation in IDE and check the actual real variables and data&amp;nbsp; that are pushed to the commandbean object.&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;SPAN&gt;getText&lt;BR /&gt;&lt;/SPAN&gt;getComboBox&lt;BR /&gt;getTextArea&lt;BR /&gt;getChecked&lt;/PRE&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_0-1721899439151.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108269i5796FC18301644EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HelesicPetr_0-1721899439151.png" alt="HelesicPetr_0-1721899439151.png" /&gt;&lt;/span&gt;
&lt;P&gt;PetrH&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Jul 2024 09:25:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963318#M8432</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-07-25T09:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle custom MVC table having rows of custom POJO object</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963377#M8434</link>
      <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;&amp;nbsp;.. separate question regarding screenshot you provided above. Is it netbeans IDE as I can't find in eclipse? How to get this information in UI? .. also can you provide some details around following ..&amp;nbsp;&lt;SPAN&gt;"..try to check the values of all getters from command bean in debug mode when you can stop the operation in IDE&amp;nbsp;"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 12:04:10 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963377#M8434</guid>
      <dc:creator>SW_10910352</dc:creator>
      <dc:date>2024-07-25T12:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle custom MVC table having rows of custom POJO object</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963382#M8435</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/797029"&gt;@SW_10910352&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually I use the IntelliJ IDEA :D.&lt;/P&gt;
&lt;P&gt;The debug mode you can use in the eclipse also in the netbeans.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a case that describes how to set the eclipse for remote debugging&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ptc.com/en/support/article/CS96048?" target="_blank" rel="noopener"&gt;CS96048 -How to build a development environment and perform remote debug using Eclipse in Windchill&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you start and connect the debug mode in IDE with your Windchill server and you can stop the process in any row of your code with real variable values in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS&amp;gt;&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS357647" target="_self"&gt;CS357647 - [Knowledge Hub] Windchill PLM - Customization with Eclipse IDE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PetrH&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 12:21:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963382#M8435</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-07-25T12:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle custom MVC table having rows of custom POJO object</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963583#M8445</link>
      <description>&lt;P&gt;Now I am able to fetch data in my MVC table. I removed all POJO related stuff and tried with custom columns added to builder with Data Utilities. So in this way for Document Number and Desc (for first two columns) , I returned selected documents list in getComponentData() of builder and respective columns are showing data sing DU&amp;nbsp; which worked for me.&lt;/P&gt;&lt;P&gt;Related to IDE, even I am using Intellij Idea, can I get some info on how to set Intellij in debug mode ? I tried earlier on it but not succeeded. Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 12:47:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963583#M8445</guid>
      <dc:creator>AKC</dc:creator>
      <dc:date>2024-07-26T12:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle custom MVC table having rows of custom POJO object</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963588#M8446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/301264"&gt;@AKC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your Windchill should use just one methodserver without bacground.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use BG and MS then the configuration is more complicated that you have to set different ports to each method&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in InteliJ create new RemoteJVM Debug configuration set the address and port&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_0-1721999139009.png" style="width: 907px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108333i21324C83CBA43E0C/image-dimensions/907x288?v=v2" width="907" height="288" role="button" title="HelesicPetr_0-1721999139009.png" alt="HelesicPetr_0-1721999139009.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Copy the Command line arguments for remote&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in my case&lt;/P&gt;
&lt;P&gt;-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005&lt;/P&gt;
&lt;P&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set this arguments in the windchill wt.properties file by Windchill shell command.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;wt.manager.cmd.MethodServer.debug.args=-agentlib\:jdwp\=transport\=dt_socket,server\=y,suspend\=n,address\=5005&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;restart the method server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you should be able to connect to the Windchill with debug mode from InteliJ.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_1-1721999405564.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108334i953CF4C7A9E071AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HelesicPetr_1-1721999405564.png" alt="HelesicPetr_1-1721999405564.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_2-1721999413979.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108335i825E761F13209DA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HelesicPetr_2-1721999413979.png" alt="HelesicPetr_2-1721999413979.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_0-1721999834789.png" style="width: 801px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108336iA1B93DF8ED122B71/image-dimensions/801x35?v=v2" width="801" height="35" role="button" title="HelesicPetr_0-1721999834789.png" alt="HelesicPetr_0-1721999834789.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 13:17:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-handle-custom-MVC-table-having-rows-of-custom-POJO-object/m-p/963588#M8446</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-07-26T13:17:33Z</dc:date>
    </item>
  </channel>
</rss>

