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

TOPIC:

Filters -> Combo box -> Empty ! 19 Mar 2012 11:38 #1643

  • Stordia
  • Stordia's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
Hi there,

In one of my tables there is 3 Combo boxes on Filters, the 2 is ok but one is empty.

Can you help me with this ?

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

Re: Filters -> Combo box -> Empty ! 19 Mar 2012 11:58 #1644

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
PTL ? (Project / Table / Layout)
Coding is now a piece of cake

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

Re: Filters -> Combo box -> Empty ! 19 Mar 2012 12:00 #1645

  • Stordia
  • Stordia's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
DJPro Total Control / Managers / Default

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

Re: Filters -> Combo box -> Empty ! 19 Mar 2012 12:04 #1646

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
It is because both filters are filtering the same field. (Store)
And for the moment it is not possible because it creates conflicts (which value to use ?)

Some manual coding are nessesarry.
Coding is now a piece of cake

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

Re: Filters -> Combo box -> Empty ! 19 Mar 2012 12:06 #1647

  • Stordia
  • Stordia's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
OK, accepted...

What files do i need to change for this ?

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

Re: Filters -> Combo box -> Empty ! 19 Mar 2012 12:13 #1648

  • Stordia
  • Stordia's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
In another table is shown normal !

Check please -> DJPro Total Control / Checkups / Default

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

Re: Filters -> Combo box -> Empty ! 19 Mar 2012 12:17 #1649

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
First, you should distinct the filters names (dataKey in JDom)

Then, in your controller, get the 2 values and define your rules to choose the first or the second (for example ignore the empty values, or give a priority to the first one)

Set the StateVar value of the original name var (in order to get the filter working for the model)

Then, in the view file, redefine some lines that correspond to filter initialization. (Write again the right stateVars names)
Coding is now a piece of cake
The following user(s) said Thank You: Stordia

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

Re: Filters -> Combo box -> Empty ! 19 Mar 2012 12:20 #1651

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
You checkup table does not contains conflicted filters.
Coding is now a piece of cake

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

Re: Filters -> Combo box -> Empty ! 19 Mar 2012 12:34 #1653

  • Stordia
  • Stordia's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
Thank you for your time.

Topic FIXED!

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

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

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started