Even by sending 'update' to the treePresentation, it doesn't seem to work:

   |browser collection treePresentation|
   browser := GLMTabulator new.
   treePresentation := GLMTreePresentation new
title: 'list';
display: [ :aCollection | aCollection ].

   browser row: #list.
   browser transmit to: #list; andShow: [:a |
   a custom: treePresentation. 
   ].

   collection := OrderedCollection withAll: #('a' 'b' 'c' 'd').

   browser openOn: collection.

   collection add: 'e'.

   treePresentation update.

   browser update.

2010/8/4 Tudor Girba <tudor.girba@gmail.com>
At the moment, you have to send the update to the tree presentation.

Please open a ticket for this issue.

Doru


On 4 Aug 2010, at 14:07, Cyrille Delaunay wrote:

Hello,
I have some difficulties to update a GLMTreePresentation.
I wrote a small example to show my problem :

   |browser collection|
   browser := GLMTabulator new.
   browser row: #list.
   browser transmit to: #list; andShow: [:a |
        a tree
               title: 'list';
               display: [ :aCollection | aCollection ].
       ].

  collection := OrderedCollection withAll: #('a' 'b' 'c' 'd').

  browser openOn: collection.

  collection add: 'e'.

  browser update.

  browser openOn: collection


When an element is added to the collection, I would like the GLMTreePresentation to make this new element visible. I tried to send 'update' to the browser, but it doesn't seems to work. Do you have any other idea?
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Be rather willing to give than demanding to get."



_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev