Hexagon Geospatial
MENU

Smart M.App

Looking for answers in regards to M.Apps, M.App Exchange or M.App Studio? Smart M.App Tech Discussion board is where you can search, ask your questions and assist others by sharing your knowledge. Join the conversation, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Occasional Contributor
Posts: 8
Registered: ‎04-01-2016
Accepted Solution

M.App Chest data authentication and filtering

[ Edited ]

Hello!

 

When accessing catalog from custom js every App seems to see all shared Chest items.

 

 

$GP.m_app.platform.catalog.getList(function (catalogItems) {
  console.log(catalogItems); // outputs an object with everything I shared from the Chest
});

When adding resources to M.App Studio how do I make them accessible for certain Apps but not the others?

 

Sergey

Technical Evangelist
Posts: 132
Registered: ‎08-05-2015

Re: M.App Chest data authentication and filtering

Hi Sergey,

 

this is a very good question!

 

In the current design we have access to all the catalog items that are shared with us.

 

Sharing works for whole organizations. By default the organizations are defined using email address domains.

 

As a workaround you could try downloading all the items with the snippet you presented and then filtering it on the client by examining each item's properties.

 

Regards,

Piotr

Highlighted
Occasional Contributor
Posts: 8
Registered: ‎04-01-2016

Re: M.App Chest data authentication and filtering

Thank you for the reply!

 

Somehow I didn't receive notifications when you answered.

 

Filtering items based on folder was my solution. But it looks a bit hardcoded.

 

Thanks.

Sergey.

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.