Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Swag Shop
  • Downloads
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Not able to use Interactive textbox to take dynamic value and use it in a script

67 views22 hours agoGQI Input Arguments GQI queries Interactive textbox InteractiveAutomationScriptComponent LCA
2
Baranisudha Murugesan [DevOps Member]950 23 hours ago 0 Comments

Here is my usecase:

i have a interactive automation script UI component in LCA that has interactive textbox in it. Below is the configuration i added for textbox

public class InteractiveTextBox
{
public bool Close = false;
public UIBuilder uib = new UIBuilder();
public UIBlockDefinition textBlockDefinition = new UIBlockDefinition();
public InteractiveTextBox(IEngine engine) : base()
{
engine.GenerateInformation("UIBlockDefinition started");
textBlockDefinition.Type = UIBlockType.TextBox;
textBlockDefinition.Text = "5";
textBlockDefinition.InitialValue = "5";
textBlockDefinition.Row = 0;
textBlockDefinition.Column = 1;
textBlockDefinition.TooltipText = "Row count";
textBlockDefinition.Width = 80;
textBlockDefinition.MaxWidth = 80;
textBlockDefinition.MinWidth = 80;
textBlockDefinition.Height = 1;
textBlockDefinition.MinHeight = 1;
textBlockDefinition.MaxHeight = 1;
textBlockDefinition.Margin = "1;1;1;1"; // Left, Top, Right, Bottom
textBlockDefinition.PlaceholderText = "Rows";
textBlockDefinition.WantsOnChange = true;
textBlockDefinition.ValidationState = UIValidationState.Valid;
uib.AppendBlock(textBlockDefinition);
}
}

In LCA, when i edit the textbox, that value has to be passed to a GQI script and then it has to provide me results to a table. I have added OnFinish event action for interactive script to refresh the table.

My issue here is, i couldn't locate the textbox to link the value to my adhoc query (GQI input) in LCA.

i want to be able to get the value of interactive textbox and pass it to the GQI

Wout Mahieu [SLC] [DevOps Catalyst] Answered question 22 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Wout Mahieu [SLC] [DevOps Catalyst]8.88K Posted 22 hours ago 2 Comments

Hi,

Did you add the final value of the textbox input as a script output? This can be done using the _engine.AddScriptOutput method. When the script finishes, the output value(s) becomes available to the app.

To link the script output to the query, you will have to type the name you gave the output in the 'Property' field.

Wout Mahieu [SLC] [DevOps Catalyst] Posted new comment 7 hours ago
Baranisudha Murugesan [DevOps Member] commented 22 hours ago

is it like this i have to add – engine.AddScriptOutput("RowCount", textBlockDefinition.Text);

should i add it in the textbox configuration method itself?

should i add onchange event to trigger the query? looks like the table refresh is also not happening eventhough i have added OnFinish action to the interactive script component

Wout Mahieu [SLC] [DevOps Catalyst] commented 7 hours ago

The snippet to add the output looks correct. It should happen at the end of the script, before it finishes. It is not possible to access script outputs during execution of a script in a LCA. Adding a re-fetch to the query should not be necessary, the query will automatically fetch new data when a linked field changes.

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin