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

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started