How to let relationship read only in java script ?

オフライン

Hi All,

I need to let relationship read only after I use the java script add the relationship item(code like below).Anyone could give me a hint how to do that?

    //I have a button in parent item's from  to  add the data to the relationship   

    tmpItem = top.aras.newItem("PURreq_RSpml");

    top.aras.itemsCache.addItem(tmpItem);

    top.aras.setItemProperty(tmpItem,"pml02",pml02);       

    top.aras.setItemProperty(tmpItem,"pml01",pml01);

    top.aras.setItemProperty(tmpItem,"pml04",pml04);

    top.aras.setItemProperty(tmpItem,"pml041",pml041);

    top.aras.setItemProperty(tmpItem,"pml07",pml07);

    top.aras.setItemProperty(tmpItem,"pml20",pml20);

    top.aras.setItemProperty(tmpItem,"pmlud07",pmlud07);

    top.aras.setItemProperty(tmpItem,"pml21",pml21);

    top.aras.setItemProperty(tmpItem,"pml35",pml35);

    top.aras.setItemProperty(tmpItem,"pml34",pml34);

    top.aras.setItemProperty(tmpItem,"pml33",pml33);

    top.aras.setItemProperty(tmpItem,"pml90",pml90);

   

    top.aras.setItemProperty(tmpItem,"pml_total",pml_total);

    top.aras.setItemProperty(tmpItem,"pml18",pml18);

    top.aras.setItemProperty(tmpItem,"pml12",pml12);

    top.aras.setItemProperty(tmpItem,"pml15",pml15);

    top.aras.setItemProperty(tmpItem,"pml14",pml14);

    top.aras.setItemProperty(tmpItem,"ima881",ima881);

    top.aras.setItemProperty(tmpItem,"pmo06",pmo06);   

   

    var newRelship = top.aras.newRelationship(signERPRelId, parent.item,false,null,tmpItem,"PURreq_RSpml",false,true,"PURreq_RS");

}   

if (currTabID !== FirstTabID)

{

    //reload the data

    top.relationships.iframesCollection[currTabID].contentWindow.location.reload();

}

Parents Reply Children
No Data