Leveraging JavaScript for advanced customisation of Map Points

Version 4

    Verified Product Versions

    AppSense DataNow 3.6AppSense DataNow 3.5AppSense DataNow 3.0AppSense DataNow 2.0AppSense DataNow 4.0AppSense DataNow 4.1AppSense DataNow 4.2AppSense File Director 4.3


    The File Director Appliance allows for advanced customisation of map points by leveraging JavaScript.

    If the path contains the %UserName% or %EmployeeID% strings, the mapping is routed through a JavaScript parser for each token separated by UNC slashes.


    JavaScript prototype methods for String class can be used embedded in the map point configuration, for a list of these methods look here:


    EXAMPLE: The following string will split the path to 3 different locations based on the username where each target is a share on a different FS under the same DFS namespace :


    \\domain.local\DFSpath\"%UserName%".match("^[a-hA-H].*") ? ”Target1" : ("%UserName%".match("^[i-mI-M].*") ? ”Target2" : ”Target3")