cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

How do I get a list of repositories

gseq
7-Bedrock

How do I get a list of repositories

Hello,

Is there a way to get a list of file repositories? I need to make a front end browser for browsing through different repositories.

Thanks.

ACCEPTED SOLUTION

Accepted Solutions

Adam,

A follow up question, I'm using the GetFileListing to get a listing of all files in a particular repo. I put this on a grid to view it. This works fine if I hard code (or add) the repo in the data section of the mashup.

However, I need the repository to be selected. I use the entity picker for this, but how do I get access to the GetFileListing  service. The FileRepository thing template does not have the GetFileListing  service listed.

View solution in original post

4 REPLIES 4
A_Macierzynski
15-Moonstone
(To:gseq)

Hi Gerard,

First part of question:

You can get list of File Repositories thanks to the ootb services:

var result = ThingTemplates["FileRepository"].GetImplementingThingsWithData();

or

var result = ThingTemplates["FileRepository"].GetImplementingThings();

It will give an InfoTable with a list of Things, which are implementing this ThingTemplate.

Second part of question:
I assume that you want to pick specific repository and get some data from it?

If you are working with mashups you can use EntityPicker widget with define ThingTemplate property. Than you can add your own business logic to get data from it and present it somehow.

Regards,

Adam

Adam,

A follow up question, I'm using the GetFileListing to get a listing of all files in a particular repo. I put this on a grid to view it. This works fine if I hard code (or add) the repo in the data section of the mashup.

However, I need the repository to be selected. I use the entity picker for this, but how do I get access to the GetFileListing  service. The FileRepository thing template does not have the GetFileListing  service listed.

A_Macierzynski
15-Moonstone
(To:gseq)

Hi Gerard,

Your thinking is correct. All you need to know is that you can use dynamic source of your service.

All you need to do is check dynamic checkbox there:

1.PNG

Then you will be able to define on which specific Thing this service should be invoked:

2.PNG

I am sure that this is exactly what you were looking for.

Regards,

Adam

Exactly what I needed. Thank you!

Announcements


Top Tags