Click or drag to resize

NavHelper Class

A helper class for working with Navigator and NavTarget objects.
Inheritance Hierarchy
SystemObject
  NetQuarryNavHelper

Namespace:  NetQuarry
Assembly:  EAP.WebMappers (in EAP.WebMappers.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static class NavHelper

The NavHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAppendCount(IAppContext, NavTarget, String, String, String)
Append a record count to the provided NavTarget caption provided in captionText. This method is normally called only when the AppendCount attribute is set on the NavTarget. The appended count may include HTML formatting.

Note that if an error occurs while retrieving the record count that error is suppressed and the count indicator added to the caption will be rendered to indicate that the count could not be obtained.

When adding the count to the caption, various other NavTarget settings affect how the count is presented including:

Public methodStatic memberAppendCount(IAppContext, NavTarget, String, String, String, String, String)
Append a record count to the provided NavTarget caption provided in captionText. This method is normally called only when the AppendCount attribute is set on the NavTarget. The appended count may include HTML formatting.

Note that if an error occurs while retrieving the record count that error is suppressed and the count indicator added to the caption will be rendered to indicate that the count could not be obtained.

When adding the count to the caption, various other NavTarget settings affect how the count is presented including:

Public methodStatic memberGetLinkParams
Retrieve the link parameters for a NavTarget appropriate for the current context and construct a link. The current context may include a current page's PageInfo and/or the parent mapper (for example, the mapper in the main pane of a console).
Public methodStatic memberReportLink
Construct a report link from a NavTarget whose TargetType is "report".

If the report is unavailable then a null link will be returned. If unavailable and the report is unknown, a problem description (appropriate for a developer) will be returned in problemText. Note that if the report is unavailable, but known (e.g. permissioned out) then no problemText will be returned and it is expected that the caller will not render the link.

Top
See Also