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