Quantcast
Channel: aras PLM community
Viewing all articles
Browse latest Browse all 1103

Error Promomt when Click on custom method to create a project

$
0
0

Hello friends,

I am try to create a project from other item type name "TestItem" by creating a custom method name "Create a Project" on Action menu So when i click then it prompts error   

" error=TypeError: srcNode is null"

Method as shown  below

try{
var inn=this.newInnovator();
var TestItem=this.newItem("TestItem","get");
TestItem.setAttribute("select","id","project_name");
TestItem.setID(this.getID());
var TestItems=TestItem.apply();
if(TestItems.isError())
{
top.aras.AlertError("Error:"+TestItems.getErrorDetail());
}
var Project=top.aras.newItem("Project","add");
top.aras.setItemProperty(Project,"name",this.getProperty("project_name"))
top.aras.uiShowItemEx(Project,"tab view",true);
}
catch(e)
{
top.aras.AlertError("error="+e);

}

So if anybody have a solution on above query so please help.

 

Thanks in advance

Abhishek Srivastava


Viewing all articles
Browse latest Browse all 1103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>