<?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>newResult</title><link>https://www.aras.com/community/f/development/3313/newresult</link><description>I&amp;#39;m having trouble with &amp;quot;newResult&amp;quot; in my method. I want to display either the method ran correcly or there was an error. I have something like this that i copied from the Aras Programmers Guide:

Innovator innovator = this.getInnovator();
return innovator</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: newResult</title><link>https://www.aras.com/community/thread/573?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 03:13:12 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c83af289-9c6a-46b8-9775-3f933a77aacb</guid><dc:creator>Zahar Chernov</dc:creator><description>didonato,

The server side methods show only &amp;quot;error&amp;quot; messages. If there is no error dialog after server side method executed the assumption is that the method executed successfully.

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: newResult</title><link>https://www.aras.com/community/thread/571?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2017 09:23:54 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:88d473e7-3255-47b6-b5b9-e7b52c5f0a21</guid><dc:creator>didonato</dc:creator><description>Hi Yoann,

I basically want a  message box that says the action ran successfully. I&amp;#39;m testing this in a WorkFlow &amp;quot;Server Event&amp;quot;  that executes on &amp;quot;On Close&amp;quot;

Innovator inn=this.getInnovator();

&amp;nbsp;

//*** Min Fielded PR *********************************************************** //

Item hd= inn.newItem(&amp;quot;MIN_Fielded_PR&amp;quot;,&amp;quot;get&amp;quot;);

Item ControlledItem = this.apply(&amp;quot;GetControlledItem&amp;quot;);

hd.setID(ControlledItem.getID());

hd.setAttribute(&amp;quot;select&amp;quot;,&amp;quot;id&amp;quot;);

hd = hd.apply();

&amp;nbsp;

Item hdRelContact = inn.newItem(&amp;quot;MIN_Fielded_PR_Contacts&amp;quot;,&amp;quot;get&amp;quot;);

hdRelContact.setAttribute(&amp;quot;select&amp;quot;,&amp;quot;related_id&amp;quot;);

hdRelContact.setProperty(&amp;quot;source_id&amp;quot;,hd.getProperty(&amp;quot;id&amp;quot;));

hdRelContact = hdRelContact.apply();

&amp;nbsp;

if (hdRelContact.getItemCount() != 1)

{

return inn.newError(&amp;quot;The &amp;#39;Contact Information&amp;#39; is required. You must provide a value for this field before saving&amp;quot;);

}

else

&amp;nbsp;

{

//”My code goes here”//

return this.getInnovator().newResult(&amp;quot;Your code ran successfully&amp;quot;);

}

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: newResult</title><link>https://www.aras.com/community/thread/564?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2017 03:48:11 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:f160acc6-5dbb-4c37-9b63-e49dca678399</guid><dc:creator>Yoann Maingon</dc:creator><description>Hi For some reason, the string you added to new result will only be parsed if you run the &amp;quot;ApplyItem&amp;quot; action and not &amp;quot;ApplyAML&amp;quot;.

When you run your code directly in the method editor and click the &amp;quot;Run Server Method&amp;quot; it works.

Can you precise in which context you are doing this?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>