简体   繁体   English

Microsoft USD - 在不同的选项卡中打开不同的实体

[英]Microsoft USD - Open different entities in a different tab

I have a Phonecall hosted control opened inside unified service desk as one of the tab and i have a few grids on that page.我在统一服务台内打开了一个 Phonecall 托管控件作为选项卡之一,并且该页面上有一些网格。

On click of any grid inside my phone call page the respective entity is displayed on the same page.单击我的电话页面内的任何网格时,相应的实体将显示在同一页面上。

Like for example if I click on customer product grid entity then that grid is opened similarly, there are other grids on which the user can click and it will load that entity on the same tab.例如,如果我单击客户产品网格实体,那么该网格也会以类似方式打开,用户可以单击其他网格,它将在同一选项卡上加载该实体。

Now, the issue is as i said earlier that my new entity is being loaded on the same hosted control that is my phone call page.现在,问题正如我之前所说,我的新实体正在加载到与我的电话呼叫页面相同的托管控件上。 I want to prevent this from happening.我想防止这种情况发生。

I want to display a different tab for whatever record is clicked within my PhoneCall Hosted control so this way my Phone Call Page is still there.我想为在我的 PhoneCall Hosted 控件中单击的任何记录显示一个不同的选项卡,这样我的电话呼叫页面仍然存在。

I know i can do this using Windows Navigation Rule but I will have to create different navigation rules for my different entities and then in future if any other grid is added in my phone call page then i will need to add another navigation rule to cater it.我知道我可以使用 Windows 导航规则来做到这一点,但我必须为我的不同实体创建不同的导航规则,然后如果在我的电话页面中添加了任何其他网格,那么我将需要添加另一个导航规则来满足它. This is not the best approach, I want it to be dynamic.这不是最好的方法,我希望它是动态的。 Is there any other way where I can open a different tab if a record is clicked from my phonecall page?如果从我的电话呼叫页面单击记录,还有其他方法可以打开不同的选项卡吗?

Create a new windows navigation rule.创建一个新的 Windows 导航规则。 The "From" field should be your Phone Call Page. “发件人”字段应该是您的电话页面。 Leave the Entity, From search, and URL fields in the "Route Logic" section blank.将“路由逻辑”部分中的实体、来自搜索和 URL 字段留空。 Windows Nav Rules get executed in order, and once they find a match it stops executing. Windows 导航规则按顺序执行,一旦找到匹配项,它就会停止执行。 So make the order low enough so that it gets executed where you want it to.因此,将订单设置得足够低,以便它在您想要的地方执行。

The "Target Tab" and "Show Tab" fields should be a new hosted control that you want the popup to open in. The action is "Route Window". “目标选项卡”和“显示选项卡”字段应该是您希望在其中打开弹出窗口的新托管控件。操作是“路由窗口”。

As far as route type, you are going to have to play with this a bit.至于路线类型,您将不得不稍微尝试一下。 I think opening stuff from a subgrid is Route Type "Popup", but you might need to create 2 very similar rules (one with route type "popup" and the other with route type "in place") to account for all scenarios.我认为从子网格打开的东西是路由类型“弹出”,但你可能需要创建 2 个非常相似的规则(一个路由类型为“弹出”,另一个路由类型为“就地”)来说明所有场景。

See the example screenshot below:请参阅下面的示例屏幕截图:

Windows 导航规则示例的屏幕截图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM