MGDwgDataSources.getUrlColumn   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

string getUrlColumn() 

Description

Gets the name of the column that contains the URL associated with each map feature.

This enables the user to go to a Web page that is related to a map feature simply by double-clicking that feature. Typically, you store HTTP URLs in this column, but you could also specify commands with other protocols, such as FTP URLs, or even JavaScript commands. Use caution, however, with non-standard protocols such as Javascript, as not all browsers support them.

This method is not affected by the busy state.

Parameters

none

Returns

String - The Name of the URL column.

Error Codes

none

Example

This code is designed to work with the 1stfloorplanEx6.mwf file used by the Filter DWG Layers example:

function getProperties()
{
   // Get the map and selected features
   var map = getMap();
   var mapSel = map.getSelection();
   // Use the single map layer Floor Plan
   var mapLayer = map.getMapLayer("Floor Plan");
   // Get DWG data source object for the layer
   var mapLayerSetup = mapLayer.getLayerSetup();
   var dwgMapLayerDataSource = mapLayerSetup.getDwgDataSources();
   var urlColumn = dwgMapLayerDataSource.getUrlColumn();
}

See Also

setUrlColumn, UrlColumn