在SugarCRM 8.0.0中获取当前仪表板上Dashlet的行列表



在Sugar 7.8.2中,我们能够从App.controller.layout.model.attributes.metadata.components[0].rows获取当前仪表板上显示的(Dashlet的(行列表。

在Sugar 8.0.0中,无法再从App.controller.layout.model.attributes访问metadata

我一直在使用Chrome的DevTools控制台浏览App,但还没有找到类似的东西。有没有其他方法可以获得这样的列表?

如果我没有弄错,你可以收到当前Dashboard模型的行,如下所示:

App.controller.context.get("model").get("metadata").components[0].rows

也可以写成:

App.controller.context.attributes.model.attributes.metadata.components[0].rows

最新更新