You may wish to display an associated view in a separate USD tab. Such as associated cases for a contact or opportunities for an account etc.. This can be done by having a navigation toolbar to trigger the associated view.

You will probably also want to be able to click on a row in the associated view and open the details for that item. Such as viewing the details of a case from the associated case view.

The involved steps are;

  1. Create a hosted control for the associated view
  2. Create the toolbar button
  3. Create an action call to show associated view
  4. Create a windows navigation rule to open items from associated view

I am making some assumptions here! I assume you’ve already created a USD session and are therefore ready to add an associated view into it. If you aren’t sure how to create a USD session refer to my earlier post about sessions. I’m also assuming you understand the concept of creating a toolbar. Again if unsure refer to my other posts on toolbars.

Step One – Create Hosted Control for the associated view.

In my example I’m going to stick with my “fishing” theme. (Sorry!) Meaning in this example I will be viewing a fishing location and want to see an associated view of all the lakes at this location. You can obviously display phone calls associated with an account or whatever works for you!

First step will be to navigate to unified service desk in settings, then select hosted controls and add a new control. My example is below.

Things to notice are that the “Component Type” is “CRM Page” and that the “Application is Global” option is not set. (Meaning the tab will show in a session.) Also that the “Display Group” is “MainPanel”.

AssociatedViews 1

Step Two – Create toolbar button.

As I mentioned above, I’m going to assume you know how to create a toolbar. This step is simply about adding an additional button to the toolbar that will trigger the display of the associated view.

Tip: This is just one method of launching the action to display the associated view. Another approach might be to have an “answer” in an agent script that views associated cases etc.

AssociatedViews 2

In my example  needed a button called “Lakes” that will show in the toolbar for fishing locations. You might want a button called “Cases” that will show on accounts.

Some things to note;

In the screen shot below you can see I’d already added the action “Open Associated Lakes”, creating and adding this action is your next step.

Step Three – Create an action call to show associated view

Before actually creating the action you need to know the relationship name between the two entities and the type number for the entity.

 AssociatedViews 3First off: to get the type number. Open any one of the source entities. In this case the fishing location. (You might be looking at accounts or contacts.) Then use the expand icon to open up the window.

AssociatedViews 4

Now the window is open the type number is the “etc” value in the url. See highlighted 10007 number in screen shot opposite.

Once you’ve got the type number you’ll need the relationship name. To get this go to the customization options under settings. You get the relationship name by looking at the relationships for the source entity. So in my example I’d be looking for the relationship between fishing location and lakes. You might need the name between accounts and cases etc.

Now you have the information needed to create an action like the one below. (And “of course” associate with the toolbar button as shown in the screen shot for the previous step.)

AssociatedViews 5

Notice that the hosted control is associated lakes, the one you’ll have created in step one. And that the action is “AssociatedView”.

The data portion is important, so lets look at each line in turn.

This step might sound complicated but once you’ve got one example working you’ll see that it is pretty straight forward.
Step Four – Create a windows navigation rule to open items from associated view
Finally you’ll need to create a window navigation rule to govern how items selected from the new associated view will display.

This step is optional but without it clicking on a lake would open it in a pop-up outside of USD. As I want a new tab to open then this additional step is significant.

To create the navigation rule, pen the window navigation rule area of unified service desk settings and add a new rule.

AssociatedViews 6

Things to note include;

11 responses to “USD – Show associated views.”

  1. […] the detail of how the data portion working in associated views might be possible. In this post I describe how to find the correct values for tabset and […]

    Like

  2. […] the detail of how the data portion working in associated views might be possible. In this post I describe how to find the correct values for tabset and […]

    Like

  3. Could you please share screen shot of how USD looks like after finish this topic. I have created a button in the tool bar when i click the button, associated lakes not display because i don’t know how fishing.id is passed

    Like

    1. I have written a second post about associated views which might provide a better example. Try this one …

      USD – Show Associated Cases

      Like

  4. […] I have previously completed a post on this topic. You can view is here. […]

    Like

  5. […] I have previously completed a post on this topic. You can view is here. […]

    Like

  6. Is it possible to show an associated view without creating a session for it?

    Like

    1. I haven’t actually done this but I see no reason why you couldn’t display an associated view in a global tab. Although typically you’d do something like show an asscoaited view of cases for the currently opened account. (Which would normally already be in a session.) Because of this using sessions isn’t mandatory but would commonly be the approach you’d follow.

      Do you have a specific requirement you are struggling to acheive?

      Like

Leave a comment

Trending

Website Powered by WordPress.com.