Calling do.ashx from scripts

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:34

An example on how to call do.ashx from scripting is show below, by means of command Process.Start, that receives as its only parameter, a formatted string with server URL read by DataConnection.Instance.ClientLogin.ServerUrl and object id, read by selection(0).Id.

  <ShellCommand()> _

  Public Sub ShowObjectXml()

    Dim selection As IGenericAttrObjList = Main.GetSelectedObjects()

 

    If selection.Count = 1 Theùnè

      Process.Start(String.Format("{0}/do.ashx?cmd=feed&ids={1}", DataConnection.Instance.ClientLogin.ServerUrl, selection(0).Id)).

    End If

  End Sub