MC
Hello,
I want to draw Attribute and Remove the existing attribute in Model using javascript programing. how to do that . could please someone explain ?
//remove model attribute 'Name' var oTextOccs = oModel.TextOccList() for each(var oTextOcc in oTextOccs){ var oModelAttrOccList = oTextOcc.AttrOccList(); if (oModelAttrOccList.length>0){ var AttrNo= oModelAttrOccList[0].AttrDef(-1).getValue() if (parseInt(AttrNo)>0){ // content of textbox is model attribute if (AttrNo == Constants.AT_NAME){ oTextOcc.Remove(true) } } } }