<?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 rename the field of infotable in thingworx in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514610#M11100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example I have 2 data tables(in my case it's 500+) with 2 different datashapes, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;datashape of 1st datatbale has following fields: &lt;/P&gt;&lt;P&gt;1) Temperature1&lt;/P&gt;&lt;P&gt;2)Humidity1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;datashape of 2nd datatbale has following fields: &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1) Temperature2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2)Humidity2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I need to display temperature and humidity in time series chart, So I created a datashape with following fields:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1) Temperature&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2)Humidity&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I wrote a service which accepts datatable name as parameters and display data of respective data table. The issue I am facing is the fields of both datatables are different, so I need to rename the fields of infotable same as 3rd datashape.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please let me know if my use case is clear to you? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2017 11:19:09 GMT</pubDate>
    <dc:creator>magrawal</dc:creator>
    <dc:date>2017-02-22T11:19:09Z</dc:date>
    <item>
      <title>how to rename the field of infotable in thingworx</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514606#M11096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to rename the field of infotable(result of queryDatatableEntries)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 10:36:40 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514606#M11096</guid>
      <dc:creator>magrawal</dc:creator>
      <dc:date>2017-02-22T10:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename the field of infotable in thingworx</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514607#M11097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11.7px; font-family: 'Source Sans Pro', sans-serif; color: #4d4d4f;"&gt;&lt;A _jive_internal="true" class="jive-username-link jiveTT-hover-user" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="11373" data-username="magrawal" href="https://www.ptcusercommunity.com/people/magrawal" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7;"&gt;Meenakshi Agrawal&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a new service which uses &lt;SPAN style="color: #4d4d4f; font-family: 'Source Sans Pro', sans-serif; font-size: 13px;"&gt;queryDatatableEntries then you can use RenameField snippet to rename the field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rename Snippet:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14877604412591475 jive_text_macro" jivemacro_uid="_14877604412591475"&gt;&lt;P&gt;var params = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; t: undefined /* INFOTABLE */,&lt;/P&gt;&lt;P&gt;&amp;nbsp; from: undefined /* STRING */,&lt;/P&gt;&lt;P&gt;&amp;nbsp; to: undefined /* STRING */&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// result: INFOTABLE&lt;/P&gt;&lt;P&gt;var result = Resources["InfoTableFunctions"].RenameField(params);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://www.ptcusercommunity.com/7.0.4.3b79b96/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 10:47:40 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514607#M11097</guid>
      <dc:creator>ankigupta</dc:creator>
      <dc:date>2017-02-22T10:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename the field of infotable in thingworx</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514608#M11098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.thingworx.com/u1/7838"&gt;Ankit Gupta&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to rename multiple fields, multiple time calling rename snippet will slow down the service..ryt?&lt;/P&gt;&lt;P&gt;What would be the best way to rename multiple fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 10:54:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514608#M11098</guid>
      <dc:creator>magrawal</dc:creator>
      <dc:date>2017-02-22T10:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename the field of infotable in thingworx</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514609#M11099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no snippet available for renaming multiple infotable column in one go.&lt;/P&gt;&lt;P&gt;Can you please share your requirement that why is the renaming of infotable column required?&lt;/P&gt;&lt;P&gt;For e.g. If you are using the output in some Mashup Grid. You can rename the column name in the widget itself instead of changing it in the infotable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 11:07:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514609#M11099</guid>
      <dc:creator>ankigupta</dc:creator>
      <dc:date>2017-02-22T11:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename the field of infotable in thingworx</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514610#M11100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example I have 2 data tables(in my case it's 500+) with 2 different datashapes, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;datashape of 1st datatbale has following fields: &lt;/P&gt;&lt;P&gt;1) Temperature1&lt;/P&gt;&lt;P&gt;2)Humidity1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;datashape of 2nd datatbale has following fields: &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1) Temperature2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2)Humidity2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I need to display temperature and humidity in time series chart, So I created a datashape with following fields:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1) Temperature&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2)Humidity&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I wrote a service which accepts datatable name as parameters and display data of respective data table. The issue I am facing is the fields of both datatables are different, so I need to rename the fields of infotable same as 3rd datashape.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please let me know if my use case is clear to you? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 11:19:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514610#M11100</guid>
      <dc:creator>magrawal</dc:creator>
      <dc:date>2017-02-22T11:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename the field of infotable in thingworx</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514611#M11101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI, I need to display data in time series chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 11:19:56 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514611#M11101</guid>
      <dc:creator>magrawal</dc:creator>
      <dc:date>2017-02-22T11:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename the field of infotable in thingworx</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514612#M11102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your requirement clearly; ideally all the DataTables should be created from a single DataShape to avoid this problem.&lt;/P&gt;&lt;P&gt;I hope you are using a single TimeSeries Chart with Dynamic Data from each Table.&lt;/P&gt;&lt;P&gt;If you have only two fields in the DataTable then you can leave the field name same and TimeSeries chart will show series for both fields automatically and it will change based on Dynamic Data.&lt;/P&gt;&lt;P&gt;If you have multiple fields in the DataTable and you want to show only few of them in the TimeSeries; renaming seems to be the only option per my understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using different charts then you can directly rename the Labels in the Time Series chart itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 13:07:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514612#M11102</guid>
      <dc:creator>ankigupta</dc:creator>
      <dc:date>2017-02-22T13:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to rename the field of infotable in thingworx</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514613#M11103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Meenakshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any update on this? Was Ankit Gupta's post helpful? If so, could you click on the "correct answer" or "mark as helpful" button and let us know?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 18:06:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/how-to-rename-the-field-of-infotable-in-thingworx/m-p/514613#M11103</guid>
      <dc:creator>jgorsline</dc:creator>
      <dc:date>2017-03-03T18:06:23Z</dc:date>
    </item>
  </channel>
</rss>

