Skip to main content

ObjectUrlCommands

This application adds custom commands to the Object page. The commands can execute any command-line utility on user's computer, such as a remote desktop tool connecting to other computer represented by the selected object, a remote installation tool, etc.

Installation and setup

  1. Register an application that you wish to execute from Alvao to a URI scheme.

  2. Go to Administration - Settings - Advanced and use the New setting command to create the AM.ObjectUrlDefinitions setting. As a setting value use this sample json:

    {
    "":[
    {
    "name": "Open RDP connection", // command display name
    "url": "rdp://[$NodeCust.Hostname$]", // Browser will navigate to this url when the command is executed.
    "onAllComputerTypes": true, // Enable this command for all computer object types.
    "onObjectTypes": [ // Enable this command for these object types.
    "Computer/laptop",
    "Computer/desktop"
    ],
    "position": 1, // position of the command in command menu: 1=top level left, 2=top level right, 3=extension menu top, 4=extension menu bottom
    "icon": "accessibility_20_regular"
    },
    ]
    }

    In the url item use the protocol name previously registered in Windows. Following the protocol use any static text or variables representing property values of the selected object. Replace the Hostname with database column name of a property, see Administration - Asset Management - Property definitions - Column column value in the table.

    The position and icon items accept the same values as IEntityCommand.Show method parameters.

  3. Download the ObjectUrlCommands.zip file and extract it.

  4. In AdministrationApplications, use the Import command to import the AutogeneratedAssetTree.xml file and enable it with the Enable command.

Using application

Members of the Asset Management administrators and Asset managers user groups can view and execute the defined custom commands on the Object page.