Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

checkbox 31 Jan 2012 05:35 #1138

  • mossss
  • mossss's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 7
I know this could be considered a new functionality, but I'm trying hard to get it to work.

I've created a checkbox.php form input and the checkbox appears fine and is functional on the form (I'm actually trying to use it as a filter).

Radiobox works fine as a filter by the way, just a matter of changing the filter input type from select to radio.

However, when using as a checkbox, I'm always losing all but one checked value, I know this is simply a matter of having the values as an array but I cannot find where to set it.

I know that this is then going to require rewriting the query build, but I think I can do that ok

I'll be more than happy to share when I manage to get it to work. Just a quick pointer on where to do this would be greatly appreciated.

thanks

Please Log in or Create an account to join the conversation.

Re: checkbox 01 Feb 2012 08:02 #1152

  • mossss
  • mossss's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 7
ok, have got this working as far as multi select checkboxes for filtering goes. Was a bit of a struggle but finally realised that need to set a namespace variable up for each of the possible values. (anyone wishing to do the same, just take a look in the /component/controllers/table.php)

This only gives the possibility for selecting multiple filter options though.

I'll add a topic in new functionalities for a multi select field type option. I have a way to get around that problem so I'm not going to attempt it.

admin - at the moment, users can add and remove options by adding records to a linked table. Would it be a bad idea to query this within the controller to set up the namespace variables? or would there be a better place to do this?

thanks

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.056 seconds

Amazing Tool !
And only tool I know that allows complete Scaffolding in terms of component creation. It really saves loads of time (actually much more than that). Simple architecture enables quick and painless changes at any time. Code is clean and consintent. It's just... what's the word... neat! :) Great work! You should definetely try this one!

pi_wo (JED)
         

Get Started