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

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started