Hi,
I have description that goes something like this: Autor>>descriptionRegija ^ MASingleOptionDescription new accessor: #regija;
label: 'Regija'; priority: 700; options: LAURegija findAll; beRequired;
yourself the idea is to have a drop down that will display all available LAURegija instances. Now the problem is that Magritte seems to cache this description and method descriptionRegija does not get called every time the form is displayed, and consequently, if a new LAURegija is added, it is not present in the drop down.
So how to work around it? Many thanks, rush _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
On 07.04.2010, at 00:15, Davorin Rusevljan wrote: > Hi, > > I have description that goes something like this: > > Autor>>descriptionRegija > ^ MASingleOptionDescription new > accessor: #regija; > label: 'Regija'; > priority: 700; > options: LAURegija findAll; > beRequired; > yourself > > the idea is to have a drop down that will display all available LAURegija instances. Now the problem is that Magritte seems to cache this description and method descriptionRegija does not get called every time the form is displayed, and consequently, if a new LAURegija is added, it is not present in the drop down. > > So how to work around it? > options: [ LAURegija findAll ] asDynamicObject; regards, Norbert _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
asDynamicObject generated MNU, but magritteDynamicObject worked like charm. Many thanks, rush
_______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by drush66
Davorin Rusevljan wrote:
> the idea is to have a drop down that will display all available > LAURegija instances. Now the problem is that Magritte seems to cache > this description and method descriptionRegija does not get called every > time the form is displayed, and consequently, if a new LAURegija is > added, it is not present in the drop down. > > So how to work around it? Try: options: [ LAURegija findAll ] magritteDynamicObject; There are some caveats in the class comment for MADynamicObject. _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
On 07.04.2010, at 07:12, Yanni Chiu wrote: > Davorin Rusevljan wrote: >> the idea is to have a drop down that will display all available LAURegija instances. Now the problem is that Magritte seems to cache this description and method descriptionRegija does not get called every time the form is displayed, and consequently, if a new LAURegija is added, it is not present in the drop down. So how to work around it? > > Try: > > options: [ LAURegija findAll ] magritteDynamicObject; > > There are some caveats in the class comment for MADynamicObject. > Which version of Magritte is this? Norbert _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
On Wed, Apr 7, 2010 at 7:39 AM, Norbert Hartl <[hidden email]> wrote:
> > On 07.04.2010, at 07:12, Yanni Chiu wrote: > >> Davorin Rusevljan wrote: >>> the idea is to have a drop down that will display all available LAURegija instances. Now the problem is that Magritte seems to cache this description and method descriptionRegija does not get called every time the form is displayed, and consequently, if a new LAURegija is added, it is not present in the drop down. So how to work around it? >> >> Try: >> >> options: [ LAURegija findAll ] magritteDynamicObject; >> >> There are some caveats in the class comment for MADynamicObject. >> > Which version of Magritte is this? The one I ported to Grease/Seaside3/VASt (any extensions to base classes are "namespaced"). It should be in the /magritte2 repo. Julian _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by NorbertHartl
On Wed, Apr 7, 2010 at 8:39 AM, Norbert Hartl <[hidden email]> wrote:
I am using: Name: Magritte-Tests-Model-lr.13 Author: lr Time: 3 April 2010, 11:33:23 am UUID: 056d8fd4-655e-4565-81b6-b9b733e6e351
rush _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |