Adding logic to the Feature Description
I think I know the answer to this question, but I'll ask anyway...
In my constant obsession to reduce the number of clicks a user has to make, I'm interested in using the Feature Description to present all the information a user would typically want to see about a feature. Some things are great, especially the formatting and creating hyperlinks. The problem is that a lot of data sets that I work with have related data (1:1 and 1:N) that I'd like to be able to display here as well. Currently, it looks like I don't have a way to do this through configuration. Is that the case? I realize I could add this functionality to a custom module, but I'd rather not...
Dave
-
Hi Dave,
As of the Silverlight Viewer 1.4, you can access data link information in the Feature Description and Feature Long Description. You can use the syntax {datalinkID.columnName}. So for the Charlotte sample site, on the Zip Codes layer with the ProjectsDataLink configured, In the feature description you could have
Zip Code: {ZIP}, Project: {ProjectsDataLink.Project}
-Victoria
0 -
Hi Victoria,
I don't think {DataLink.columnname} syntax is correct.
I can't seem to get my datalink information displayed in either the feature description or feature long description for a 1:many or 1:1 data link.
I get an invalid token error.
I'm using 3.8/1.5
Has anyone gotten this to work?
0 -
Kenneth,
I just tried it out. Despite throwing the invalid token error, it does work.
@LG: It would be nice if this could be cleaned up.
Dave
0 -
Further testing reveals that 1:1 links work just fine. For 1:N data links, it looks like it brings back just the first record.
0 -
Hi to all
It would be very helpful to get this working.
I guess one possiblity is a table structure where there is a 1:n relationship. It does not appear that adding a table element is possible using the 'Editor' but is able to directly in the Layer / Details Tab
Such as:
<table border="1">
<tbody>
<tr>
<td bgColor="cyan">{RoadName} {RoadTypeLong} {RoadSuffix}</td>
<td>test</td></tr></tbody></table>However the way that is is configured above does not flow through to the viewer correctly with no table border and no background color in the first cell.
Thanks
Ralph Price
0
Please sign in to leave a comment.
Comments
5 comments