tmcgee / cmv-widgets

Widgets for CMV, the Configurable Map Viewer.
https://cmv.io/
MIT License
38 stars 48 forks source link

Search retrieving related fields #167

Closed DJA30 closed 6 years ago

DJA30 commented 6 years ago

@tmcgee is there an example of the the Search widgit pulling related fields into another tab?
Thanks,

tmcgee commented 6 years ago

There is this example in this repo.

DJA30 commented 6 years ago

Awesome @tmcgee , this is exactly what I needed. Thanks

DJA30 commented 6 years ago

@tmcgee - I receive a error message "SCRIPT438: Object doesn't support property or method 'publish'" when the the related tables section tries to run. Am i missing a configuration somewhere for the topic/dojo? error example

tmcgee commented 6 years ago

@DJA30 That suggests that your modules and variables defined at the top of the file are mismatched.

DJA30 commented 6 years ago

@tmcgee - Thanks, that fixed it. I do have one more question though. Does this feature of the search tool work with only spatial layers in the viewer or does it work with non-spatial tables that have a relationship class with a spatial layer? And sorry for the constant questions, I'm brand new to Javascript and dojo and am learning as I go.

tmcgee commented 6 years ago

@DJA30 This works with both related feature in feature classes and related records in tables.

DJA30 commented 6 years ago

@tmcgee Thanks, that narrows it down to me not having my fields correct then.