Welcome, Guest
Username: Password: Remember me

TOPIC: Custom function in collection grid clears filter

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

  • dyvel
  • dyvel's Avatar
  • Offline
  • Elite Member
  • Posts: 200
  • Thank you received: 11
  • Karma: 10
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?
The administrator has disabled public write access.

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

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

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

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

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

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
@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 administrator has disabled public write access.
The following user(s) said Thank You: dyvel

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

  • dyvel
  • dyvel's Avatar
  • Offline
  • Elite Member
  • Posts: 200
  • Thank you received: 11
  • Karma: 10
It did help - thank you! :-)
The administrator has disabled public write access.

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

  • dyvel
  • dyvel's Avatar
  • Offline
  • Elite Member
  • Posts: 200
  • Thank you received: 11
  • Karma: 10
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?
Last Edit: 27 Jun 2017 12:02 by dyvel.
The administrator has disabled public write access.
Time to create page: 0.057 seconds

Get Started