MongoDB - dot-notated fields not working

0

Consider the following data:

{ "test": "value1", "attr": { "gender": "male" }, "blarg": 1234 }

When I change my simple report from using test to using attr.gender, it fails because of the dot, or how the array element gets accessed.

Error filling print... Key is null in pie dataset.
Setting up the file resolver...
net.sf.jasperreports.engine.JRRuntimeException: Key is null in pie dataset.

It works with "$F{test}" (string) but it does not work with "$F{attr.gender}" (string)!

d.wendler's picture
Joined: Jun 21 2013 - 7:23am
Last seen: 8 years 3 months ago

0 Answers:

No answers yet
Feedback
randomness