Phil@Work wrote:
Hi everyone,
I've just got started with Magritte and have a couple of new-bee
questions.
1. I have a MAMultipleOptionDescription and the options come from
sending #availableOptions to the current instance. I can't see how i
would do this with #asDynamicObject
2. I have a SingleOptionDescription with a dynamic options object -
can i provide a display block or how would i control what is displayed
in the popup. I found an optionsAndLables but it doesn't take a
dynamic object.
Does anyone know how to achieve this, or can point me to the
appropriate documentation. Sorry for the simple questions.
Thanks in advance,
Phil
The Magritte-Scriptaculous package adds this kind of functionality, here
is a description from my image, in which the accessor has an alternate
accesor that is used to obtain the list of options.
descriptionImprintChooser
^MASingleOptionDescription new
accessor: ((#imprint asAccessor) visible: #hasImprint; options:
#imprintOptions; tooltip: #imprintInfo);
propertyAt: #labelSelector put: #chooserLabel;
reference: WSUserImprint new;
label: 'Imprint';
beRequired;
bePersistOnChange;
priority: 140;
yourself
Keith