Extend Gui Tables with filter options
Hello,
we need to implement a general filter feature for at least some of the spryker zed gui tables like orders, product catalog, discounts etc.
This would include something like dropdown boxes and combined filters for helping backoffice users to find for example orders in a certain state.
As far as i can see, any of the "<module>-gui" modules do have more or less its own implementation and it seems very difficult to hook into the behaviour like filtering etc.
But i also saw this guide
which shows adding a filter via a filter transfer but also seems to be a market place feature(?). However, everything in the guide ultimately depends on the GuiTableApplicationPlugin which is not activated in our project and i am confused for what this is used for.
Can somebody explain if and how we can use this for backend gui tables? If not, what are alternatives? I am afraid rebuilding almost every GUI data table to make it filterable.
Answers
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,075 ⚖️ - Guardians (admin)
Heyhey @ingo.kaiser ,
you are right, this better handling and separation of logic for Gui-Tables was introduced for marketplace.
I just tried to play a bit around but in order to use the new better tables like in the merchant portal you would need to adapt Back Office pages similar to the Merchant Portal to render the content with web-components.
So by adapting sth like this (without anything marketplace) in the Back Office: https://github.com/spryker/sales-merchant-portal-gui/blob/master/src/Spryker/Zed/SalesMerchantPortalGui/Presentation/Orders/index.twig
Sounds for me like a cool topic for a hackathon 😅
But back to your challenge:
I think if you want to offer the same filter option to most current Back Office Gui Tables there is no other way than overriding all of them :(
@profuel , any other idea?
All the best,
Florian
3 -
Hi Florian,
thanks for your response and confirmation of my assumptions^^
after digging a bit deeper, i also come to the result that there seem to be no other way at the moment. Lets see how we can deal with it.
Best regards
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 919 Developer Corner
- 779 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random