Hello community,
We have an advanced dynamic folder created in a custom section.
If a user wants to see this folder, he needs to click "Filters/Folders" >"View Folders"> and choose the dynamic folder.
Is it possible to add a custom button that will apply the dynamic folder filter when it is clicked? Basically, we want to apply the dynamic folder filter in 1 click instead of 3
Like
Hello,
You need to call the showFolderTree method in the click event of your button:
... { "operation": "insert", "parentName": "ActionButtonsContainer", "propertyName": "items", "name": "ShowFoldersButton", "values": { "itemType": Terrasoft.ViewItemType.BUTTON, "caption": { bindTo: "Resources.Strings.ShowFoldersButtonCaption" }, "click": { bindTo: "showFolderTree" }, "layout": {
As a result clicking on the button will simulate the same click event on the "Show folder" button.
hi Shivani Lakshman,
Yes, it is possible.
This is the table that stores the filter conditions "CustomSectionName" + "Folder". On the button click event, the dynamically created folder name has to be sent to this table and the section grid has to be loaded accordingly.
Instead of re-doing the task that has been implemented via OOTB "FilterModule", it is suggested to utilize the No-Code tools in this case, considering X number of dynamic folders. If it is for one folder, then please utilize the ESQ (for the customsectionFolder table).
In another way, a default filter can be set to a section. So when a section is loaded, it applies the filter and loads the records.
BR,
Bhoobalan Palanivelu.
Bhoobalan Palanivelu,
Thank you for the response. I do not want a default filter applied or add additional filters by using getFilters methos. I want the following on the UI when a button is clicked.
Is there a reference to get the below on the UI?
Hello,
You need to call the showFolderTree method in the click event of your button:
... { "operation": "insert", "parentName": "ActionButtonsContainer", "propertyName": "items", "name": "ShowFoldersButton", "values": { "itemType": Terrasoft.ViewItemType.BUTTON, "caption": { bindTo: "Resources.Strings.ShowFoldersButtonCaption" }, "click": { bindTo: "showFolderTree" }, "layout": {
As a result clicking on the button will simulate the same click event on the "Show folder" button.