Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes Table #1

Closed
danielkmog opened this issue Mar 6, 2015 · 1 comment
Closed

Attributes Table #1

danielkmog opened this issue Mar 6, 2015 · 1 comment

Comments

@danielkmog
Copy link

When specifying multiple query tables (tabs) in the viewer.js two "Searching... please wait messages" appear when the CMV is launched. One of the searching messages will disappear right away, but the second stays until the timeout is reached. I thought about flagging it with a boolean or counter to keep it showing up twice, but I wanted to make sure this isn't operator error. Thank you.

attributesTable: {
                include: true,
                id: 'attributesContainer',
                type: 'domNode',
                srcNodeRef: 'attributesContainer',
                path: 'gis/dijit/AttributesTable',
                options: {
                    map: true,
                    mapClickMode: true,

                    // use a tab container for multiple tables or
                    // show only a single table
                    useTabs: true,

                    // used to open the sidebar after a query has completed
                    sidebarID: 'sidebarBottom',

                    // optional tables to load when the widget is first instantiated
                    tables: [
                        {
                            title: 'Boil Water Notifications',
                            topicID: 'notificationQuery',
                            queryOptions: {
                                queryParameters: {
                                    url: 'http://<mysvr>/gis/rest/services/Notifications/MapServer/0',
                                    maxAllowableOffset: 100
                                    //where: 'NOTIFICATION_STATUS = ACT'
                                },
                                idProperty: 'ObjectID'
                            }
                        },
                        {
                            title: 'Bagged Fire Hydrants',
                            topicID: 'bhQuery',
                            queryOptions: {
                                queryParameters: {
                                    url: 'http://<mysvr>/gis/rest/services/Bagged_Hydrants/MapServer/0',
                                    maxAllowableOffset: 100
                                    //where: 'NOTIFICATION_STATUS = ACT'
                                },
                                idProperty: 'ObjectID'
                            }
                        }                     
                        ] //end tables
                } //end of options
            }
@tmcgee tmcgee closed this as completed in 85e58a3 Mar 6, 2015
@tmcgee
Copy link
Owner

tmcgee commented Mar 6, 2015

@danielkmog thanks for reporting this. I had seen this in testing but didn't get back to it. I just pushed a commit to address this. Get the latest code from the repo and report back if it works for you or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants