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

TOPIC:

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

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

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

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

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

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

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.069 seconds

  Excellent Tool ! This tool will save you a lot of time writing the same old structure. I've used others but this is really nice for a quick start. Makes a 3 hour task a 15 minute one. Thanks for this extension
dickrundell (JED)
         

Get Started