Hi,
I am trying to create a transmission in my browser where a destination port can be populated form a #selection and #strongSelection source port. It seems to be that transmission does not occur correctly from #strongSelection port to the destination port.
To reproduce, in the browser produced by the sample below, double clicking in the right pane should show the elements up to the selected integer. But in my case, there is no change in the centre pane.
| browser | browser := GLMTabulator new column: #one; column: #two; column: #three; yourself.
browser transmit to: #one; andShow: [ :a | a list display: [ :x | 1 to: x ]].
browser transmit to: #two; from: #one; from: #three port: #strongSelection;
andShow: [ :a | a list display: [ :x | 1 to: x ]; allowNil]. browser transmit to: #three;
from: #one port: #strongSelection; andShow: [:a | a list display: [ :x | 1 to: x ].]. browser openOn: 100
Is it a bug or wrong usage of transmissions? What is the best way to populate a destination from multiple origin ports and amongst those one is #strongSelection. Thanks.
usman _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi Usman, When a transmission has multiple origin ports the display block of the resulting presentation takes multiple arguments: 'andShow: [ :a | a list display: [ :x :y | 1 to: x ]; allowNil].'
In your case you could either split the transmission into two or use a transform block in the transmission to combine the two value. Does this answer your question?
Cheers,
Andrei On Wed, Aug 6, 2014 at 1:27 PM, Usman Bhatti <[hidden email]> wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi Andrei, On Wed, Aug 6, 2014 at 1:43 PM, Andrei Chis <[hidden email]> wrote:
Indeed. I do not know how did I miss it!
Yes it does. Thank you for your prompt reply.
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |