[aida] Problem with addMenuCollection

Janko Mivšek janko.mivsek at eranova.si
Wed May 20 22:46:48 CEST 2009


Hi Francisco,

Francisco A. Lizarralde pravi:

> I have an error with this line in a StudentApp >> viewEdit method
> 
> 	e cell addMenuCollection: (self observee parent specialities)
> selectedToAspect: #name of: self observee speciality. 

Are those specialities just strings? If not, use longer version:

 	#addMenuAspect:collection:selectedToAspect:of:

In first aspect you put a name of the method to return a string to
appear in a menu.

Hope this helps
Janko


> The observee is a Student and his parent is an application Model who has
> a collection of specialities. My intention is to select a speciality
> from a drop down menu list, and store it in the student speciality
> instance variable. The list shows the speciality names.
> 
> The error I get is: Speciality(Object) >> doesNotUnderstand: #readStream
> 
> I don't understand what I'm doing wrong. Any help would be appreciated.


-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


More information about the Aida mailing list