|
POST
|
Drop this thread. See http://forums.arcgis.com/threads/83126-Query-for-distinct-values
... View more
04-30-2013
06:28 AM
|
0
|
0
|
3045
|
|
POST
|
Got a problem for a widget with preload="minimized". After the widget is opened and then closed, it does not return to "minimized" state. But this widget's icon on the toolbar is still underlined with a yellow bar, and this widget is actually disappeared on the UI. I believe that the problem is caused by the approach as described below: I set each widget id (e.g. the widget below id="3"), and then run the even below (revised the code from Robert) in the widget. Once some widgets are closed, the actual id may change and then it causes the problem. Therefore, I am considering in the event below, if the opened widget can be identified not by widget id (that defined in config.xml should be removed), this problem may be solvable. Welcome your solution for it. Thanks. ---------- private function wTemplate_openHandler(event:Event):void { for each (var widgetId:Number in ViewerContainer.getInstance().widgetManager.getAllLoadedWidgetIds()) { if(widgetId != 3) { var data:Object = { id: widgetId, state: WidgetStates.WIDGET_MINIMIZED }; AppEvent.dispatch(AppEvent.WIDGET_CHANGE_STATE, data); } } }
... View more
04-26-2013
09:22 AM
|
0
|
1
|
1053
|
|
POST
|
In SQL, it is easy to get distinct values from a table. When open a map service on browser, how can retrieve distinct values of an attribute using a query statement? Thanks.
... View more
04-25-2013
03:50 AM
|
0
|
2
|
7434
|
|
POST
|
Problem 2) solved by referring the thread at http://forums.arcgis.com/threads/22274-Problem-with-widgets-scrolling-out-of-the-screen. Namely, in WidgetContainer.mxml, var wTop:Number = _top; // original value: wRect.y; I would ignore Problem 1) now.
... View more
04-23-2013
12:39 PM
|
0
|
0
|
557
|
|
POST
|
Robert: tested your code in such a scenario: 1) Open widget with id=0 2) Open widget with id=2; in this widget, private function wTemplate_openHandler(event:Event):void { for each (var widgetId:Number in ViewerContainer.getInstance().widgetManager.getAllLoadedWidgetIds()) { if(widgetId != 2) { var data:Object = { id: widgetId, state: WidgetStates.WIDGET_MINIMIZED }; AppEvent.dispatch(AppEvent.WIDGET_STATE_CHANGED, data); } } } It should minimize the opened widget with id=0. But that widget's WidgetStates is still open rather than minimized. Did I miss something? Thanks. Shaning
... View more
04-23-2013
10:02 AM
|
0
|
0
|
2646
|
|
POST
|
In the main config file, I added preload="minimized" for some of widgets. It brings 2 problems: 1) If the overall widgets with the preload iare limited (e.g. 3), the top one's position is on the banner toolbar. Even though I set top (e.g. = "200" or "450") How can it be lowed slightly below the banner toolbar? 2) f the overall widgets with the preload are more than 4 or more, none minimized widget displays on the UI. Nut in the banner toolbar, those widgets are yellow-color-underlined that mean they are suppose to be on the UI. Besides, if I click any tool ion (on the toolbar), nothing happens. Does this observation implies that the preload-minimized widgets should be limited somehow? Thanks.
... View more
04-23-2013
09:42 AM
|
0
|
1
|
892
|
|
POST
|
Robert: My purpose is when 1 widget is open, make all others as preload="minimized". Can this be achieved? Thanks. Shaning
... View more
04-23-2013
09:26 AM
|
0
|
0
|
2646
|
|
POST
|
Thanks for your response. It does not work for me. Below is what I did. 1) In config.xml, I added id = "0" (or "1", "2") for the top three widgets. 2) In the widget w/ id="2", added the code in the wTemplate_openHandler(event:Event) for each (var widgetId:Number in ViewerContainer.getInstance().widgetManager.getAllLoadedWidgetIds()) { AppEvent.dispatch(AppEvent.TOC_HIDDEN, widgetId); } } I run the debugging. For id=0 or 1, it went through AppEvent.dispatch(AppEvent.TOC_HIDDEN, widgetId). But the opened widgets are not minimized. Could you tell what's wrong in the code? Besides, how to get widgetTitle's value? In config.xml, should it be defined like that for a widget: title="myWidgetTitle"? Thanks.
... View more
04-23-2013
07:29 AM
|
0
|
0
|
2646
|
|
POST
|
When I open Widget A, I want to close or minimized Widget B if Widget B is open. In Widget A, what code I should add? Thanks.
... View more
04-23-2013
05:47 AM
|
0
|
8
|
4474
|
|
POST
|
Unlike regular webserices, which prsent their data in xml, the presentation format of a webserivce is different. If I want to retrieve the attribute values of a mapservice dynamically, how can it be done? Thanks if you can share your experience.
... View more
04-20-2013
08:13 AM
|
0
|
1
|
865
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-18-2023 10:02 AM | |
| 3 | 07-14-2023 12:29 PM | |
| 1 | 04-02-2021 12:16 PM | |
| 1 | 07-24-2017 11:31 AM | |
| 1 | 04-04-2016 03:59 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-01-2025
11:58 AM
|