Roberts Custom WAB Widgets

295491
475
12-31-2014 11:28 AM
RobertScheitlin__GISP
MVP Emeritus
475 Replies
RobertScheitlin__GISP
MVP Emeritus

Mikkel,

   So your having problems with my widgets or are you talking about your own widget development. There is nothing that needs to be changed in my widgets to get them running.

0 Kudos
MikkelHylden
Regular Contributor

It's been a little of both - I can get a custom widget to display including with a dijit combobox now, as long as I'm not trying to also load the jquery library in the declare statement:

     'jimu/loaderplugins/jquery-loader!https://code.jquery.com/jquery-git1.min.js',

This I find strange because the same line works fine in the UseJQuery sample widget. 

Yesterday, I tried to put your Identify (copied in the whole directory) in the directory:

     C:\arcgis-web-appbuilder-1.2\client\stemapp\widgets\samplewidgets 

The identify icon then comes up in the webappviewer toolbar as expected, but will not execute.  The only message the displays is a popup that says "Create widget error: Widgets\samplewidgets\Identify\Widget" 

I'm continuing to wade through all this, but just wanted to see if that was something that had come up in the past. I'm guessing just I have some configuration item set incorrectly, as all the tutorials appear to make it fairly easy to build custom stuff.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Mikkel,

    Add all my widget to the root widgets folder and not a sub folder like samplewidgets as this could affect the codes path.

0 Kudos
MikkelHylden
Regular Contributor

Yep, putting the identify in the root did the trick. Thanks very much.

Mikkel

0 Kudos
MikkelHylden
Regular Contributor

One other note - the jqeury and dijit work ok together, but apparently the order in which the declare statements are added matters - the dijit needs to come AFTER the jquery:

define(['dojo/_base/declare',

    'jimu/BaseWidget',

    'jimu/loaderplugins/jquery-loader!https://code.jquery.com/jquery-git1.min.js',

    'dijit/form/ComboBox'

],

0 Kudos
AdamChavez
Deactivated User

Good Afternoon,

     I have a need to modify the WAB site to zoom to my current coordinate(GPS) as soon as the site loads, is this possible?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Adam,

   How are you getting the GPS coordinates?

0 Kudos
AdamChavez
Deactivated User

Clicking once on the MyLocation widget, is there a way to call that “click” when the Web App opens to automatically zoom to location without having to put tons of extra code into the web app?

IT Analyst – Database (SQL)

Information Services Division

Internal Services Department

E-mail:- adchavez@co.fresno.ca.us<mailto:adchavez@co.fresno.ca.us>

Phone:- 559-600-5881

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Adam,

   Yes it would be possible. I will have to look at the amount of code involved in this and get back to you.

0 Kudos
AdamGebhart
Frequent Contributor

Robert Scheitlin, GISP

I believe you created the Basemap Switcher widget for Flex.  Am I correct, and if so, do you have any plans to create it in WAB?  Just curious as our Flex site includes that widget and our users, as well as staff, really like it.

Thanks.

0 Kudos