Jump to content
Changes to the Jaspersoft community edition download ×

how to create function in the description field (Json)


asd.backup
Go to solution Solved by narcism,

Recommended Posts

Hi !

I have a question with a problem in Json. In the "Dataset and Query Dialog" there are our fields that will used. Here is the description field and with the XML we can to put function for example SUM, COUNT, ETC...

To do this, we must put the node with the path that we want to go. For example "/node1/nodearray".

In JSon we should use ".node1.nodearray" (is replaced " / " by " . ") but it does not work.

 

please you help

thank you!!

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

XPATH and JSON/JSONQL query languages are not compatible in terms of functions/syntax. Please refer to the documentation for the JSON/JSONQL datasource samples for more details:

JSONQL: http://jasperreports.sourceforge.net/sample.reference/jsonqldatasource/index.html#jsonqldatasource

JSON: http://jasperreports.sourceforge.net/sample.reference/jsondatasource/index.html#jsondatasource

Link to comment
Share on other sites

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...