Hi all,
I can't to remove occurence and connection from model. I use Remove() method, but it has no effect. What could be reason for that this is not successful?
For example - I have simple report run on object. There are 2 lines in report:
var oOccs = ArisData.getSelectedObjOccs(); oOccs[0].Remove();
I tried unsuccessfully this code for connection:
oCxnList = oOccs[o].CxnOccList(); oCxnList[0].Remove();
or
oCxnList[0].Cxn().Delete(false);
Object and connection are still in model... :(
Do you have any idea?
P.S. What is difference between relations and connections?
Abhijit Das on
Hi Vladimir,
Just out of curiosity what is your context when you are running the script. If the context is not set object then it will not give you anything in oOccs.
I do have a code which work in Cxns() for ObjOccs.
var lCxnOcc=selObjOcc.Cxns();
lCxnOcc[0].Remove();
And obviously the selObjOcc.Remove() also work.
Check if you are getting anything in the oOccs.
If you are still getting the error chekc with the Software AG. Is it with a particular release.
Sorry I can help only this much.
Thanks
Abhijit Das
abhijit.das@cba.com.au