<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i work with VW 7.4.1 and SeasideScriptaculous
(2.6b1.108.0,mbany) from
store.cincomsmalltalk.com:5432_store_public.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My objective is create two Multi-Select-List,
where,</FONT></DIV>
<DIV><FONT face=Arial size=2> when i
change the Master Multi-Select-List selection i set the selections of the
Slave Multi-Select-List ( with the Master Multi-Select-List selection
)<BR><BR></FONT><FONT face=Arial size=2>For test my solution i change the
Scriptaculous-Testing-> SUAllTest ->SUFormTest.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The relative method<STRONG>
renderMultiSelectListOn: html</STRONG> </FONT></DIV>
<DIV><FONT face=Arial size=2> now is::<BR></DIV></FONT>
<DIV><FONT face=Arial size=2>renderMultiSelectListOn: html <BR> | fid mid
idScnCnt mid2 |<BR> fid := html nextId.<BR> mid := html
nextId.<BR> idScnCnt := html nextId.<BR> mid2 := html
nextId.<BR> (html div)<BR> class: 'label';<BR> with:
'Nested Multi-Select-List'.<BR> (html div)<BR> class:
'control';<BR> with: <BR> [(html
form)<BR> id:
fid;<BR> with:
<BR> [ "Master
Multi-Select-List"</FONT></DIV>
<DIV><FONT face=Arial
size=2> </FONT><FONT face=Arial
size=2> html
select<BR> size:
9;<BR> beMultiple;<BR> list:
(1 to: 22);<BR> selected:
mutliSelectList;<BR> callback:
[:value | mutliSelectList :=
value];<BR> onChange: ((html
updater)<BR> id:
mid;<BR> triggerForm:
fid;<BR> callback:
[:r | r render: mutliSelectList]);<BR> </FONT></DIV>
<DIV><FONT face=Arial size=2>
onChange:( html
updater<BR> id:
idScnCnt;<BR>
triggerForm:
fid;<BR>
callback: [ :r |
<FONT color=#ff0000> "in this point create Slave
Multi-Select-List in second case when Master
change"<BR></FONT> </FONT><FONT
face=Arial
size=2>
r render: scnCnt. ]).</FONT></DIV>
<DIV><FONT face=Arial size=2><BR> (html
div)<BR> class:
'model';<BR> id:
mid;<BR> with:
mutliSelectList.<BR> </FONT></DIV>
<DIV><FONT face=Arial
size=2> " <FONT
color=#ff0000>create </FONT>Slave Multi-Select-List before Master
Multi-Select-List change
"<BR><BR> scnCnt:=
html select id:
idScnCnt;<BR>
size: 9;<BR>
beMultiple; <BR>
list:
mutliSelectList;<BR>
selected:
mutliSelectList2;<BR>
callback: [ :value | mutliSelectList2 := value
];<BR>
onChange: (html
updater<BR>
id:
mid2;<BR>
triggerForm:
fid;<BR>
callback: [ :r | r render:
mutliSelectList2 ]).<BR> html div class:
'model'; id: mid2; with:
mutliSelectList2.<BR> ].</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> ].</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My problem is , w</FONT><FONT face=Arial size=2>hen
change the Master Multi-Select-List the Slave Multi-Select-List is not
update.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have note after </FONT><FONT face=Arial
size=2><FONT face=Arial size=2>change the Master
Multi-Select-List and </FONT></FONT><FONT face=Arial size=2>i
select the </FONT><FONT face=Arial size=2>Toggle Halos link the " Slave
Multi-Select-List" is correct update.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Where i mistake ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT color=#000000>Any
pointers would be greatly
appreciated!<BR><BR>Thanks!</FONT><BR></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Dario Trussardi
Romano.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=#ff0000 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have do another
solution where the Slave Multi-Select-List is <FONT color=#ff0000>create
</FONT>then the Master Multi-Select-List selection change.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#000000 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">In this case all
functions but when i select the Toggle Halos link the Slave Multi-Select-List is
lose.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#000000 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Is this correct
operation ?</SPAN></FONT></P></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>