SAP UI5 路由模式匹配未触发
SAP UI5 Route Pattern matched not triggered
我正在使用主细节设计。在master details中,放置了Icontabfilter,用于分离pending documents和processed documents。通过从待处理记录选项卡或已处理记录选项卡中选择任何一个文档,将显示详细信息视图(对于待处理的批准按钮已启用,对于已处理的批准按钮已禁用)。因此,我们对主页面和详细信息页面都有单独的视图。有可能在待处理和已处理选项卡中都有文档。
问题是当我们在待定和已处理选项卡中具有相同的文档编号时,因为它具有相同的 URL objectPatternMatched 函数未被触发。因此,详细视图显示的数据不正确。
谢谢!
您可以将第二条路由的贪婪 属性 设置为 true,该路由应在您的清单文件中触发事件。
的构造函数
Since 1.27. By default only the first route matching the hash, will fire events. If greedy is turned on for a route, its events will be fired even if another route has already matched.
我正在使用主细节设计。在master details中,放置了Icontabfilter,用于分离pending documents和processed documents。通过从待处理记录选项卡或已处理记录选项卡中选择任何一个文档,将显示详细信息视图(对于待处理的批准按钮已启用,对于已处理的批准按钮已禁用)。因此,我们对主页面和详细信息页面都有单独的视图。有可能在待处理和已处理选项卡中都有文档。
问题是当我们在待定和已处理选项卡中具有相同的文档编号时,因为它具有相同的 URL objectPatternMatched 函数未被触发。因此,详细视图显示的数据不正确。
谢谢!
您可以将第二条路由的贪婪 属性 设置为 true,该路由应在您的清单文件中触发事件。
的构造函数Since 1.27. By default only the first route matching the hash, will fire events. If greedy is turned on for a route, its events will be fired even if another route has already matched.