dmoroney Posted February 6, 2019 Share Posted February 6, 2019 The JSS v7.1.0 User Guide->Data Adapters->Configuring a Parameter Using the Data Adapter Tab in the Dataset and Query Dialog isn't clear about how to add a parameter that uses JSON.I have a working Data Adapter with all of the needed URL parameters hard coded. I want to override the json_data={"operation":"list_operations"} URL parameter in the report design view with a new JSON Value as needed. The json_data Parameter Name would remain unchanged.Attempting to use the JSON as the Default Value Expression throws a compile-time error like "Expression expected instead value = {"operation":"list_operations"}; //$JR_EXPR_ID=0$" Link to comment Share on other sites More sharing options...
narcism Posted February 7, 2019 Share Posted February 7, 2019 If your parameter is of type java.lang.String then you should have a properly escaped String like so:"{"operation":"list_operations"}" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now