We have set up a graph plot which generates a colored legend for each soil unit on our graphs. The legend works when plotting directly from a .gpj and when plotting from a single project from our sql server. When including data from 2 projects on one graph, the plot is fine but the legend is missing. Have other users experienced the same and what did you do? Examples can be provided by mail.
The legend is generated from the following code:
<<Let(Layer Code = _ <<RecordItem(<<GEOLOGY_UNIT_1.ItemKey>>,<<#>>)>>_)>>_<<ListBuildSepTrim(_ ": ",_ <<let(c=<<Lookup(<<GEOLOGY_UNIT_1.Colour_NO>>,<<Get(Layer Code)>>)>>)>><<clr!<<get(c)>>>><<Get(Layer Code)>><<Clr!-1>>)>>
- Martin
Thanks, Phil!
I suspect the problem may be the shift from single project to multiple project. RecordItem, as you have noted, works with the single-project GPJ or SQL Server instance. It's only when you are trying to specify data by RecordItem from multiple projects of either type that it fails.
You may need to specify which project is intended for each iteration as Phil suggested - the benefit of this is that it should work for the single-project instance as well as with multiple projects.
Hi Martin
Seems like a defect in gINT. I suggest making a list using the function SqlList, then Iterate through the list and use GetListItem.
Cheers
Phil
Phil WadeDatgelBentley Channel Partner and Developer PartnerE: phil.wade@datgel.com | T: +61 2 8202 8600 & +65 6631 9780
Get the most out of gINT with Datgel Tools.