|
POST
|
Oh well. I just switched to using dojox/form/CheckedMultiSelect instead. Everything works great with that.
... View more
08-19-2019
12:51 PM
|
0
|
1
|
4324
|
|
POST
|
Hi Robert, Just back from vacation and catching up on this. I see what you are talking about. Any chance there is documentation on usage? I am not sure how well I will be able to figure things out. Thank you.
... View more
08-19-2019
10:44 AM
|
0
|
3
|
4324
|
|
POST
|
So I was trying to create a regular dijit/form/MultiSelect but can't seem to get it to populate any values using JS. As I was looking for examples in other wigets I notice the query widget has a nice multi select drop down widget. This would fit my needs much better. Anyone have any knowledge on how to create this? If not I will keep trying to get my regular multiselect working. function(response) {
let option;
let optionsArray = [];
for (let i = 0; i < response.features.length; i++) {
switch (selectField) {
case "capCat":
option = {value: [response.features[i].attributes.CAT_No, response.features[i].attributes.CAT_Begin_Dt, response.features[i].attributes.CAT_End_Dt], label: response.features[i].attributes.CAT_Full_Name};;
optionsArray.push(option);
break;
case "capPeril":
option = {value: response.features[i].attributes.COVERAGE, label: response.features[i].attributes.COVERAGE};;
optionsArray.push(option);
break;
}
}
//Use this if regular select
if (selectField == "capCat" ){
// Add a defualt option first
let option1 = { value: "-", label: "Select a " + title, selected: true };
select.addOption(option1);
//Then add the rest of the options
select.addOption(optionsArray);
} else { //use this if multiselect
//Attempt to load using store/Memory
select.set("store", new Memory({data: optionsArray, idProperty: "value"}));
select.set ("labelAttr", "label");
console.log(select);
}
... View more
08-09-2019
11:32 AM
|
0
|
7
|
4939
|
|
POST
|
That did the trick. Thank you. Now to find out why my multiselect with not populate when connecting to a store.
... View more
08-09-2019
10:43 AM
|
0
|
0
|
2475
|
|
POST
|
That image is how it renders in the Chrome debugger. I just wanted to show that even in there it is not loading all the elements. Here is how it looks in the widget. It is just missing some of the html elements. I am using _WidgetsInTemplateMixin as seen below. define(['dojo/_base/declare',
'jimu/BaseWidget',
"esri/request",
'dojo/_base/json',
'dojo/_base/array',
'dojo/date',
'dijit/form/DateTextBox',
"dijit/form/Select",
"dijit/form/MultiSelect",
"dijit/form/FilteringSelect",
"dijit/form/CurrencyTextBox",
"dojo/store/Memory",
"dojo/data/ObjectStore",
"dijit/registry",
'dijit/_WidgetsInTemplateMixin'],
function(declare, BaseWidget, esriRequest, JSON, array, date, DateTextBox, Select, MultiSelect, FilteringSelect, CurrencyTextBox, Memory, ObjectStore, registry, _WidgetsInTemplateMixin) {
//To create a widget, you need to derive from BaseWidget.
return declare([BaseWidget, _WidgetsInTemplateMixin], {
// Custom widget code goes here
baseClass: 'jimu-widget-claimsanalysispanel',
... View more
08-08-2019
12:41 PM
|
0
|
2
|
2475
|
|
POST
|
I started createing anew widget. First I wanted to lay our all the fields I wanted on the panel. I have 16 fields and 1 button. When I load the widget I only see some of the elements in the widget. When I load on different browsers I still get only some of the elements but sometimes not the same ones.When I check the web response widgets/ClaimsAnalysisPanel/Widget.html?wab_dv=2.11 it has all the elements that I need in the text but looking at the debugger preview screen it only shows some of them. I am stumped. Any ideas? <div>
<label for="capFromDate">Loss Date From: </label>
<input type="text" name="capFromDate" id="capFromDate" value="now" data-dojo-type="dijit/form/DateTextBox"
required="false" constraints="{min:'2008-01-01'}" /><br>
<label for="capToDate">Loss Date To: </label>
<input type="text" name="capToDate" id="capToDate" value="now" data-dojo-type="dijit/form/DateTextBox"
required="false" constraints="{min:'2008-01-01'}" /><br>
<label for="capRptFromDate">Reported Date From: </label>
<input type="text" name="capRptFromDate" id="capRptFromDate" value="now" data-dojo-type="dijit/form/DateTextBox"
required="false" constraints="{min:'2008-01-01'}" /><br>
<label for="capRptToDate">Reported Date To: </label>
<input type="text" name="capRptToDate" id="capRptToDate" value="now" data-dojo-type="dijit/form/DateTextBox"
required="false" constraints="{min:'2008-01-01'}" /><br>
<label for="capperil">Peril: </label>
<select name="capperil" id="capperil" data-dojo-type="dijit/form/Select" required="false" /><br>
<label for="capcat">Cat Code: </label>
<select name="capcat" id="capcat" data-dojo-type="dijit/form/Select" required="false" data-dojo-attach-event="onChange:capcatChanged" /><br>
<label for="capbranch">Branch: </label>
<select name="capbranch" id="capbranch" data-dojo-type="dijit/form/Select" required="false" /><br>
<label for="caphandler">Handler: </label>
<select name="caphandler" id="caphandler" data-dojo-type="dijit/form/Select" required="false" /><br>
<label for="capia">IA: </label>
<select name="capia" id="capia" data-dojo-type="dijit/form/Select" required="false" /><br>
<label for="capstate">State: </label>
<select name="capstate" id="capstate" data-dojo-type="dijit/form/Select" required="false" /><br>
<label for="capcounty">County: </label>
<select name="capcounty" id="capcounty" data-dojo-type="dijit/form/Select" required="false" /><br>
<label for="capzip">Zip: </label>
<select name="capzip" id="capzip" data-dojo-type="dijit/form/TextBox" required="false" /><br>
<label for="capcovAFrom">Cov A Paid From: </label>
<input type="text" name="capcovAFrom" id="capcovAFrom" data-dojo-type="dijit/form/CurrencyTextBox" required="false"
data-dojo-props="constraints:{fractional:true}, currency:'USD', invalidMessage:'Invalid amount. Cents are required.'" /><br>
<label for="capcovATo">Cov A Paid To: </label>
<input type="text" name="capcovATo" id="capcovATo" data-dojo-type="dijit/form/CurrencyTextBox" required="false"
data-dojo-props="constraints:{fractional:true}, currency:'USD', invalidMessage:'Invalid amount. Cents are required.'" /><br>
<label for="capPolicyForm">Policy Form: </label>
<select name="capPolicyForm" id="capPolicyForm" data-dojo-type="dijit/form/Select" required="false" /><br>
<label for="capStatus">Status: </label>
<select name="capStatus" id="capStatus" data-dojo-type="dijit/form/Select" required="false" /><br>
<div class="jimu-btn" data-dojo-attach-point="btnRun" data-dojo-attach-event="onclick:loadbtnClick">Load</div>
</div>
... View more
08-08-2019
12:25 PM
|
0
|
4
|
2629
|
|
POST
|
I am using WebApp Builder Dev Edition 2.12. I have a 3 maps I created using the launchpad theme.In all of them I have an issue with the attribute widgets table popping up. Everything is normal until I open up the attribute table. After that if the attribute table is closed and I turn on any layer, an empty white box exactly the same size and position as the attribute tables shows up. To fix I have to togle the attribute table on and back off. Next time I turn a layer on it repeats. Anyone else notice this? Possibly a bug in the attribute table widget or something in the theme?
... View more
08-06-2019
11:14 AM
|
0
|
0
|
517
|
|
POST
|
This worked great! Just had to add that if statement to LayerInfoForDefaultService.js. Thank you!
... View more
07-24-2019
08:11 AM
|
0
|
0
|
1065
|
|
POST
|
Before I make that change I want to verify you meant to change the LayerInfoForDefault.js and not LayerInfoForDefaultService.js. The only reason I ask is that the code you changed looks more like the latter file LayerInfoForDefaultService.js
... View more
07-24-2019
07:40 AM
|
0
|
2
|
5457
|
|
POST
|
Hi Robert. This has worked pretty well for me but I am wondering if it is possible to make this not set pop ups on basemaps. As it stands, the minute I change the basemap to something like imagery, it turns popups on for that. Depending on my zoom level, that could mean sifting through over 100 items in the popup to get what I need.
... View more
07-24-2019
06:22 AM
|
0
|
4
|
5457
|
|
POST
|
Additional info: Using the query widget draw function I get the correct number of reults back when drawing a box. Doing the exact same box with the select tool gives me an incorrect number of results.
... View more
06-27-2019
07:20 AM
|
0
|
0
|
644
|
|
POST
|
Someone placed a loopback url in the hosts file on my windows server which caused this issue. Removing that url entry solved the issue.
... View more
06-27-2019
07:19 AM
|
0
|
0
|
907
|
|
POST
|
I ended up initiating identity manager and calling the check sign in function. Once that was called single sign on worked great.
... View more
06-27-2019
07:17 AM
|
0
|
1
|
2443
|
|
POST
|
I am using WebAppBuilder Dev 2.11 to build my app. When using the select tool I notice it does not accurately select points from my dynamic map service. My service contains hunderds of thousands of points across the US. As you can see in the attached video there is one point that does not want to be selected unless selected that record alone. Any ideas on the cause or how to troubleshoot?
... View more
06-26-2019
10:33 AM
|
0
|
1
|
757
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-21-2026 06:15 AM | |
| 4 | 03-12-2025 11:01 AM | |
| 3 | 01-08-2025 09:26 AM | |
| 1 | 01-08-2025 07:19 AM | |
| 1 | 12-06-2024 04:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|