On Domingo, 13 de Noviembre de 2011 16:15:26 JB escribió:
> I'm getting the following JS error in an alert box:
> 
>   TypeError: this.options.onchange.call is not a function
> 
> My column is configured with the following:
> 
>   conf.columns[:sub_contractor].form_ui = :record_select
>   conf.columns[:sub_contractor].update_columns = :cost_code
> 
>   def after_render_field(record, column)
>     if column.name == :sub_contractor
>       record.cost_code_id = record.sub_contractor.cost_code_id
>     end
>   end
> 
> If I dismiss the alert, the record_select part seems to work and the
> record updates properly. Only the cost_code column is NOT updated. If
> I use form_ui = :select, then everything works fine. I have other
> record_select columns that don't attempt to update another column that
> work fine so I'm thinking that this might be a bug in the
> update_column code.
> 
> Any ideas?

Which versions of ActiveScaffold and RecordSelect are you using?

-- 
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