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

TOPIC:

Not Able To Set Unpublished as default 28 Sep 2013 17:18 #11215

  • Collins
  • Collins's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 22
  • Thank you received: 0
I am not able to set unpublished as the default.

I do not know if this is an error in Cook.

Here is what I did:

I set unpublished as required with default value zero, however it did not work.

I have only one project, it contains one table "Prayers"

In the "Prayers" Table in the "publish field" I set:

Required = checked
Default Value = 0
Edit Check = 0

But it doesn't work. All records I create are published. I know this because: Every user can still view all entries by other users.

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

Not Able To Set Unpublished as default 28 Sep 2013 18:59 #11218

Same trouble for me, setting 0 as default doesn't work.

Also, if I clic on "Unpublished" button and save, I have a Warning - Invalid field: Published.

Thanks for help

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

Not Able To Set Unpublished as default 29 Sep 2013 23:28 #11240

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Did you tried to remove the field validator ? It is not necessary, but instancied per default because Published is an integer.
Coding is now a piece of cake
The following user(s) said Thank You: yves

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

Not Able To Set Unpublished as default 29 Sep 2013 23:44 #11245

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
The first problem is fixed.
The second is linked to the validation that should not occur.
Coding is now a piece of cake
The following user(s) said Thank You: yves

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

Not Able To Set Unpublished as default 02 Oct 2013 17:22 #11278

  • Collins
  • Collins's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 22
  • Thank you received: 0
I removed the validator.
But every user can still see every other user.

I have been trying to do this for weeks.
Please just tell me how to do it with a fork.

I have only one table.
How do I change the query that displays that table in the grid, so that the user can only see their own records?

Please tell me how to access the query and how to bring the current user-id into that query.

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

Not Able To Set Unpublished as default 02 Oct 2013 18:10 #11280

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Your Publish wizard was not good instancied.
Was it old ?

Because when I recreated it it has worked.
The way it create its link with the field has changed, but long time ago. I am surprised.
For the moment I cannot see the problem clearly, but it has happened already that we need to recreate the link between wizard and field.

I have downloaded your project, tested and it works now.
Coding is now a piece of cake

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

Not Able To Set Unpublished as default 03 Oct 2013 03:16 #11287

  • Collins
  • Collins's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 22
  • Thank you received: 0
Yes !
It works now :)

Thank you !

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

  • Page:
  • 1
Time to create page: 0.066 seconds

This Component Generator is the REAL component generator. This tool is very easy to use and in a matter of minutes I was building a fully working extension. I was amazed with the end result... worth every cent...
Griiettner (JED)

         

Get Started