jamie.eyre Posted January 10, 2008 Share Posted January 10, 2008 Hi, I am using the .NET client for jasper server, and i can't figure out how to get a list of parameters for a specific report. When I run the following code, the parameter variable in the rDesc(ResourceDescriptor) is always empty: private void getReports(Repository repository, ResourceDescriptor desc, ArrayList reports) { ListRequest request = new ListRequest(desc); Response response = repository.list (request); OperationResult result = response.toOperationResult(); if (result.resourceDescriptors != null) { foreach (ResourceDescriptor rDesc in result.resourceDescriptors ) { if (rDesc.wsType.Equals(Constants.TYPE_FOLDER)) { getReports(repository, rDesc, reports); } else if ( rDesc.wsType.Equals(Constants.TYPE_REPORTUNIT)) { reports.Add(rDesc.name); reports.Add(rDesc.uriString); reports.Add( rDesc.parameters); // this is always null } else if (rDesc.wsType.Equals(Constants.TYPE_INPUT_CONTROL)) { String name = rDesc.name; Parameter[] param = rDesc.parameters; } } } } Do you know how I can get a list of parameters for each report? I want to prompt the user in my .NET application with the parameters. Thanks in Advance,Jamie 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