<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=968400514-05022007>Hi 
there,</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007>&nbsp;&nbsp;&nbsp; </SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007>&nbsp;&nbsp;&nbsp; I was trying to make a form with an 
autocomplete text input wanting that when it is changed some text where 
updated.</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007>&nbsp;&nbsp;&nbsp; The scenario is that you choose a 
material with a code, then the text that tells the unit for that material gets 
updated.</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007>&nbsp;&nbsp;&nbsp; I wasn't able to get it right (I'm 
trying to understand the event flux with scriptaculos myself). The code I was 
using is this:</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007>ShoreDialogWithModel subclass: 
#BRDMaterialToUseEditor<BR>&nbsp;instanceVariableNames: 
'code'<BR>&nbsp;classVariableNames: ''<BR>&nbsp;poolDictionaries: 
''</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007>BRDMaterialToUseEditor&gt;&gt;renderFormOn: 
html</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=968400514-05022007>&nbsp;| 
codeId |<BR>&nbsp;codeId _ html nextId.<BR>&nbsp;<BR>&nbsp;html table: 
[<BR>&nbsp;&nbsp;html tableRow:[<BR>&nbsp;&nbsp;&nbsp;html tableData:[html text: 
'Material Code'].<BR>&nbsp;&nbsp;&nbsp;html 
tableData:[<BR>&nbsp;&nbsp;&nbsp;&nbsp;html 
textInput<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id: 
'code';<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value: 
code;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;callback:[:value| code _ 
value];<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onChange: (html 
updater<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id: 
codeId;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;triggerForm: 
'code';<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;callback:[:r| 
self renderUnitOn: 
r]);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yourself.<BR>&nbsp;&nbsp;&nbsp;&nbsp;html 
div<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;class: 
'autocomplete';<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;script: 
(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;html 
autocompleter<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;element: 
'code';<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onSelected:(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;html 
request<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;triggerFormElement: 
'code');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;on: #renderCodeListOn: of: 
self;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yourself)].<BR>&nbsp;&nbsp;&nbsp;&nbsp;].<BR>&nbsp;&nbsp;html 
tableRow:[<BR>&nbsp;&nbsp;&nbsp;html tableData:[html text: 
'Quntity'].<BR>&nbsp;&nbsp;&nbsp;html tableData:[html textInput on: #quantity 
of: model]].<BR>&nbsp;&nbsp;html tableRow:[<BR>&nbsp;&nbsp;&nbsp;html 
tableData:[html text: 'Unit'].<BR>&nbsp;&nbsp;&nbsp;html tableData:[html div id: 
'unit'; with: [self renderUnitOn: 
html]].<BR>&nbsp;&nbsp;].<BR>&nbsp;]</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007>&nbsp;&nbsp;&nbsp; Any comments are 
welcomed,</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=968400514-05022007>&nbsp;&nbsp;&nbsp; thanks,</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV align=left><SPAN class=250542422-20122006>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><?xml:namespace prefix 
= st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:PersonName 
ProductID="Sebastian Sastre&#13;" w:st="on"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Sebastian 
Sastre<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" 
/><o:p></o:p></SPAN></st1:PersonName></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></P></DIV></SPAN></BODY></HTML>