Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Default Task not working in a grid

[FIXED] Default Task not working in a grid 10 Dec 2012 11:32 #5965

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Hi @admin,

I had added a default wizard to my products table grouped by item (foreign key) however, I cannot get the toolbar task to work. It redirects to the default admin index page with a completely blank grid view with no grid or filters, just the placeholder divs for them.

Also, I had tried to to insert the default task in the grid itself but for some reason, that column doesn't appear.

Any thoughts?

My usual setup - Cook 2.0, jQuery, Model.

Thanks,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Default Task not working in a grid 10 Dec 2012 11:46 #5970

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Regenerate and upgrade helpers/helper.php
Yesterday, I made a mistake (1 hour issue, but should be fixed now, No ?)

urlRequest() function has changed. Because I cleaned all the deprecated JRequest, replacing for JInput, and for 1.6, 1.7 compatibility.

BUT, I may upload the whole. Not sure.
BUT, To upload the whole I must test everything well. (all instances of JRequest)

2.0 is becoming much more clean.
(Have a look also in populateState(), it is now really powerfull !!)

Really thank you so much everybody, this help is really amazing.
Stability is coming, but this period is necessary.
Promise, I am here and responsive.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Default Task not working in a grid 10 Dec 2012 11:47 #5972

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
Hi audibleid
"insert the default task" ??? - in your tooolbar?

Have seen this
- when the layouts are not set properly in the redirect
- have also seen this (not the blank screen) but the redirect to default page if you create an alternate layout for the same table (apply will boot you to the default layout)

I trust you checked the redirects
com_xxxx_yyyyyy_layout1 (the current layout)
com_xxxx_yyyyyy_layout2 (the layout your going to)

(must type faster admin to the rescue again!)
Last Edit: 10 Dec 2012 11:50 by BTB300.
The administrator has disabled public write access.

Re: Default Task not working in a grid 10 Dec 2012 11:57 #5975

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
This is not rescue, it is shame on me when I make big mistakes.

urlRequest is managing the default redirections, when you change a filter, or something else.

Next step, I will merge the redirector and urlRequest() function. To avoid double code.
Always searching for perfection...

Is it working now on a fresh ? Or still an issue ?
(It is possible...)
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Default Task not working in a grid 10 Dec 2012 11:58 #5976

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Hi, thanks both!

Just to confirm, when I said default task, I mean I'm using the default wizard and have added the default task to the toolbar. I have also placed the default task in the grid so that admin's can quickly and easily make a record the default for it's group (inventory item in my case).

@admin
This is only something that I have just added, I mean the default wizard was on the table but I had not yet implemented it until today. Should I try again?

@BTB300 - I have no redirects processing upon firing this task.

Thanks,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Default Task not working in a grid 10 Dec 2012 12:10 #5981

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Ok, I check this.

I didn't understood it was the 'default' task, I tought you was speaking about default tasks in general (built-in tasks)

Hold on.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: JoomGuy

Re: Default Task not working in a grid 10 Dec 2012 12:36 #5987

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Hi @ admin,

I tried also adding my 'default' field back on the grid layout as togglable. Toggleble works fine in the sense that it toggles the field however, it doesn't switch the other 'grouped' records to false.

To further explain, I have 2 tables: Inventory (My base products) + Products that are inventory items with a specific finish (colour etc.)

In my products table, I have implemented the Default wizard, grouped by item (FK - inventory.id) to allow a particular product to be the default (finish) for a particular item.

Thanks,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Default Task not working in a grid 11 Dec 2012 10:26 #6005

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
hi audibleid,
now i see i have a similar on one of my projects but not on FK.id will check for you if it helps
The administrator has disabled public write access.

Re: Default Task not working in a grid 11 Dec 2012 10:34 #6006

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Hey @BTB300

From chatting to Jocelyn about this I believe it will be fixed in V2.0.

I thought that I'd had it working in a different project previously but I may be mistaken!

It's no deal-breaker for me though ;)

@admin, do you have any suggestions on a manual fix for this please?

Thanks both,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Default Task not working in a grid 11 Dec 2012 10:49 #6007

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
It redirects to the default admin index page with a completely blank grid view with no grid or filters, just the placeholder divs for them.

2.0 - jquery-model
Just built my project a few minutes ago and i get the blank layout - and yes my grouping was on the fk of another table but not the id
The administrator has disabled public write access.

Re: Default Task not working in a grid 11 Dec 2012 11:07 #6008

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Thanks @BTB300!

Yep, not really sure what's going on there... Have you tried inserting the default task as a column in the grid? Does that not appear as mine did not?

Thanks,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Default Task not working in a grid 11 Dec 2012 17:39 #6015

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
This is now fixed in local, but please wait a little bit that I test everything well.

Stay in touch.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: BTB300, JoomGuy

Re: Default Task not working in a grid 12 Dec 2012 04:36 #6023

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
admin wrote:
Stay in touch.
Us loosing touch... :lol: Like you we are both always here

Anyhow Admin, thanks for your assistance
The administrator has disabled public write access.

Re: Default Task not working in a grid 15 Dec 2012 16:21 #6134

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Fixed.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Default Task not working in a grid 15 Dec 2012 16:42 #6141

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Beautiful!!!!

Thanks for all these awesome Fixes!

K++

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.
Time to create page: 0.099 seconds

Get Started