Hello DM Community,
In Low-code apps, I have a button1 and a text. I also have an automation script that reads a log file. I want to show the contents of that log file in the text. So, I wrote this as the content of the text:
{COMPONENT."Current view"."Button 1"."Last script execution"."Script outputs".}
But it's not doing anything. How should I return values in my script for this to work? Am I binding the text incorrectly?
I tried this in a script, but to no avail:
using Skyline.DataMiner.Automation;
public class Script
{
public void Run(IEngine engine)
{
// Generate some output
string result = "Hello, DataMiner!";
// Add the output to the script
engine.AddScriptOutput("Result", result);
}
}
Hi Satrap,
Using your test script, I configured the text component as follows:
When clicking the button, you should be able to show the output of the script in the text component:
Hope it helps.