Attributes.metadata missing in SugarCRM 8.0.0

If you examine Sugar 7.8.2.2 using Chrome's DevTools, you'll see that there are many attributes under App.controller.layout.model.attributes, one of those being metadata.

If you examine Sugar 8.0.0 the same way, there are much less attributes available and metadata is missing.

We have a custom filter button that relies heavily on App.controller.layout.model.attributes.metadata to construct a map of the dashlets on any given page. Specifically, we use App.controller.layout.model.attributes.metadata.components[0].rows.

Is there another way we can reach this data (components[0].rows) without attributes.metadata being reachable anymore? Or is there another way to get a list of the dashlets on a given dashboard?

Parents Reply
  • App.controller.context.attributes.model.attributes.metadata.components[0].rows can be used to access the same information as with App.controller.layout.model.attributes.metadata.components[0].rows, except that the latter seems to have been removed between Sugar versions 7.8.2 and 8.0.0.

    App.controller.context.attributes.model.attributes.metadata.components[0].rows also works to get a list of the rows on a given dashboard on older versions of Sugar such as 7.8.2.

Children
No Data