PortalDataViewer, HTMLB Table View, and TablesWhen to Use the PortalDataViewer and the HTMLB Table View | Building Blocks and Content Distribution | Paging in Tables | Sorting Columns | Links Inside a Table | Displaying Status Information | Implementing Tables This chapter deals essentially with the PortalDataViewer (the former PortalALV) and the ways of using it in the best possible way. However, the PortalDataViewer is only one specific instance of a table. Consequently, many of the issues discussed here are also valid for non-ALV based tables. With respect to presentation, the PortalDataViewer is based on the HTMLB table view. The table view can also be used in iViews. However, it does not offer all the services provided by the PortalDataViewer.
When to Use the PortalDataViewer and the HTMLB Table ViewThe PortalDataViewerThe PortalDataViewer (PDV) is a tool, which can be used to present tabular data in in the SAP Enterprise Portal 5.0. Main focus has been set to the presentation of data coming from SAP backend systems. The PDV offers generic functionality for user interaction and reduces programming efforts for iViews significantly. It is even possible to create iViews without any programming - just by providing the appropriate properties in a profile (see Implementing the PortalDataViewer). Do not use the PortalDataViewer if
Although the PortalDataViewer can be used for many purposes and it is definitely convenient to "include PortalDataViewer" and get a complete iView for free, there is often a better design solution available. The HTMLB Table ViewThe HTMLB table view can also be used for displaying tabular data. It has the same look as the PDV (apart from the icon on the top right) but does not offer the respective services. It is useful for simpler applications that do not need PDV's services. See the SAP Portals HTMLB Guidelines for details on the table view.
Building Blocks and Content DistributionBoth, the PortalDataViewer (figure 1) and the HTMLB table view (figure 2) consist of four different areas in which information can be displayed (the HTMLB table view does not have the icon at the right edge of the title bar):
Figure 1: A PortalDataViewer
Figure 2: An HTMLB table view Each of these areas serves a different purpose. While the usage of column headers and the data area is quite clear, it requires a bit more explanation to specify which kind of information should be displayed in the table header or in the status line. The title area can be used for
The title should not be used
If there is no reasonable title for a table, omit the title element. The status line of the table is used for the paging buttons plus a display of the current page or data set (this has be defined in detail).
Paging in TablesThe PortalDataViewer as well as the HTMLB table view provide currently only one approach for scrolling through lists of data. The current solution "pages" through a list, i.e. a new "page" of data is displayed by clicking one of the buttons in the status-line of a table (see figure 3).
Figure 3: Table with paging buttons
Sorting, Calculating Totals, and even moreThe user can personalize the table layout by:
The starting point is the "standard" layout defined by the application. However, if this possibility is not desired (from the application point of view), it can be switched off (even parts of the settings, e.g. only hiding of columns might be suppressed). These personalization settings are be persisted in the PCD (can be disabled).
Links Inside a TableIf links are used inside a table to jump to different locations (e.g. a related IAC), make sure to provide only one jump target. It may be technically possible to provide a different link with a different target for every column, but iViews should be kept as simple and concise as possible. If you provide a link inside a table, make sure there is only one column that contains this link. Links with the same location in different columns should be avoided in the same way as links with multiple locations. The link should always be represented as a text link. Having a link location on an icon always results in a large probability of not finding the links at all. Icons inside the table are status icons and should not be used for any kind of interaction.
Displaying Status InformationWhen using status icons in a table, make sure the status is always displayed in the first column (see Figure 4). This is especially important if the status of an element is the primary information in a table (e.g. critical process steps) and the user should be able to quickly perceive the different "groups" of statuses. An exception to this rule are items, which may contain more than one status, and the status overview merely is an additional information and not the primary "sort" criterion. Make sure the title for a status contains a title that describes the meaning of the status icons (e.g. "Read" or "Project Status"). Chapter Icons and Status Information provides detailed information on this topic. You can find a list of status icons in the SAP Reference Lists in the SAP Design Guild. Figure 4: A table displaying status information in the first column
Implementing TablesImplementing the PortalDataViewerThe main part of the PDV is implemented as a portal service. This service itself uses other services of the portal like HTMLB or JCO. The Portal Content Directory (PCD) serves as the persistence layer for the PDV properties, especially for the PDV personalization data. The PDV service has two kinds of "clients": specific application
iViews and the generic PDV iView. When should I use Portal Data Viewer?
If your answer to these questions is "yes", your iView may be a candidate for a Portal Data Viewer (PDV) application. Especially, if you are dealing with table content coming from SAP systems, the PDV maybe the tool of your choice. Implementing the HTMLB Table ViewFor details on implementing tables using the HTMLB table view see the SAP Portals HTMLB Guidelines.
Source: SAP iView Guidelines |