PHP Classes

Drop down in add

Recommend this page to a friend!

      DrasticTools  >  All threads  >  Drop down in add  >  (Un) Subscribe thread alerts  
Subject:Drop down in add
Summary:Just wondering what I need to add to the class/config
Messages:6
Author:Mac vd Merwe
Date:2008-04-10 10:40:07
Update:2010-10-18 17:28:58
 

  1. Drop down in add   Reply   Report abuse  
Picture of Mac vd Merwe Mac vd Merwe - 2008-04-10 10:40:07
I can see this class growing. Cool stuff!

Just wondering what I need to add to the class/config to do the following:
When editing (or adding) a row, I want to provide a drop-down with pre-defined choices, e.g. you can only select one of 10 provinces, with the province currently selected being the default. These drop-down choices could be hardcoded (at worst and defeating all you've been doing so far :), or in fact drawn from another table (at best).



  2. Re: Drop down in add   Reply   Report abuse  
Picture of dd dd - 2008-04-11 20:35:28 - In reply to message 1 from Mac vd Merwe
Hi Mac,

To me this seems as if you ask for the functionality of examplegrid2.
When you add a row, the field with type enum is added with the default value (according to the default value in MySQL table).
The user can then change the value using the drop down.

regards, O.

  3. Re: Drop down in add   Reply   Report abuse  
Picture of rishish rishish - 2010-06-25 10:35:30 - In reply to message 2 from dd
that's fine ., but in that case our select drop-down options data will be static., what if we want to make the select drop-down options data to get dynamically pulled from a table.

Thanks & regards

  4. Re: Drop down in add   Reply   Report abuse  
Picture of dd dd - 2010-06-28 15:18:12 - In reply to message 3 from rishish
Hi Rishish,

Yes, you are right, that is when the fields are static.
It is certainly possible to extend this and get the values from another table on the fly, but there is no out-of-the-box support for that in DrasticGrid right now. We will put it on the wish list for later.
If you really need the functionality right now, contact us directly.

regards,

dd

  5. Re: Drop down in add   Reply   Report abuse  
Picture of marcelo marcelo - 2010-10-15 14:19:34 - In reply to message 4 from dd
I need this too... it is posible now? get the values from another table on the fly... thnkas... adn greetings...

  6. Re: Drop down in add   Reply   Report abuse  
Picture of dd dd - 2010-10-18 17:28:58 - In reply to message 5 from marcelo
Hi Marcelo,

As said before, it is possible to do this but it is not at the moment included in the release. We do not have plans to extend it that way right now, but if you really need the functionality right now, contact us (drasticdata.nl) directly.

regards,

dd