Could anyone give me an example of using C# code in automation script to read a cell value from a table in one element? Does virtual element make any difference?
THanks
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 12th July 2023
Hi Miao,
Reading a cell value from a table can be done as follows. It doesn't matter if it's a virtual element or not.
public void Run(Engine engine)
{
var elementName ="my element";
var element = engine.FindElement(elementName);
var primaryKey = "rowkey";
var value = element.GetParameterByPrimaryKey("Column Parameter Name", primaryKey);
...
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 12th July 2023
thank you very much