Hi, I’m working with the search created through a ...
# general
i
Hi, I’m working with the search created through a Suitelet. I’d like to add “Available filters”, just like in a normal saved search. So, two questions: 1. Does anyone know if it is possible to add “Available filters” to such a search? 2. As an alternative, I have been able to import through a Client Script, the same filters that appear in the normal saved search as an HTML file. However, the functionalities of the fields do not work. Any idea why and how to solve this problem? Thanks!
b
suitelets are not known for being dynamic
the standard suitelet approach is to add fields to your suitelet to choose your available filters and a submit button to generate a new page with your new filters
i
I’m pretty new to NetSuite, so I’m not sure I understand your message. You suggest that I add fields to my suitelet form, right? The thing is that I have a suitelet list, not a form, served through writePage, not to lose the header and menu bar. Is there any way that I can serve through writePage both a form (for the “available filters”) and the list (with the search results)? Thanks a lot for your insights, btw!
b
not really
you've chosen an inflexible list
it only displays a sublist
if you really want to use a list page instead of a form page, then the only customization you get out of a list are buttons and client script
you can either make buttons that create popups to choose your filters
i
Ok, thanks for all the info! That’s precisely the idea I was getting in my head 🙂
b
or you can use the client script to do dom manipulations to add your fields
i personally would have just done the form
allows you to get fields without the dom manipulations