Roberts Custom WAB Widgets

295714
475
12-31-2014 11:28 AM
RobertScheitlin__GISP
MVP Emeritus
475 Replies
BarnabyRockwell
Deactivated User

Robert,

That fix works perfectly.  EXCELLENT!

Many thanks,

Barnaby

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

All,

  Don't forget to mark replies as helpful if they are.

0 Kudos
BarnabyRockwell
Deactivated User

Robert,

I seem to be getting two ID results for every polygon I click on in a tiled vector layer.  Can you duplicate this?  There should only be one result per polygon.

Layer: Generalized lithology (ID: 1)

{
"name": "Generalized lithology",
"url": "http://MyServer/arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer",
"id": 1,
"zoomscale": "",
"forcescale": false,
"fields": {
"all": false,
"field": [
{
"name": "State",
"alias": "State"
},
{
"name": "Orig_Label",
"alias": "Original label"
},
{
"name": "Unit_Name",
"alias": "Unit name"
},
{
"name": "Generalized_Lithology",
"alias": "Generalized lithology"
},
{
"name": "Age_Min",
"alias": "Minimum age"
},
{
"name": "Age_Max",
"alias": "Maximum age"
},
{
"name": "Major1",
"alias": "Major1"
},
{
"name": "Major2",
"alias": "Major2"
},
{
"name": "Major3",
"alias": "Major3"
},
{
"name": "Minor1",
"alias": "Minor1"
},
{
"name": "Minor2",
"alias": "Minor2"
},
{
"name": "Minor3",
"alias": "Minor3"
},
{
"name": "Minor4",
"alias": "Minor4"
},
{
"name": "Minor5",
"alias": "Minor5"
},
{
"name": "Indeterminate",
"alias": "Indeterminate"
},
{
"name": "Reference",
"alias": "Reference"
}
]
},
"links": {}
}

Edit:  note that I also have a popup configured for that tiled layer.  Don't know if that matters, but...

Cheers,

Barnaby

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Barnaby,

   Yes I can duplicate that. I think I found the issue but will have to test more.

0 Kudos
BarnabyRockwell
Deactivated User

Robert,

Great.  Let me know if you need more info.

Cheers,

Barnaby

0 Kudos
BarnabyRockwell
Deactivated User

Robert,

ID widget 1.1.0.1 works like a dream.  EXCELLENT! 

I developed a suite of RegEx script commands for use in Notepad++ which quickly convert the XML config code from the Flex version widget into  json code for the WAB version of the widget.  This saves LOTS of time when converting viewers having ID widget from Flex to WAB.

Instructions:

  1. Open config_identify.json in Notepad++
  2. Copy layer entries from Flex XML into layers section of json file
  3. Run RegEx search/replace in order shown in Excel spreadsheet (top to bottom), using "Regular expression" Search mode.

Many thanks,

Barnaby

Edit:  (I would have posted this as a comment on the ID widget document page, but it is apparently impossible to add attachments to such comments.  )

AndrewNiederhauser1
Deactivated User

Barnaby,

Are you aware of any RegEx scripts that have been developed to migrate the Flex eSearch setups to the new WAB eSearch?

Thanks,

Andrew

0 Kudos
BarnabyRockwell
Deactivated User

Andrew,

No, I am unaware of any such scripts.  I don't use eSearch, so I have had no need to make an updater script.

Cheers,

Barnaby

0 Kudos
AndrewNiederhauser1
Deactivated User

Okay. Thanks for the reply!

0 Kudos
AndrewNiederhauser1
Deactivated User

Robert,

Do you have any interest in putting together a widget that could load .config files for an app based on user credentials? Something similar would be the crime mapping app you setup.

Calhoun County Sheriff

Wherein a user could enter their credentials and the WAB would retrieve the .config file appropriate to that user and load the related widgets and layers contained in the .config. Ideally, this would be setup for the non-developer. 

Apologies for possibly oversimplifying this task.

Thanks,

Andrew

0 Kudos