I Want the user to search and select a Part, the Part must reference a specific Item on a PropertyItem attribute, this I want to set programmatically, the User could select from the searchDialog which I will call programmatically.
Do I need to alter the Param's ?
var param = { aras: top.aras, itemtypeName: 'Part', multiselect: false };
var dlgRes = showModalDialog('searchDialog.html', param, 'dialogHeight:450px; dialogWidth:700px; status:0; help:0; resizable:1;');
if(!dlgRes) { return; }
Using the "OnSearchDialog event on the property, I think is not a good solution for me, as this would apply to every scenario where a User wants to search for a part do build a relationship to.
Thanks Christoffer