Jump to content
We've recently updated our Privacy Statement, available here ×

MongoDB - dot-notated fields not working


d.wendler

Recommended Posts

Consider the following data:

{ "test": "value1", "attr": { "gender": "male" }, "blarg": 1234 }[/code]

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.[/code]

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

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...