Power links to content objects

SAP Enable Now allows users to access help and training content in a number of different ways, including via the Desktop Assistant and/or Web Assistant, as a packaged course via an LMS, or entirely ad hoc via the Trainer (sometimes referred to as the Library). This last option, the Trainer, is either the first thing you use, or the thing you never use, depending on your particular use cases, but it is the most flexible and may actually be the most useful – even if you never send users to this directly. In this blog post, we’ll look at some of the things you can do when providing links to Enable Now content, and the things you can manipulate in these links, to change what the user sees.

This article uses the example of a cloud installation at https://globocorp.enable-now.cloud.sap, and a single Workarea called global that contains all of our content . Substitute your own URL and Workarea ID as required.

A full-blown power link showing several of the possible URL parameters

First, let’s assume that we want to give our users access to all of our published content. In the Producer, go to the highest-level Group for your published content (which could be Root, but will most likely be some sub-Group below this. In the Start Links category of properties, you will find up to four URLS:

  • Local Preview: This points to your ‘local repository’ and is purely for your use. Do not distribute this link to anyone else as it will not work for them.
  • Authoring Preview: This points to the ‘head version’ of the content object. This is the most recent version that has been saved to the server, but this may not be the currently-published version. Only people who have Read access to the Workarea itself will be able to see the content on the end of this URL. This is useful for sending out links to a ‘review copy’ to authorized users prior to publication.
  • Published View: This is the URL of the currently-published version of the content object (even if this is not the ‘head’ version – that is, if changes have been made to the object but not yet published). This is the URL that you would normally distribute to users, but see the huge caveat under Tracking hit counts below.
  • Custom Location: This property allows you to effectively build your own URL. If you publish your Trainer to a local server, you would want to use this URL – but to do so you will first need to enter the first part of the URL (effectively the URL of your server – say, http://globocorp.com/training/) in the Custom Prefix property for the Workarea itself. More on this, below.

Tracking hit counts

SAP Enable Now provides several options for tracking hit counts on your content (and you will absolutely want to do this, as Management will always ask “Are people actually using this stuff?” – especially around license renewal time!). One of these options (specified in Tools > Settings > Playback Settings – trainer – Global > Tracking (General) > Tracking Back End) is Manager. This option means that hit counts will be captured in the Manager component of SAP Enable Now (assuming you have created assignments), and can be reported on via the Manager-provided reports. However, the problem with this is that (as of a couple of releases ago), hits are only counted if the contacts are accessed via a ‘Manager-compatible’ URL – and this is not the Published View URL noted above). To get the ‘Manager-compatible’ URL, you need to:

  1. Go into Manager.
  2. Use the selection drop-down in the upper-right to filter the display to show only components with a Tag of Published.
  3. Navigate to the Group or content object for which you want to obtain the URL.
  4. Copy the URL shown in the object’s Start Link property (there is only one ‘Start Link’ in Manager).

The ‘Manager-compatible’ URL will be in the format https://globocorp.enable-now.cloud.sap/wa/global/~tag/published/index.html?library=library&show=group!GR_XXXXXX (the key part is the /~tag/published/). The good news is that you don’t necessarily need to go into Manager to get this URL every time. Instead, take all of the URL up to (and including) the “/” before index.html, and paste this into the Custom Prefix property for your Workarea. Then, the ‘Manager-compatible’ URL will be available in the Custom Location property for each content object!

Linking to individual objects

One of the great things about the SAP Enable Now Trainer is that you can link to any individual element at any level of your content structure – so if you want to provide a link to a specific section within your overall Trainer, you can just take the start link for the Group object for that section. When a user clicks on this link, the Group will be opened in the browser effectively as a Trainer that contains only that Group (and its contents), as if everything above it doesn’t exist!

You can also link to a specific content object (a simulation, Book, or Book Page) and have that opened directly, just by taking the Start Link for that particular object. For example, a link containing show=book!BO_XXXXXX will open the specified Book in the Book Reader (not the Trainer), and a link containing show=project!PR_XXXXXX will open the specified simulation in the Trainer, showing its Description, Short Description, and play buttons, just as if this was the only thing in the Trainer.

Of course, if you link to a single Simulation the navigation tree contains only a single element (the Simulation) so there is little point in showing it. Handily, SAP Enable Now provides the ability to stop the navigation tree from being displayed. To do this, add the parameter lib_tree=false to the link URL (so your URL becomes, for example, show=project!PR_XXXXXX&lib_tree=false). Note that his is only a default initial setting, and the user can display the navigation tree by clicking on the Show/Hide button on the far left of the screen.

Things get even more useful for simulations, in that you can link directly to a specific play mode of a simulation. For example, say you want to show a specific simulation in Demo mode, without having to go through the Trainer and click the Demo button. Just expand the Simulation object in Producer to show the individual play mode deliverables, select the Demo mode entity, and then take the Start Link from this. The URL for this will indicate show=project!PR_XXXXXX:demo. This is extremely useful if you want to launch the simulation from (for example) a Book Page or a PowerPoint slide as part of self-paced learning.

Two-Level Links

Going back to the overall Trainer, there’s another few things you can do with links. Above, we looked at how to obtain a link for a specific Group, and open this as if this Group (and its contents) was the only thing in the Trainer. But what if you want to direct a user to a specific Group, but still want to allow them to see everything else in your content structure (i.e. things above this Group)? Handily, SAP Enable Now provides a way of opening one Group, and positioning the user on another Sub-group within this. This is done by using a link containing the following structure: show=group!GR_XXXXXX#group!GR_YYYYYY. Here, Group GR_XXXXXX is opened in the Trainer, and group GR_YYYYYY is selected as the ‘current’ object (with its details shown on the right). Note that GR_YYYYYY does not have to be a direct child of GR_XXXXXX – it just has to appear somewhere under GR_XXXXXX, and the navigation hierarchy will be expanded all the way down to – and including – GR_YYYYYY.

A similar construct is available for Books. Say you want to send a user a link to a specific Book for a course, but you want to draw their attention to a specific Book Page within that Book. To do this, use a URL containing show=book!BO_XXXXXX#slide!SL_YYYYYY. Here, Book BO_XXXXXX will be opened in the Book Reader, and Book Page SL_XXXXXX will be displayed on the screen.

You can even mix things up. A link of show=group!GR_XXXXXX# book!BO_XXXXXX will open the Library for Group GR_XXXXXX in the Trainer, and then open Book BO_XXXXXX in the Book Reader on top of this. When the user closes the Book (assuming they click on the SAP Enable Now close button and not the browser/tab close button) they are returned to the Trainer, where the Group is displayed and the Book is selected. (You may want to test this, as I have seen it work differently in different implementations – sometimes it seems to position you on the Book without actually opening it.)

Using Filters

You may have noticed that the default links include the parameter library=library.txt, and wondered what that’s doing? In and of itself, this parameter (with this specific value) is doing nothing (remove it and everything will still work the same). However, what it represents is another incredibly useful feature – the ability to pre-select a filter in a link.

You’re probably aware that you can create filters in your Workarea (if not, we’ll cover that in a separate article). When you create a filter, you have the option to make this filter available to users in the Trainer (by selecting the Use filter in unfiltered/prefiltered library options when you cxreate the filter). What you may not know is that you can also specify this filter in your link, so that it is automatically applied when the user opens the link. This is done using the library parameter. Just change this parameter to specify library=libraryFLT_XXXXXX.txt, where FLT_XXXXXX is the UID of the filter itself. This UID is a little trickier to obtain, in that it is not directly visible anywhere in the Filter properties. But if you go to Resources > Filters in Producer, and go to the folder for the filter (right-click on the filter and select Open folder from the context menu), the UID is the name of the parent folder for the filter’s entity.xml file.

Searches

Let’s look at one last URL option that is incredibly useful. This is the ability to automatically perform a search against the Trainer (this is something I repeatedly asked Oracle to provide in UPK but they never did – and SAP had it all along, hidden deep in its base functionality!). Any user can search content in the Trainer, by entering a search string into the Search box. You can do a similar thing in a link by adding the lib_searchstring parameter to the link. So, for example, if you wanted to search on the text “analytics”, you would use a link containing something like index.html?library=library&show=group!GR_XXXXXX&lib_searchstring=analytics. But why would you want to do this? Maybe you want to show users how to locate specific information, and show them by example. Or maybe you have grouped related content objects together by using a hashtag in the Keywords property, and want to provide users with a link to all of this related content. Just bear in mind that the Search function will only search for text in content objects’ Name, Short Description, Description, and Keyword properties, and in the content of Book Pages; it will not search the content of simulations.

So, that’s a quick look at some of the ways you can provide links to content housed in your Trainer. Most of the time you’ll probably just want to provide embedded links to specific simulations in a given mode – and will probably get these links from the Start Link properties or by using the default Insert Link functions. Just don’t forget that SAP Enable Now provides a lot of other interesting possibilities, if you’re willing to do a little URL reconstruction.