If I look the chome network log I see the get requ...
# suitescript
i
If I look the chome network log I see the get request and Netsuite returns a page it seems but it doesn't actually refresh the suitelet page I'm on and doesn't seem to have the new data on the page.
s
1. Is the sublist already there but hidden until the date is selected? 2. How are you trying to add the sublist to the page after the date is selected?
i
It is not already there. When the date is selected a client script calls the suitelet again with a a parameter that the suitelet sees and adds a list.
b
you wouldn't use https.get to refresh the page
change window.location
s
^, something like
Copy code
var origURL = window.location.href;
var newURL //add logic to append param
location.href = newURL
i
That seemed to do it but it pops up with this message. Anyway to not do that? I’m trying to do something like I saved search filters where you can select date and then it refreshes the search with accurate data. It never pops up with anything like this though
b
usually you remove those via
Copy code
window.onbeforeunload = null