Hello,
I am trying to change dynamically selection index of a droplist in Glamour. But changing the selectedIndex upon selection does not change anything in the browser. Here is my code:
|browser |
browser := GLMTabulator new. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | 1 to: 12 ]; selectedIndex: 10 ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | 1 to: x ]; selectionAct: [:aPres :each | (browser paneNamed: #one) presentations first selectedIndex: 1] entitled: 'select in dropList' ]. browser openOn: 1
Populating the pane port with the selected does change the list items but it does not update the selected value in the dropdown list.
selectionAct: [:aPres :each | ((browser paneNamed: #one) port: #selection) value: (1)] entitled: 'select in dropList' ].
Could you suggest how can I update droplist and the list upon the change of selectedIndex?
tx
Usman
I had a look and the functionality you want will not work as it's not implemented :) I could add a fix by tomorrow.
Cheers, Andrei
On Mon, Aug 19, 2013 at 3:17 PM, Usman Bhatti usman.bhatti@gmail.comwrote:
Hello,
I am trying to change dynamically selection index of a droplist in Glamour. But changing the selectedIndex upon selection does not change anything in the browser. Here is my code:
|browser |
browser := GLMTabulator new. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | 1 to: 12 ]; selectedIndex: 10 ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | 1 to: x ]; selectionAct: [:aPres :each | (browser paneNamed: #one) presentations first selectedIndex: 1] entitled: 'select in dropList' ]. browser openOn: 1
Populating the pane port with the selected does change the list items but it does not update the selected value in the dropdown list.
selectionAct: [:aPres :each | ((browser paneNamed: #one) port: #selection) value: (1)] entitled: 'select in dropList' ].
Could you suggest how can I update droplist and the list upon the change of selectedIndex?
tx
Usman
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Thanks. Please open an issue and mark it for 4.8.
Doru
On Tue, Aug 20, 2013 at 11:12 PM, Andrei Vasile Chis < chisvasileandrei@gmail.com> wrote:
I had a look and the functionality you want will not work as it's not implemented :) I could add a fix by tomorrow.
Cheers, Andrei
On Mon, Aug 19, 2013 at 3:17 PM, Usman Bhatti usman.bhatti@gmail.comwrote:
Hello,
I am trying to change dynamically selection index of a droplist in Glamour. But changing the selectedIndex upon selection does not change anything in the browser. Here is my code:
|browser |
browser := GLMTabulator new. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | 1 to: 12 ]; selectedIndex: 10 ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | 1 to: x ]; selectionAct: [:aPres :each | (browser paneNamed: #one) presentations first selectedIndex: 1] entitled: 'select in dropList' ]. browser openOn: 1
Populating the pane port with the selected does change the list items but it does not update the selected value in the dropdown list.
selectionAct: [:aPres :each | ((browser paneNamed: #one) port: #selection) value: (1)] entitled: 'select in dropList' ].
Could you suggest how can I update droplist and the list upon the change of selectedIndex?
tx
Usman
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Oups, I also opened an issue. I'll merge mine with Andrei's.
tx for looking.
usman
On Wed, Aug 21, 2013 at 6:52 AM, Tudor Girba tudor@tudorgirba.com wrote:
Thanks. Please open an issue and mark it for 4.8.
Doru
On Tue, Aug 20, 2013 at 11:12 PM, Andrei Vasile Chis < chisvasileandrei@gmail.com> wrote:
I had a look and the functionality you want will not work as it's not implemented :) I could add a fix by tomorrow.
Cheers, Andrei
On Mon, Aug 19, 2013 at 3:17 PM, Usman Bhatti usman.bhatti@gmail.comwrote:
Hello,
I am trying to change dynamically selection index of a droplist in Glamour. But changing the selectedIndex upon selection does not change anything in the browser. Here is my code:
|browser |
browser := GLMTabulator new. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | 1 to: 12 ]; selectedIndex: 10 ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | 1 to: x ]; selectionAct: [:aPres :each | (browser paneNamed: #one) presentations first selectedIndex: 1] entitled: 'select in dropList' ]. browser openOn: 1
Populating the pane port with the selected does change the list items but it does not update the selected value in the dropdown list.
selectionAct: [:aPres :each | ((browser paneNamed: #one) port: #selection) value: (1)] entitled: 'select in dropList' ].
Could you suggest how can I update droplist and the list upon the change of selectedIndex?
tx
Usman
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow"
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Andrei,
I cannot update a dropList when adding items to an Announcing collection in Glamour but it works for a list. It might be related with the issue we just discussed/opened. I tried to find the code that is triggered in Glamour when a presentation is updated but I had to stop after a certain level ;).
Here is my code:
|browser myCollection |
browser := GLMTabulator new. myCollection := GLMAnnouncingCollection new. 1 to: 12 do: [:each | myCollection add: each ]. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | myCollection]; updateOn: GLMItemAdded from: [myCollection] ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | myCollection ]; selectionAct: [:aPres | myCollection add: myCollection size + 1] entitled: 'Add'; updateOn: GLMItemAdded from: [myCollection] ]. browser openOn: 1
On Wed, Aug 21, 2013 at 10:02 AM, Usman Bhatti usman.bhatti@gmail.comwrote:
Oups, I also opened an issue. I'll merge mine with Andrei's.
tx for looking.
usman
On Wed, Aug 21, 2013 at 6:52 AM, Tudor Girba tudor@tudorgirba.com wrote:
Thanks. Please open an issue and mark it for 4.8.
Doru
On Tue, Aug 20, 2013 at 11:12 PM, Andrei Vasile Chis < chisvasileandrei@gmail.com> wrote:
I had a look and the functionality you want will not work as it's not implemented :) I could add a fix by tomorrow.
Cheers, Andrei
On Mon, Aug 19, 2013 at 3:17 PM, Usman Bhatti usman.bhatti@gmail.comwrote:
Hello,
I am trying to change dynamically selection index of a droplist in Glamour. But changing the selectedIndex upon selection does not change anything in the browser. Here is my code:
|browser |
browser := GLMTabulator new. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | 1 to: 12 ]; selectedIndex: 10 ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | 1 to: x ]; selectionAct: [:aPres :each | (browser paneNamed: #one) presentations first selectedIndex: 1] entitled: 'select in dropList' ]. browser openOn: 1
Populating the pane port with the selected does change the list items but it does not update the selected value in the dropdown list.
selectionAct: [:aPres :each | ((browser paneNamed: #one) port: #selection) value: (1)] entitled: 'select in dropList' ].
Could you suggest how can I update droplist and the list upon the change of selectedIndex?
tx
Usman
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow"
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
The example with the announcing collection should work now. Also, your second example (((browser paneNamed: #one) port: #selection) value: 1) will work. The first one ((browser paneNamed: #one) presentations first selectedIndex: 1; update) will just update the visual list, without changing the selection port. (this might also be fixed).
Let me know if it's ok for you like it is now.
Andrei
On Wed, Aug 21, 2013 at 12:56 PM, Usman Bhatti usman.bhatti@gmail.comwrote:
Andrei,
I cannot update a dropList when adding items to an Announcing collection in Glamour but it works for a list. It might be related with the issue we just discussed/opened. I tried to find the code that is triggered in Glamour when a presentation is updated but I had to stop after a certain level ;).
Here is my code:
|browser myCollection |
browser := GLMTabulator new. myCollection := GLMAnnouncingCollection new. 1 to: 12 do: [:each | myCollection add: each ]. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | myCollection]; updateOn: GLMItemAdded from: [myCollection] ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | myCollection ]; selectionAct: [:aPres | myCollection add: myCollection size + 1] entitled: 'Add'; updateOn: GLMItemAdded from: [myCollection] ]. browser openOn: 1
On Wed, Aug 21, 2013 at 10:02 AM, Usman Bhatti usman.bhatti@gmail.comwrote:
Oups, I also opened an issue. I'll merge mine with Andrei's.
tx for looking.
usman
On Wed, Aug 21, 2013 at 6:52 AM, Tudor Girba tudor@tudorgirba.comwrote:
Thanks. Please open an issue and mark it for 4.8.
Doru
On Tue, Aug 20, 2013 at 11:12 PM, Andrei Vasile Chis < chisvasileandrei@gmail.com> wrote:
I had a look and the functionality you want will not work as it's not implemented :) I could add a fix by tomorrow.
Cheers, Andrei
On Mon, Aug 19, 2013 at 3:17 PM, Usman Bhatti usman.bhatti@gmail.comwrote:
Hello,
I am trying to change dynamically selection index of a droplist in Glamour. But changing the selectedIndex upon selection does not change anything in the browser. Here is my code:
|browser |
browser := GLMTabulator new. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | 1 to: 12 ]; selectedIndex: 10 ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | 1 to: x ]; selectionAct: [:aPres :each | (browser paneNamed: #one) presentations first selectedIndex: 1] entitled: 'select in dropList' ]. browser openOn: 1
Populating the pane port with the selected does change the list items but it does not update the selected value in the dropdown list.
selectionAct: [:aPres :each | ((browser paneNamed: #one) port: #selection) value: (1)] entitled: 'select in dropList' ].
Could you suggest how can I update droplist and the list upon the change of selectedIndex?
tx
Usman
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow"
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Great. Thanks!
I would like to resist adding the selectionIndex as a port.
Doru
On Wed, Aug 21, 2013 at 7:15 PM, Andrei Vasile Chis < chisvasileandrei@gmail.com> wrote:
The example with the announcing collection should work now. Also, your second example (((browser paneNamed: #one) port: #selection) value: 1) will work. The first one ((browser paneNamed: #one) presentations first selectedIndex: 1; update) will just update the visual list, without changing the selection port. (this might also be fixed).
Let me know if it's ok for you like it is now.
Andrei
On Wed, Aug 21, 2013 at 12:56 PM, Usman Bhatti usman.bhatti@gmail.comwrote:
Andrei,
I cannot update a dropList when adding items to an Announcing collection in Glamour but it works for a list. It might be related with the issue we just discussed/opened. I tried to find the code that is triggered in Glamour when a presentation is updated but I had to stop after a certain level ;).
Here is my code:
|browser myCollection |
browser := GLMTabulator new. myCollection := GLMAnnouncingCollection new. 1 to: 12 do: [:each | myCollection add: each ]. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | myCollection]; updateOn: GLMItemAdded from: [myCollection] ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | myCollection ]; selectionAct: [:aPres | myCollection add: myCollection size + 1] entitled: 'Add'; updateOn: GLMItemAdded from: [myCollection] ]. browser openOn: 1
On Wed, Aug 21, 2013 at 10:02 AM, Usman Bhatti usman.bhatti@gmail.comwrote:
Oups, I also opened an issue. I'll merge mine with Andrei's.
tx for looking.
usman
On Wed, Aug 21, 2013 at 6:52 AM, Tudor Girba tudor@tudorgirba.comwrote:
Thanks. Please open an issue and mark it for 4.8.
Doru
On Tue, Aug 20, 2013 at 11:12 PM, Andrei Vasile Chis < chisvasileandrei@gmail.com> wrote:
I had a look and the functionality you want will not work as it's not implemented :) I could add a fix by tomorrow.
Cheers, Andrei
On Mon, Aug 19, 2013 at 3:17 PM, Usman Bhatti usman.bhatti@gmail.comwrote:
Hello,
I am trying to change dynamically selection index of a droplist in Glamour. But changing the selectedIndex upon selection does not change anything in the browser. Here is my code:
|browser |
browser := GLMTabulator new. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | 1 to: 12 ]; selectedIndex: 10 ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | 1 to: x ]; selectionAct: [:aPres :each | (browser paneNamed: #one) presentations first selectedIndex: 1] entitled: 'select in dropList' ]. browser openOn: 1
Populating the pane port with the selected does change the list items but it does not update the selected value in the dropdown list.
selectionAct: [:aPres :each | ((browser paneNamed: #one) port: #selection) value: (1)] entitled: 'select in dropList' ].
Could you suggest how can I update droplist and the list upon the change of selectedIndex?
tx
Usman
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow"
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hello Andrei,
That fixed the issue. Tx. Now both functionalities work.
Usman
On Wed, Aug 21, 2013 at 7:15 PM, Andrei Vasile Chis < chisvasileandrei@gmail.com> wrote:
The example with the announcing collection should work now. Also, your second example (((browser paneNamed: #one) port: #selection) value: 1) will work. The first one ((browser paneNamed: #one) presentations first selectedIndex: 1; update) will just update the visual list, without changing the selection port. (this might also be fixed).
Let me know if it's ok for you like it is now.
Andrei
On Wed, Aug 21, 2013 at 12:56 PM, Usman Bhatti usman.bhatti@gmail.comwrote:
Andrei,
I cannot update a dropList when adding items to an Announcing collection in Glamour but it works for a list. It might be related with the issue we just discussed/opened. I tried to find the code that is triggered in Glamour when a presentation is updated but I had to stop after a certain level ;).
Here is my code:
|browser myCollection |
browser := GLMTabulator new. myCollection := GLMAnnouncingCollection new. 1 to: 12 do: [:each | myCollection add: each ]. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | myCollection]; updateOn: GLMItemAdded from: [myCollection] ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | myCollection ]; selectionAct: [:aPres | myCollection add: myCollection size + 1] entitled: 'Add'; updateOn: GLMItemAdded from: [myCollection] ]. browser openOn: 1
On Wed, Aug 21, 2013 at 10:02 AM, Usman Bhatti usman.bhatti@gmail.comwrote:
Oups, I also opened an issue. I'll merge mine with Andrei's.
tx for looking.
usman
On Wed, Aug 21, 2013 at 6:52 AM, Tudor Girba tudor@tudorgirba.comwrote:
Thanks. Please open an issue and mark it for 4.8.
Doru
On Tue, Aug 20, 2013 at 11:12 PM, Andrei Vasile Chis < chisvasileandrei@gmail.com> wrote:
I had a look and the functionality you want will not work as it's not implemented :) I could add a fix by tomorrow.
Cheers, Andrei
On Mon, Aug 19, 2013 at 3:17 PM, Usman Bhatti usman.bhatti@gmail.comwrote:
Hello,
I am trying to change dynamically selection index of a droplist in Glamour. But changing the selectedIndex upon selection does not change anything in the browser. Here is my code:
|browser |
browser := GLMTabulator new. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | 1 to: 12 ]; selectedIndex: 10 ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | 1 to: x ]; selectionAct: [:aPres :each | (browser paneNamed: #one) presentations first selectedIndex: 1] entitled: 'select in dropList' ]. browser openOn: 1
Populating the pane port with the selected does change the list items but it does not update the selected value in the dropdown list.
selectionAct: [:aPres :each | ((browser paneNamed: #one) port: #selection) value: (1)] entitled: 'select in dropList' ].
Could you suggest how can I update droplist and the list upon the change of selectedIndex?
tx
Usman
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow"
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
The issue can be marked as Fixed?
On Fri, Aug 23, 2013 at 11:58 AM, Usman Bhatti usman.bhatti@gmail.comwrote:
Hello Andrei,
That fixed the issue. Tx. Now both functionalities work.
Usman
On Wed, Aug 21, 2013 at 7:15 PM, Andrei Vasile Chis < chisvasileandrei@gmail.com> wrote:
The example with the announcing collection should work now. Also, your second example (((browser paneNamed: #one) port: #selection) value: 1) will work. The first one ((browser paneNamed: #one) presentations first selectedIndex: 1; update) will just update the visual list, without changing the selection port. (this might also be fixed).
Let me know if it's ok for you like it is now.
Andrei
On Wed, Aug 21, 2013 at 12:56 PM, Usman Bhatti usman.bhatti@gmail.comwrote:
Andrei,
I cannot update a dropList when adding items to an Announcing collection in Glamour but it works for a list. It might be related with the issue we just discussed/opened. I tried to find the code that is triggered in Glamour when a presentation is updated but I had to stop after a certain level ;).
Here is my code:
|browser myCollection |
browser := GLMTabulator new. myCollection := GLMAnnouncingCollection new. 1 to: 12 do: [:each | myCollection add: each ]. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | myCollection]; updateOn: GLMItemAdded from: [myCollection] ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | myCollection ]; selectionAct: [:aPres | myCollection add: myCollection size + 1] entitled: 'Add'; updateOn: GLMItemAdded from: [myCollection] ]. browser openOn: 1
On Wed, Aug 21, 2013 at 10:02 AM, Usman Bhatti usman.bhatti@gmail.comwrote:
Oups, I also opened an issue. I'll merge mine with Andrei's.
tx for looking.
usman
On Wed, Aug 21, 2013 at 6:52 AM, Tudor Girba tudor@tudorgirba.comwrote:
Thanks. Please open an issue and mark it for 4.8.
Doru
On Tue, Aug 20, 2013 at 11:12 PM, Andrei Vasile Chis < chisvasileandrei@gmail.com> wrote:
I had a look and the functionality you want will not work as it's not implemented :) I could add a fix by tomorrow.
Cheers, Andrei
On Mon, Aug 19, 2013 at 3:17 PM, Usman Bhatti <usman.bhatti@gmail.com > wrote:
> Hello, > > I am trying to change dynamically selection index of a droplist in > Glamour. But changing the selectedIndex upon selection does not change > anything in the browser. Here is my code: > > |browser | > > browser := GLMTabulator new. > browser row: #one size: 30; row: #two. > browser transmit to: #one; andShow: [:a | > a dropDownList > display: [:x | 1 to: 12 ]; > selectedIndex: 10 ]. > browser transmit from: #one; to: #two; andShow: [:a | > a list > display: [:x | 1 to: x ]; > selectionAct: [:aPres :each | (browser paneNamed: #one) > presentations first selectedIndex: 1] entitled: 'select in dropList' > ]. > browser openOn: 1 > > > Populating the pane port with the selected does change the list > items but it does not update the selected value in the dropdown list. > > > selectionAct: [:aPres :each | ((browser paneNamed: #one) port: > #selection) value: (1)] entitled: 'select in dropList' > ]. > > Could you suggest how can I update droplist and the list upon the > change of selectedIndex? > > tx > > Usman > > > > _______________________________________________ > Moose-dev mailing list > Moose-dev@iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/moose-dev > >
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow"
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev