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

TOPIC:

Using Filters with published / unpublished datas 18 Feb 2012 11:40 #1360

  • liubov
  • liubov's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
Hello Admin,

In my jbreedm Project for j2.5, I have a data field 'Publish' at the end of each Table. Now, I try to add filters (backend side), to display only Published Items or Unpublished Items.

When I set the filter in the layout page, we can not drag and drop the publish field, becaude it's is not a foreigh key!

How can I do, what is the good method?

Thank you.

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

Re: Using Filters with published / unpublished datas 18 Feb 2012 12:19 #1363

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Not available yet.
Coding is now a piece of cake

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

Re: Using Filters with published / unpublished datas 20 Feb 2012 13:31 #1400

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Added !

You can now filter on a bool.
If you want to change 'True' and 'False' strings for 'published/unpublished', do it in the layout file.

Enjoy.


EDIT : If you want to see unpublished items in front-end, a filter will not do the job, because they can only reduce the existant query. In that case, please change your front-end model for that. (Have a look on the backend model of the same table)
Coding is now a piece of cake

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

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.080 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started