One Hop Queries

Top  Previous  Next

A OneHop query is a query that finds all the pages that are connected by a single association (or hop) to the page currently being edited or viewed. To get a list of pages connected by one hop to the current page you must specify the association type and role type that you wish to navigate to find the other pages. This is done using the GetRelatedPagesByOneHop and GetRelatedDataByOneHop methods.

Both of these methods require the following parameters:

1.The page from which to originate the query (typically this.CurrentPage within an ASP.NET environment)
2.The subject identifier of the association type that is to be navigated from the page topic representing the current page.
3.The subject identifier of the target role type that is to be navigated from associations found from the current page topic.