Netzke::Basepack::GridPanel and search

43 views
Skip to first unread message

rme

unread,
Jan 1, 2012, 6:24:31 AM1/1/12
to Netzke
Hi

I'm new to Netzke

I want to use Netzke::Basepack::GridPanel to create a grid

I've derived a class - provided a list of columns & it works really
well

It has a number of associations (using "__" notation) that work fine
in the edit/add form, but which don't work so well in the search form

In search it offers integer compares on the foreign key when I'd like
string compares

Can I either suppress them from the search form, or can I fix it so it
does string compares?

I've tried search_form_config & search_form but haven't made any
progress

Any advice would be very welcome

Thanks in advance

Richard

NomadCoder

unread,
Jan 1, 2012, 7:58:07 AM1/1/12
to Netzke
Hi Richard,

Atm, there's no option like search_form_config implemented in
GridPanel, but it surely should be there. Do you feel like submitting
a pull request (this is where the change should come:
https://github.com/skozlov/netzke-basepack/blob/master/lib/netzke/basepack/grid_panel.rb#L419)

or do you prefer to wait until I find time to fix it myself?

Thanks!

NomadCoder

rme

unread,
Jan 5, 2012, 1:14:54 PM1/5/12
to Netzke
Hi NomadCoder

Thanks very much for the prompt reply

I doubt you'd thank me for trying to implement this myself

I'm fairly new to rails & Netzke & think I'll leave it to the experts

My app (such as it is) works OK without this feature, but it would be
a really nice addition when it's available

Thanks again

Cheers

Richard

On Jan 1, 12:58 pm, NomadCoder <nmco...@gmail.com> wrote:
> Hi Richard,
>
> Atm, there's no option like search_form_config implemented in
> GridPanel, but it surely should be there. Do you feel like submitting
> a pull request (this is where the change should come:https://github.com/skozlov/netzke-basepack/blob/master/lib/netzke/bas...)
Reply all
Reply to author
Forward
0 new messages