I have fixed update_column in record select. Options hash was ignored, so 
onchange function to update column wasn't set.

On Viernes, 23 de Julio de 2010 14:37:18 Slapyvardis escribió:
> Thanks for conditions method. No errors on JS side (FireBug is always
> on).
> Response:
>
> http://192.168.1.60:3000/lists/clients/browse 304 Not Modified 280ms
> ------------------------------------- Response
> -------------------------
> <div class="record-select" id="record-select-lists_clients">
>   <form action="/lists/clients/browse?page=1&amp;update=1" id="record-
> select-lists_clients-search" method="post" onsubmit="new
> Ajax.Request('/lists/clients/browse?page=1&amp;update=1',
> {asynchronous:true, evalScripts:true, method:'get',
> parameters:Form.serialize(this)}); return false;"><div style="margin:
> 0;padding:0;display:inline"><input name="authenticity_token"
> type="hidden" value="9mjYT6Qp4C/K2aIWFwPMJSkV6iLYt3ojaTN6UH9JYF0=" /></
> div>
>   <input autocomplete="off" class="text-input" id="search"
> name="search" type="text" />
> </form>
>
> <script type="text/javascript">
> //<![CDATA[
> var i = $("record-select-lists_clients-search").down('input.text-
> input');
> Form.Element.AfterActivity(i, function() {
>   $("record-select-lists_clients-search").onsubmit();
> }, 0.35);
> //]]>
> </script>
>   <ol>
>   <li class="found">2 clients found</li>
>       <li class="record odd" id="rs1">
>     <a href="actionselectcontrollerlists/clientsescapefalseid1"
> onclick="if (RecordSelect.notify(this))
> { Element.toggleClassName(this, &quot;selected&quot;); new
> Ajax.Request('/lists/clients/select/1', {asynchronous:true,
> evalScripts:true, method:'post', parameters:'authenticity_token=' +
> encodeURIComponent('9mjYT6Qp4C/
> K2aIWFwPMJSkV6iLYt3ojaTN6UH9JYF0=')}); }; return false;">UAB
> &quot;Testas&quot;</a>
>   </li>
>     <li class="record even" id="rs2">
>     <a href="actionselectcontrollerlists/clientsescapefalseid2"
> onclick="if (RecordSelect.notify(this))
> { Element.toggleClassName(this, &quot;selected&quot;); new
> Ajax.Request('/lists/clients/select/2', {asynchronous:true,
> evalScripts:true, method:'post', parameters:'authenticity_token=' +
> encodeURIComponent('9mjYT6Qp4C/
> K2aIWFwPMJSkV6iLYt3ojaTN6UH9JYF0=')}); }; return false;">sadfsadf</a>
>   </li>
>     </ol>
>
> </div>
> -------------------- End Of Response
> ----------------------------------------
>
>
> On Jul 23, 10:07 am, "Sergio Cambra .:: entreCables S.L. ::."
>
> <[email protected]> wrote:
> > On Jueves, 22 de Julio de 2010 17:57:08 Slapyvardis escribió:
> > > c.columns[:client].form_ui = :record_select
> > > c.columns[:client].update_column = [:seller_location]
> > >
> > > Question #1:
> > > Is there a quick way to enable `update_column` functionality on
> > > RecordSelect field?
> >
> > It should work with that configuration, do you get some JS errors? Check
> > with firebug please
> >
> > > Question #2:
> > > Is there an controller/helper override method for association
> > > conditions for RecordSelect field? Didn't find any documented answer.
> >
> > Yes, you can override record_select_conditions_from_controller in the
> > controller (the controller where you set record_select configuration).
> >
> > --
> > Sergio Cambra .:: entreCables S.L. ::.
> > Mariana Pineda 23, 50.018 Zaragoza
> > T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to