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

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

我一直在使用Chrome的DevTools控制台浏览App,但尚未提出类似的建议。还有其他方法可以到达这样的列表吗?

最佳答案

如果我没记错的话,您可以像这样接收当前仪表板模型的行:

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


也可以写成:

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

关于javascript - 在SugarCRM 8.0.0中获取当前仪表板上的虚线行的列表,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/51292448/

10-14 18:18
查看更多