Is it possible to display the first couple of days of calls for service so that my users can see the last 48hrs by default? Then if they wanted to see something prior to that they can search for it using the filter. Currently, my users have to put in a date filter every time they open the application.
Rudo,
You have two choices:
When the user clicks on the widget I want the last 48hrs to display by default. From there give my users the power to filter whatever they need after that. Where in the widget.js can I put that parameter in?
Rudo,
I can keep on being your personal programmer . You are going to have to try to do stuff yourself or hire a programmer.
In the Widget.js after line 910 insert this code, where line 14: 5, 0, equals the search layer number (so 5 is the sixth configured search layer) and 0 is the first expression for that layer.
//Now execute your default search get the last 48 hours var d = new Date(); var endTime = locale.format(d, { selector: "date", datePattern: "yyyy-MM-dd h:mm:ss a" }); d.setDate(d.getDate() - 2); var startTime = locale.format(d, { selector: "date", datePattern: "yyyy-MM-dd h:mm:ss a" }); this._queryFromURL(startTime + '~' + endTime, 5, 0, false);
I'm sorry, I am learning the developer side as I am going along, my apologies.
On line 13 you have 5,0. What do you mean by 6th configured search layer?
Rudo,
Each search layer that you have configured to be able to search is called a search layer (most being a different url then the others).
Yes, I realized that after I've sent the message sorry. I only have one.
Rudo,
So it would be
this._queryFromURL(startTime + '~' + endTime, 0, 0, false);
You deleted a 0 for some reason and I made a change to the 4th parameter.
Is this what is should be?
Also is this how the url search parameters should look like?