-
Notifications
You must be signed in to change notification settings - Fork 29
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
Relateion table does not work for dynamic layers #30
Comments
Nope, its not a bug, its just a limitation of the widget. It uses Feature layer "clicks" to do the query. I do have an example of it working with dynamic layers though, but it works a little differently. It uses the identify popup to display the table instead. Would that meet your needs? |
Thanks. In fact it is exactly what i want but i cannot do it! |
Does the identify show up at all? Or are there error messages? |
Yes identify shows regular identify values and no errors just some svg.js errors which are not related to this. |
Off the top of my head, it sounds llike your layer id might not match up with your identify layer id. In viewer.js (or main cmv config file), what is:
In identify.js config file, what is:
For example, I have a dynamic layer: {
id: 'assets',
type: 'dynamic',
url: '/arcgis/rest/services/internal/assets/MapServer',
title: 'Assets and Utilities',
options: {
id: 'assets'
},
layerControlLayerInfos: {
expanded: true
}
} and my identifies info looks like this: identifies: {
assets: {
25: {
title: 'Street Segmenet {cid}',
content: factory([{
title: 'History',
objectIdField: 'OBJECTID',
relationshipId: 4,
url: '/arcgis/rest/services/internal/assets/MapServer/25',
columns: [{
field: 'Operation'
}, {
field: 'op_year',
label: 'Year'
}]
}])
},
}
} |
Similarly, for feature layers, the only thing you'd need to change is this in viewer.js: {
id: 'assets',
type: 'feature',
url: '/arcgis/rest/services/internal/assets/MapServer/25',
title: 'Assets and Utilities',
options: {
outFields: '*',
id: 'assets'
},
layerControlLayerInfos: {
expanded: true
}
}, |
Yes you are right. When i checked and corrected sublayer id's and relation id's i could see the related records in identify for dynamic layer. Thanks.
|
There's a fix for number 1, it is a bug in the identify widget: cmv/cmv-app#706 For number 2, it might be helpful for you to look at the network logs when you do the identify. Then you can see what query is being passed to the server, and what it is returning as a response. |
thanks. |
The problem is identified, but has not been included in cmv-app yet. |
This fix is now in the cmv develop branch. You should be able to download the latest version and have this issue resolved. |
Hi
Thanks for the amazing widgets espcially the relation table. It is fantastic but i couldn't use it with my dynamic layers. is it a bug or i am doing something wrong?
The text was updated successfully, but these errors were encountered: