<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Get item from id in Javascript</title><link>https://www.aras.com/community/f/development/3478/get-item-from-id-in-javascript</link><description>Hello,

In&amp;#160;javascript i would like to get the firstname and lastname properties of a user from a created_by_id, is there a method in JS that get an item by its Id?

I failed to find documentation on the aras items manipulation in javascript, if anyone</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get item from id in Javascript</title><link>https://www.aras.com/community/thread/1074?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 05:21:56 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:28fc24fa-71f6-416f-a406-76400e01a808</guid><dc:creator>Former Member</dc:creator><description>Manage to fix the issue :
&lt;blockquote&gt;replace

var inn = this.getInnovator()

with

var inn = aras.IomInnovator;&lt;/blockquote&gt;
Thanks again and hope it will help others !&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get item from id in Javascript</title><link>https://www.aras.com/community/thread/1039?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 07:57:39 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b9332a65-2045-4e51-a518-94f4cf989725</guid><dc:creator>Former Member</dc:creator><description>Hi Yoann,

Thank you for your fast response, but i am getting the following error with your code :

Event handler failed with message: TypeError: this.getInnovator is not a function

i am trying to run it in a method called on form populated&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get item from id in Javascript</title><link>https://www.aras.com/community/thread/1038?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 05:57:03 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2eb8ee12-1805-41d2-8355-ceb8f1297a58</guid><dc:creator>Yoann Maingon</dc:creator><description>Hi Léo,

here is a short snippet for getting a user from its id
&lt;pre&gt;var inn = this.getInnovator();
var user= inn.getItemById(&amp;quot;user&amp;quot;,&amp;quot;&amp;lt;the user id you look for&amp;gt;&amp;quot;);
var firstname = user.getProperty(&amp;quot;first_name&amp;quot;,&amp;quot;&amp;quot;);&lt;/pre&gt;
&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>