|
POST
|
Maybe I'm missing something, but wouldn't this work? states.setDefinitionExpression(defExp + " and " + defExp2);
... View more
04-23-2015
02:55 PM
|
1
|
14
|
1531
|
|
DOC
|
Rudie, Make sure you are pointing the WAB app to your server and not AGOL. In my widget and also in the Esri Print widget, the serring is the first property in the config.json: "serviceURL": "//<your server>/PrintingTools/GPServer/Export Web Map Task", On my server, the templates are at E:\WebMapTemplates. The drive letter may be different on your server. I suggest you back up the default templates before you start modifying them. -:)
... View more
04-23-2015
10:32 AM
|
0
|
0
|
19208
|
|
DOC
|
Rudie, Thanks for the kind words. I believe I must have added the north arrow to the templates on my ArcGIS Server. I think that would also be the best way to add a logo to the layout. Larry
... View more
04-23-2015
09:41 AM
|
0
|
0
|
19207
|
|
POST
|
Robert, It's listening for a mousemove event over the browser window, so it won't change to hasMouse: true until it detects that event. Did you try moving the mouse over the map? Larry
... View more
04-22-2015
08:55 AM
|
0
|
1
|
1496
|
|
POST
|
Sephe, Your device absolutely qualifies. Sounds like I have some work to do with touch screen laptops. Are you using Windows or a Mac? Larry
... View more
04-22-2015
08:11 AM
|
0
|
1
|
1496
|
|
POST
|
Thanks to all who replied. I really do appreciate you! Sorry for the code that didn't work very well. I've rewritten my code that detects touch and mouse. This time I'm not going to post until I've tested on the one device I can get my hands on: a Microsoft Surface tablet. Look for A Little Help Please? [Part Deux] tomorrow if my Surface test goes well. I've noticed more and more devices that have both touch screens and a mouse. My research tells me this is either impossible or very difficult to detect. I always love a challenge, so I wrote some code that I think will detect this. I am using Dojo has('touch') to detect if the device has a touch screen. This works on all of the devices I've tested. The code to detect a mouse on a touch device is the tricky part, and I don't have access to any devices to test this on. Here's how you can help if you have such a device. I have a customized WAB Application. In the lower left corner, above the scalebar, I am showing what devices I have detected: 1. Go to this link: MapViewer1.1-DEV-TEST-MOUSE 2. DO NOT USE YOUR MOUSE 3. Open some widgets, zoom, pan, tap a parcel, etc. 4. Verify that the debug reads as above: hasMouse: false (or undefined), hasTouch: true 5. NOW USE YOUR MOUSE 6. Verify that the debug reads: hasMouse: true, hasTouch: true 7. If the app doesn't detect the mouse or if there are any problems, let me know. 8. It would be cool to know the operating system and version (e.g. iOS 8.2, Android 4.1, Windows 8, etc.) If the testing goes well, I plan to share the code for this with the community, but feel free to scrape it. Acme/Widget/js, lines 207-237 Thanks, Larry
... View more
04-21-2015
02:20 PM
|
0
|
8
|
4750
|
|
DOC
|
Robert has given you better instructions than I would have. If you have any questions about the specific configuration, just let me know. The Print Plus Widget is not yet configurable in WAB, so the best way to configure it now in either case is with a text editor.
... View more
04-17-2015
01:00 PM
|
0
|
0
|
19207
|
|
DOC
|
Thanks to Robert for his support on this. We've been communicating privately, so I thought I'd write a wrap-up to the problem/solution. First, the _WidgetMetadataMixin was tricky to get working in all browsers because of three (not two) reasons: Relative paths were being resolved differently by different browsers. To add confusion, working in WAB Developer Edition created a different pathing issue than any of the browsers running against IIS. The timing for building the DOM is different in different browsers, so there were some asynchronous issues to address. Event handling is different in different browsers. In Chrome, evt.stopPropagation() was adequate, but in FireFox and IE, evt.preventDefault() was required. I ended up using evt.preventDefault() and that works in all of the browsers I tested. Second, in my WelWhatDisHelpAbout Widget, I have created live widget buttons in the Help tab. If you hover over a widget button in the Help tab, it changed its style just like the real widget button. If you click on a widget button in the Help tab, it opens the widget. This is pretty cool, but requires scanning the style sheets to discover the styles to use. Scanning the style sheets can be a real adventure in different browsers. FireFox throws a "SecurityError" exception if you try to read a style sheet from a different domain (e.g. http://js.arcgis.com/3.13/...). Once you have the style sheet object, Chrome and IE (9) have both rules and cssRules properties, but FireFox has only a cssRules property. I could only reproduce the error Robert was getting in the FireFox console if I disconnected from my network, opened Fiddler2, and set the performance in Fiddler2 to "Simulate Modem Speeds". Even then, the error was intermittent. If you are old enough to remember dial-up modems, you know how long the debugging took. Two to three minutes to load the application, which in human time, seems like two to three months. I ended up rewriting the offending function twice before we got the problem solved. And the problem was not just the error in the FireFox Console. It wasn't always reading the style sheets, which means the widget buttons in the Help tab weren't getting styled correctly. As far as I know, it is working correctly now. If you find a problem, please let me know. Larry
... View more
04-15-2015
12:56 PM
|
1
|
0
|
1721
|
|
DOC
|
Brandon, I have a headless widget I call Acme. It does lots of "behind the scenes" things, and one of them is resetting the layers to the default WebMap. All the ResetLayers Widget does is publish a topic that the Acme Widget has subscribed to. One of my next projects is to fully document the Acme Widget and make config examples for each widget that depends on it, just for requests like this. Here's a link where you can download my entire app and some documentation on the Acme Widget configuration. It's a few weeks old, and I'm in the process of updating the post, but as far as the ResetLayers Widget, it should be reasonably up to date. Just get the two files under "Web AppBuilder Application". Larrys Custom WAB Widgets and More
... View more
04-15-2015
11:38 AM
|
0
|
0
|
19207
|
|
POST
|
I'm in the same boat. Nearly everything I know about networking is what I've heard over the cube wall from our network guys. NetMotion requires its own server. We initially got it so that people with laptops would be restricted to our network whenever they have an Internet connection. They still have access to the Internet, but not to sites that are blocked by our filters. I won't name names, but we have lots of people who wear uniforms and drive county vehicles with laptops. Our policy is (I think) to have NetMotion on all county laptops. Early on, I discovered I couldn't get on a lot of hotel, airport, and other public sites because NetMotion would not let my browser open their page as my home page. I'll leave out the ugly details, but the eventually gave me permissions through the NetMotion Server to bypass NetMotion. As soon as I agree to terms and conditions, I can reconnect to NetMotion and be on our county network. Our Flex Viewer and WAB Viewer point to both our public and non-public ArcGIS Servers. When I connect to NetMotion with my iPhone, I can see the layers on our non-public server. Otherwise, I can't. Magic.
... View more
04-14-2015
11:04 AM
|
0
|
0
|
2922
|
|
POST
|
We use NetMotion in Hamilton County. They have clients for iOS and Android. I have tested them on my iPhone 6 and on an older iPad and they work well.
... View more
04-14-2015
09:07 AM
|
0
|
2
|
2922
|
|
DOC
|
Robert, I fixed two issues that affected the mixins in FireFox and IE: They seem to resolve relative paths differently than Chrome. The timing for building the DOM is different. While using the console in FireFox and IE, I discovered and fixed multiple other assorted minor issues. Why can't all the browsers just get along? I've updated the Live Preview site now, so let me know what you think. I've made a note to investigate the other errors you were getting. When I was a younger man, I did some things in the WelWhatDisHelpAbout Widget that look very strange to me now. I'm hoping to rewrite the offending function tomorrow. Larry P.S. Thanks for the feedback. I hate bugs!
... View more
04-11-2015
10:41 PM
|
0
|
0
|
1721
|
|
DOC
|
Robert, I discovered the _WidgetMetadataMixin is only working in Chrome. I'm working it now. Thanks for the error dump. It looks like there is enough information for me to work that also. I'll post again when I get these solved. Since I discovered the problem, I never updated the sample site, so it won't work even in Chrome unless you try my dev site, which is not necessarily stable all of the time. ArcGIS Web Application . Larry
... View more
04-11-2015
11:16 AM
|
0
|
0
|
1721
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-03-2015 07:45 AM | |
| 1 | 08-06-2015 05:32 PM | |
| 1 | 08-11-2015 06:08 PM | |
| 1 | 06-09-2015 06:58 PM | |
| 1 | 01-22-2015 03:06 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|