Is it possible in an interactive automation script to make a hyperlink or button to a PDF file (online in AWS S3 cloud)?
E.g. when pressing the button a browser is opened and downloads/visualizes the file?
Hi,
I assume you can work with Executable action in an IAS.
Example of a C# script which opens a PDF when executed:
using System;
using System.IO;
using Skyline.DataMiner.Automation;public class Script
{
public static void Run(Engine engine)
{
UIBuilder uib = new UIBuilder();
uib.AppendBlock(new UIBlockDefinition
{
Type = UIBlockType.Executable,
Extra = @"http://dcpdma.skyline.be/Documents/DMA_COMMON_DOCUMENTS/test1/TEST_DOC.pdf",
});
var res = engine.ShowUI(uib);
}
}
This example should lead you to the right direction of what you want.
Note: the file must be public accessible from the system.
Are there any restrictions on what you can put in the Extra property of the “Executable”? For example, can this be an .exe or .js file?
The Extra property is a string and is used multiple ways on different action types.
Restrictions for the availability of the file is made by system (admin).
Example: Shared directory
Matthias, I’m trying this to open up a website in my browser, but nothing is happening.
I’ve filled up Extra = the URL I want to open e.g. “https://skyline.be/
Working like a charm! Thanks!