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

Access the Child Resources in a folder as a list


ncheruku

Recommended Posts

Hi,

I do have a requirement where I need to get  the whole folder as a list object in which it has the child folders and in turn has reports under each folder which has the following directory structure.I have gone through the webservices guide and it says that we can attach one resource descriptor for one request.For the one resource descriptor can I add the children in this way and extract it..Please do let me know if this is the correct way as I need to get all the folders as well as the reports in the folder at a time through single request.......Can I use the list method for this purpose...

For Example:

 

 FolderA

            FolderAa

                     FolderAx

                             report1

                              report2

                              report3

                     FolderAy

                             report1

                              report2

                              report3

           FolderAb

                    report1

                    report2

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

chinna002
Wrote:

Hi, When I am trying to access the folder using the jServer.getWSClient().list(rd) I do get only the sub folders names listed in the folder but not the reports under those sub folders.Can anybody please help me out...

You need to call list for each subfolder to get the list of resource in it.  There is no recursive list operation in the JasperServer web services.

Regards,

Lucian

Link to comment
Share on other sites

chinna002
Wrote:

Thanks Lucian for the Quick response.So according to you it would be best if I make a list call to each subfolder and after I put them back in list right...Can you please clarify this to me...

Yes, listing each subfolder individually is the only solution.

Regards,

Lucian

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