Hi
I hope someone can help. I have a locally installed instance of Aras, (v12 sp16) and a development instance, same version and service pack. They connect to the same database.
I have created a button on the manufacturer part from to remove the link to a part and delete a link on the form.
The button code is client side script which initially gets the Manufacturer Part id and passes it to a server side method that does the job of removing the relationship with the Part item.
The client side script then removes a link on the form to the Part.
This all works well in my local installation but when I run it in the development environment the Manufacturer Part id isn't retrieved and passed to the server side method so results in an error.
The button code is:
var inn = aras.IomInnovator;
var mfpID = document.thisItem.getId();
var itemNum = document.thisItem.getProperty("item_number");
var result = aras.applyMethod("oipt_break_OEM_OI_link", "<mfPtID>" + mfpID + "</mfPtID><item_number>" + itemNum + "</item_number>" );
if(!result)
{
return; //no alert necessary, error message thrown by server method
}
else
{
var parentItm = document.thisItem;
var parentID = document.itemID;
var parentAction = 'view';
document.getElementById("part").innerText = "";
document.getElementById("partid").value = "";
// show new item in frame of previous item
top.aras.uiReShowItem(parentID,parentID, parentAction, 'tab view');
alert("Link to component removed.");
}
Can anyone tell me why the same code works in one environment and not in the other please?
Many thanks.
