POST
|
Hi Robert, Thanks for the reply. I am looking for a solution that is code based. Something that will automatically zoom to the selected features as part of my widgets results from selecting features on the map. Using the feature popup only zooms to the feature in the popup. I have several features selected throughout the entire map extent. I do not want the user to have to open anything, click anything or do anything. Once the widget has completed it's server calls and feature selections I would like the selected features to be zoomed to on the map. Greg
... View more
04-14-2017
10:32 AM
|
0
|
1
|
985
|
POST
|
Hello, I am using WAB 2.2 with the Jewery box theme. I would like to be able to display a busy cursor while a widget is returning results from a server call. How would I go about adding a busy cursor to my widget? Also, if the widget is closed can I release the busy cursor? Thank You, Greg
... View more
04-14-2017
10:27 AM
|
0
|
11
|
1730
|
POST
|
Hello, I am using WAB 2.2 Jewelry box theme. I have features selected and would now like to zoom to those selected features. How do I zoom to selected features on the map? Thank You, Greg
... View more
04-14-2017
10:04 AM
|
0
|
12
|
2305
|
POST
|
Hello Sapna, thank you for responding to my question. I've tried the above code. I have altered it slightly and this is the results I get. this.getPanel().titleLabelNode.style.textAlign = "center"; //added semicolon this.getPanel().titleLabelNode.innerHTML = "<p >Widget Title<br><img src=\"images/app-logo.png\"alt=\"image\" style=\"width:24;height:24;\"><font size=\"2\" >NameofFeature</font></p>"; Added the title of the widget and a new line indicator. This should accept a variable instead of hard coded text. The feature name will change based on the selected feature. As you can see the widget header needs to be increased in height to accomodate the extra title. Also, it does not appear to be centered. To me it should be more to the right to be correctly centered. Thank You, Greg
... View more
04-07-2017
03:06 PM
|
0
|
1
|
696
|
POST
|
Yes, Robert, thank you, I just found that solution as well. This is what worked for me. .dgrid-header .dgrid-column-B { text-align:center; } ..dgrid-column-B { width: 120px; }
... View more
04-04-2017
03:56 PM
|
0
|
0
|
626
|
POST
|
Robert, The second option worked: .dgrid-header .dgrid-column-B { text-align:center; width: 120px; } With a slight problem. The header columns don't align with the cells. However, if I use the column resize tool and click the line between the different columns it resets itself. Of course it would be best if it looked nice from the start without having to resize the columns to bring them all into alignment but this is a great step forward. FYI, I am calling grid.resize and grid.refresh after the data has been inserted from the memory store. Thank You, Greg
... View more
04-04-2017
02:44 PM
|
0
|
2
|
626
|
POST
|
Hi Robert, Thanks for the reply. Yes, I saw that one. But that centers ALL headers. I just want to center a select few, not all of them. I'm thinking I can do something inside the individual .dgrid-column-COLUMNNAME brackets. But when I try to do a "text-align:center;" it has no impact on the column header. Also, there isn't any reference to the column's header inside the bracket. For example: This does not work and there is no "header" reference inside .dgrid-column-B .dgrid-column-B {
text-align:center;
width: 120px;
}
... View more
04-04-2017
11:31 AM
|
0
|
1
|
626
|
POST
|
Hello, I'm using WAB 2.2 with the Jewelry Box theme and I am using dgrid's onDemandGrid and would like to center align specific column headers but not all headers in a grid. How would I go about accomplishing this? I have the following in my css file: .mywidget h3 {
font-size: 1.2em;
}
.mywidget h3, p {
margin-top: 0;
}
.dgrid {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: auto;
font-size:larger;
}
.dgrid-row-odd {
background: #F2F5F9;
}
.dgrid-column-A {
width: 80px;
}
.dgrid-column-B {
width: 120px;
}
.dgrid-column-C {
width: 80px;
}
.dgrid-column-D {
width: 120px;
}
.dgrid-column-E {
width: 50px;
}
.dgrid-column-F {
width: 70px;
} Thank You, Greg
... View more
04-04-2017
11:08 AM
|
0
|
6
|
1202
|
POST
|
Hello, Is it possible to center the widget title? Then under the title add an image and the name of the selected feature? I am using this code to add the name of the feature to the title: this.getPanel().titleLabelNode.innerHTML = NameOfFeature But it shows up like this: Widget Title : NameOfFeature With no image and not centered or on separate lines. I would like it to display more like this: Widget Title IMAGE NameOfFeature Thanks, Greg
... View more
04-04-2017
11:00 AM
|
0
|
3
|
1423
|
POST
|
Thank You Robert, that worked. I did have some duplicate id's, I'm not sure if that matters. It is working and I do see the additional widgets now. Greg
... View more
03-31-2017
05:30 PM
|
0
|
0
|
185
|
POST
|
Hello, I'm running WAB 2.2 with the Jewelry Box Theme. I have an edit widget and three custom widgets that appear in the WAB widget tab. I need to be able to add more widgets than the three custom widgets I already have. I can add a widget to the header control. However, I do not want the widget on the header control. My intention is to activate the widget via a Feature Action by selecting a feature on the map. How can I add more widgets? Greg
... View more
03-30-2017
04:51 PM
|
0
|
2
|
584
|
POST
|
Thank You Robert as always the man with the answers.
... View more
03-29-2017
08:00 AM
|
0
|
1
|
328
|
POST
|
Hello, I am using the Jewelry Box theme with WAB 2.2. Is it possible to have the Edit widget appear in a closed state? I have attached an image as an example.
... View more
03-28-2017
06:57 PM
|
0
|
3
|
728
|
POST
|
Hello, I need to change the theme of my WAB site. I am currently using WAB 2.2 and the Jewelry Box Theme. I need to be able to open more than one widget at a time. As I now understand the Jewelry Box theme does not support multiple widgets open at one time. 1) Can you suggest a theme that does allow multiple widgets open at one time? I was thinking Foldable or Dart but want to be certain they support multiple open widgets. 2) I have Feature Actions and need to be able to edit data. 3) What is involved with this kind of change? I've tried to use foldable and add my widget but it wants me to "Set service url". I do not understand what that is. 4) What steps can you suggest to make this transition painless? Greg
... View more
03-23-2017
04:25 PM
|
0
|
1
|
969
|
POST
|
Tom, thank you for the continued support. This is where I got with what you provide me. I got a few errors and fixed those by adding geometry as indicated below. However, after I assign pl = newPL, pl has no geometry. Which is important because calculatePositionAlong uses it: arrayUtils.forEach(pl.geometry.paths[0], function (coords) { And I use it to create a new graphic used to display myimage at the found point along the line, var graphic = new Graphic(pl.geometry, myimage); var newPL = new Polyline(map.spatialReference); var newPath = []; for (var i = pl.geometry.paths[0].length - 1; i >= 0; i--) { newPath.push(pl.geometry.getPoint(0, i)); } newPL.addPath(newPath); pl = newPL; How can I make sure pl has geometry? Greg
... View more
03-20-2017
04:31 PM
|
0
|
1
|
802
|
Title | Kudos | Posted |
---|---|---|
2 | 12-19-2016 11:36 AM | |
2 | 03-14-2017 04:17 PM | |
1 | 12-02-2016 09:50 AM | |
2 | 10-20-2016 03:10 PM | |
1 | 10-07-2016 04:23 PM |
Online Status |
Offline
|
Date Last Visited |
09-29-2021
09:14 PM
|