Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Keep getting METHOD DOES NOT EXIST

Question
Julie Marulappa · Apr 26, 2018

Keep getting METHOD DOES NOT EXIST

I am trying to create a list of id's which are of type integer. I have created a class like below and then I am trying to call the class from a BPL to first initialize the list. In the BPL, I have an assign action that is using set and a context variable setup to hold the list data. The property is using the class I have created, ##class(MSI.IN835.EOBList).%New(). I keep getting an error back saying the method does not exist. Why does it not like the %new method? I am new to cache object script, so if their is a better way to do this, I am open to that as well.

Class MSI.IN835.EOBList Extends %RegisteredObject
{

Property EOBList As list Of %Integer;

Storage Default
{
<Data name="EOBListDefaultData">
<Subscript>"EOBList"</Subscript>
<Value name="1">
<Value>EOBList</Value>
</Value>
</Data>
<DefaultData>EOBListDefaultData</DefaultData>
<Type>%Library.CacheStorage</Type>
}

}

#Caché

Source URL:https://community.intersystems.com/post/keep-getting-method-does-not-exist