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

jamie.eyre

Members
  • Posts

    3
  • Joined

  • Last visited

jamie.eyre's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Wondering if there is an interface to the jasperserver ehich allows you to stop/cancel a running report.
  2. 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
  3. 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
×
×
  • Create New...