|
DOC
|
Just as a point of interest I have this same issue when loading widgets for WAB to github. I have not tested your widget on github but I ran across the same issue when testing another widget. Correct case for file paths matter. -Stan
... View more
06-08-2015
04:11 PM
|
0
|
0
|
9184
|
|
POST
|
The node.js console is the black box you have open in the background to run the developers edition like this:
... View more
06-08-2015
08:16 AM
|
1
|
1
|
896
|
|
POST
|
Andrew, Also, do you get any errors in your node.js console? -Stan
... View more
06-08-2015
07:55 AM
|
0
|
3
|
1650
|
|
POST
|
Rickey, I have been working on a time selector in conjunction with the date picker and it works kinda but not the way I like it so I am going to try something new. -Stan
... View more
06-04-2015
02:41 PM
|
1
|
0
|
1686
|
|
POST
|
I agree, once we get this to a point where it works nice we can work on putting a bow on it and sharing it. -Stan
... View more
06-04-2015
02:39 PM
|
1
|
0
|
545
|
|
POST
|
Rickey, Are you wanting to pick the overnight times for a single night? Right now you have night time hours for the entire date range. This is a fun project for me to tinker with. Thanks for letting me be of assistance. Also I noticed on the popup the time in the date field is different from the time in the time field. -Stan
... View more
06-04-2015
01:01 PM
|
1
|
2
|
1686
|
|
POST
|
Rickey Fite I have been looking at this for a little while and worked up some extra things for you. Hopefully this will help and get it moving along. There still are a few things that are quirky but not sure yet how to work around it. Like you have to select the month drop down for it to run the query. Anyway here are the changes I made: in the index.html file in the <head> (this loads the jquery to the map) ></script> <!-- added this jquery for the date picker -->
<link rel="stylesheet" href="https://community.esri.com//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> in the \widgets\LocalLayer_filter\widget.js right after the startup function is called. //--------date picker--------------------
var fromDate;
var toDate;
$(function() {
$( "#from" ).datepicker({
// minDate: -90,
maxDate: "+0D",
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 2,
onClose: function( selectedDate ) {
$( "#to" ).datepicker( "option", "minDate", selectedDate );
fromDate = selectedDate;
}
});
$( "#to" ).datepicker({
maxDate: "+0D",
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 2,
onClose: function( selectedDate ) {
$( "#from" ).datepicker( "option", "maxDate", selectedDate );
toDate = selectedDate;
}
});
});
//------------end date picker--------------- case 104: case "104":
defExp2 = "Date >='"+fromDate+"' AND Date <= '"+toDate+"'"; //changed this
break; and lets not forget about the Widget.html file. A little better formatting and new fields. <div>
<table style="width:100%">
<tr>
<td><label for="from">From:</label></td>
<td><input type="text" id="from" name="from"></td>
</tr>
<tr>
<td><label for="to">To:</label></td>
<td><input type="text" id="to" name="to"></td>
</tr>
<tr>
<td><label>Crime:</label></td>
<td>
<select id="s5" data-dojo-id="s5" data-dojo-attach-point="test" data-dojo-type="dijit/form/Select" data-dojo-props='name:"s5", onChange: myOnClick'>
<option value="0" selected="selected">Larceny/Theft</option>
<option value="1">Vehicle Theft</option>
<option value="2">Assult</option>
<option value="6">Other</option>
<option value="7">DUII</option>
<option value="8">Fraud</option>
<option value="9">Burglary</option>
<option value="10">Traffic Stop</option>
<option value="" disabled="true">----------</option>
<option value="Clear">All</option>
</select>
</td>
</tr>
<tr>
<td><label>Month:</label></td>
<td>
<select id="s12" data-dojo-id="s12" data-dojo-attach-point="s12" data-dojo-type="dijit/form/Select" onclick="" data-dojo-props='name:"s12"'>
<!-- <option value="103">August</option> -->
<option value="104" selected="selected">Date Range</option>
<!-- <option value="105">December</option>
<option value="106">January</option>
<option value="" disabled="true">----------</option> -->
<option value="Clear2">All</option>
</select>
</td>
</tr>
<tr>
<td><label>Time</label></td>
<td>
<select id="s1" data-dojo-id="s12" data-dojo-attach-point="s1" data-dojo-type="dijit/form/Select" onclick="" data-dojo-props='name:"s1"'>
<option value="010">Day (6am-8pm)</option>
<option value="011">Commute(7-9am/5-7pm)</option>
<option value="012">Night (8pm-6am)</option>
<option value="013">Night Life (9pm-2am)</option>
<option value="" disabled="true">----------</option>
<option value="Clear3" selected="selected">All</option>
</select>
</td>
</tr>
</table>
</br></br>
</br>
</br>
</br>
<div> <span id="featcount"> Loading...</span>
</div>
</div> Here is the sample I based it from http://jqueryui.com/datepicker/#date-range Here is the page to see more parameters to configure the datepicker http://api.jqueryui.com/datepicker/ This is at least a start. I am sure there must be a better way but it works. I really like the direction of the widget. -Stan
... View more
06-03-2015
11:55 AM
|
1
|
5
|
4035
|
|
POST
|
edu AED With the developer version we are able to do many customizations that are beyond the default out of the box solution. By doing this we are taking on the responsibility to keep track of our own changes and make them again (if needed) in any newer versions that come out. -Stan
... View more
06-03-2015
08:48 AM
|
0
|
0
|
1758
|
|
POST
|
Another thing that was throwing me off some was I was trying to edit the wrong config file. I was editing an app in the arcgis-web-appbuilder-1.1.1\server\apps folder (not the stemapp) and tried to make changes to the config file in the widget folder but I forgot that the config file that the widget was reading was in the <root>\configs\<widgetname>config_<widgetname>.json. Maybe this might help? -Stan
... View more
06-02-2015
08:33 AM
|
1
|
1
|
578
|
|
POST
|
Rickey Fite I was having that same problem for a while. I think what I did to fix it was assign a variable in the js to the config value and then used the variable in the js code. for example: json "crimes": "Month='January'" widget var crimeDate = this.config.crimes; Then use crimeDate in the js code where you had "this.config.crimes" before. -Stan
... View more
06-02-2015
07:50 AM
|
1
|
5
|
2900
|
|
POST
|
Andy, Glad you are figuring it out. It sounds tricky. -Stan
... View more
06-01-2015
03:39 PM
|
0
|
0
|
2798
|
|
POST
|
No. I guess I should say, not that I am aware of. -Stan
... View more
06-01-2015
02:33 PM
|
0
|
0
|
1602
|
|
POST
|
Chrome. I get that when I hover over the word "style.css" in the top right of that image. -Stan
... View more
06-01-2015
01:09 PM
|
1
|
5
|
1845
|
|
POST
|
Jeff Ward In the developer tools elements tab where you see the css. you can hover over the file name (in this case style.css) and it will tell you where the file is located. The :1 tells you what line in that file to look for. I am not sure how Robert Scheitlin, GISP found the one in the js file besides just digging around. -Stan
... View more
06-01-2015
09:15 AM
|
2
|
8
|
1845
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-29-2015 06:36 AM | |
| 1 | 06-30-2015 09:27 AM | |
| 1 | 04-20-2015 10:23 AM | |
| 1 | 06-23-2015 11:01 AM | |
| 1 | 05-19-2015 02:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-07-2025
06:26 AM
|