Welcome, Guest
Username: Password: Remember me

TOPIC: Filters -> Combo box -> Empty !

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

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
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 ?
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
PTL ? (Project / Table / Layout)
Coding is now a piece of cake
The administrator has disabled public write access.

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

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
DJPro Total Control / Managers / Default
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
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
The administrator has disabled public write access.

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

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
OK, accepted...

What files do i need to change for this ?
The administrator has disabled public write access.

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

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
In another table is shown normal !

Check please -> DJPro Total Control / Checkups / Default
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
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 administrator has disabled public write access.
The following user(s) said Thank You: Pantelis

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

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
You checkup table does not contains conflicted filters.
Coding is now a piece of cake
The administrator has disabled public write access.

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

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Thank you for your time.

Topic FIXED!
The administrator has disabled public write access.
Time to create page: 0.096 seconds

Get Started