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

TOPIC:

Custom function in collection grid clears filter 08 Jun 2017 20:05 #15196

  • dyvel
  • dyvel's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 200
  • Thank you received: 11
Hi

I've created a custom function in a collection grid, and named it turn_up. My problem is, in builder, whenever I press the link, the filters are cleared.
Are there any way to prevent this?

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

Custom function in collection grid clears filter 09 Jun 2017 12:42 #15198

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Which PTL ?
Coding is now a piece of cake

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

Custom function in collection grid clears filter 13 Jun 2017 06:46 #15213

  • dyvel
  • dyvel's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 200
  • Thank you received: 11
What is PTL short for? The component is called "Danseskolen" - on the view=hold_elevers&layout=holdliste if that is any help...?
Thanks

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

Custom function in collection grid clears filter 18 Jun 2017 13:05 #15218

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
PTL is short name for :
Project / Table / Layout
in order to identify the context of your problem ...
The following user(s) said Thank You: admin

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

Custom function in collection grid clears filter 22 Jun 2017 18:05 #15226

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
@Dyvel
Simply because the redirection is changing layout for the default one.
And the filters states values are separated by layout contexts.

You can define the layout in the task button so it will stay on the same layout.
Hope it helps
Coding is now a piece of cake
The following user(s) said Thank You: dyvel

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

Custom function in collection grid clears filter 27 Jun 2017 11:52 #15233

  • dyvel
  • dyvel's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 200
  • Thank you received: 11
It did help - thank you! :-)

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

Custom function in collection grid clears filter 27 Jun 2017 12:00 #15234

  • dyvel
  • dyvel's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 200
  • Thank you received: 11
Actually it only party helped.

I'm having a case where I was using a task button in the toolbar for one layout, and here I could define the layout context ad you described.
In another layout I've placed the custom task in the grid. Then it's not possible to define layout context, and then the filter clears ...

Any advise?

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

Last edit: by dyvel.
  • Page:
  • 1
Time to create page: 0.067 seconds

Really great Joomla tool Cook is a great piece of kit for creating Joomla components. It uses a drag-n-drop interface to build tables and fully featured pages. You can test your component in a sandbox before downloading it packaged up ready to install. The developer is responsive on the support forum.
Twev (JED)
          

Get Started