简体   繁体   English

在统一服务台中选择关闭会话

[英]Close session of choice in unified service desk

We have multiple sessions ie four sessions opened in USD. 我们有多个会议,即以美元开设的四个会议。 I need to close without clicking on 'X' on the session. 我需要关闭而不在会话上单击“ X”。 Can it be possible to have 4 buttons on the toolbar and by clicking the third button will close the third session in USD? 工具栏上是否可以有4个按钮,单击第三个按钮将关闭美元的第三次交易?

This should be possible provided that Microsoft's documentation is valid. 只要Microsoft的文档有效,这应该是可能的。 Even if it is possible, it would be crude, limited, and difficult to implement/maintain without writing custom code. 即使有可能,如果不编写自定义代码,也将是粗糙,有限且难以实现/维护的。 I highly recommend a "close current session" button that simply closes the foreground session. 我强烈建议您使用“关闭当前会话”按钮来简单地关闭前台会话。 Through configuration however, here's how you could theoretically do what you're asking. 但是,通过配置,这是您理论上可以执行的操作的方式。

Create a Close button for each session, considering your max number of sessions, let's say 4. On start of a new session, a series of actions fires in an attempt to locate a Close button upon which to attach the session close command, based on logic like this: 考虑到您的最大会话数,为每个会话创建一个关闭按钮,比方说4。在开始新会话时,会触发一系列操作,以尝试根据以下条件找到要附加会话关闭命令的“关闭”按钮。逻辑如下:

Does Global Context variable Session1ID have data?
If not, place the new session ID in Session1ID.

Does Global Context variable Session2ID have data?  
Is the new session ID already stored in Session1ID?  
If not, place the new session ID in Session2ID.

Does Global Context variable Session3ID have data?
Is the new session ID already stored in Session1ID or Session2ID?
If not, place the new session ID in Session3ID.

Does Global Context variable Session4ID have data?
Is the new session ID already stored in Session1ID, Session2ID, or Session3ID?
If not, place the new session ID in Session4ID.

The buttons themselves could be made visible or enabled based on whether their Session ID is in Global Context. 根据按钮的会话ID是否在全局上下文中,可以使按钮本身可见或启用。

On click of any of these buttons, let's say #3, the following would occur: 假设单击这些按钮中的任何一个,例如#3,将发生以下情况:

Close Session command using Session3ID
Nullify value of Session3ID, making it available for the next attempt to attach a session ID.

I foresee a few problems with this. 我预见到一些问题。 You may encounter issues reading from and writing to Global Context variables while inside of a session. 在会话内部,您可能会遇到读取和写入全局上下文变量的问题。 Furthermore, you may encounter issues with closing background sessions by their ID. 此外,关闭后台会话的ID可能会遇到问题。

Further still, closing sessions out-of-sequence would cause new sessions to attach to buttons in a disorderly-looking fashion, creating a bad user experience. 更进一步,关闭会话不按顺序进行将导致新会话以外观混乱的方式附加到按钮上,从而产生不良的用户体验。 Let's say you need to start six sessions (A, B, C, D, E, and F). 假设您需要开始六个会话(A,B,C,D,E和F)。 You have to close the two sessions in the middle (B and C) before starting the last two due to your limit of 4. With A on button 1 and D on button 4, you start sessions E and F which attach to buttons 2 and 3. Now your four buttons correspond to sessions A, E, F, and D, while the session tabs themselves are in the order that you opened them: A, D, E, F. This would be a bad user experience. 由于限制为4,您必须先关闭中间的两个会话(B和C),然后再开始最后两个会话。由于按钮4的限制,A在按钮1上,D在按钮4上,您将启动连接到按钮2和B的会话E和F。 3.现在,您的四个按钮分别对应于会话A,E,F和D,而会话选项卡本身按照打开它们的顺序:A,D,E,F。这将是糟糕的用户体验。 (I don't believe that you can manipulate the order in which buttons appear using replacement parameters. Button Order is likely to be configuration integers only.) (我不相信您可以使用替换参数来控制按钮显示的顺序。按钮顺序可能仅是配置整数。)

Hopefully, this clarifies the elegance of a simpler solution: Create a "Close Current Session" button that is only enabled or visible while you have a session. 希望这可以阐明一种更简单的解决方案的优雅之处:创建一个“关闭当前会话”按钮,该按钮仅在您进行会话时才启用或可见。

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

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