Hello,
I want to draw Attribute and Remove the existing attribute in Model using javascript programing. how to do that . could please someone explain ?
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) } } } }
//to create a textbox with a reference to a model attribute: oModel.CreateTextOcc (iX, iY, p_nAttrTypeNum )
//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) } } } }