Converting Hyperlinks

Converting Hyperlinks

SaveToDB products detect cell URLs and allow opening them using the context menu.

You can configure converting URLs to hyperlink objects to open them on click, using the AddHyperlinks event in the xls.handlers table.

You can use this feature also to make an interactive table of contents creating hyperlinks to connected database objects in an Excel or DBEdit workbook.

For example, here is a configuration:

IDTABLE_SCHEMATABLE_NAMECOLUMN_NAMEEVENT_NAMEHANDLER_SCHEMAHANDLER_NAMEHANDLER_TYPEHANDLER_CODE
 dboview_indexobjectAddHyperlinksATTRIBUTE

Here is a sample of a Microsoft SQL Server view used to create the table of contents:

CREATE VIEW [doc].[view_index]
AS

SELECT
    ROW_NUMBER() OVER(ORDER BY s.name, o.name) AS [#]
    , s.name + '.' + o.name AS [object]
FROM
    sys.objects o
    INNER JOIN sys.schemas s ON s.[schema_id] = o.[schema_id]
WHERE
    o.[type] IN ('U', 'V', 'P')
    AND s.name IN ('doc')
    AND NOT o.name LIKE 'xl_%'
    AND NOT o.name LIKE '%_change'