Hi Dojo,
I'm working on a script for BT probes to find inconsistencies in the tables.
I'm getting the elements by engine.FindElementsByProtocol and afterwards I'm doing an foreach on this array.
string[] tableKeysEthernetAvailableStreams = e.GetTableDisplayKeys(4000);
Here I have now all Display Keys from my table. Now I want to check if this Key is "Joined".
The ID of this parameter is 4015, I tried:
e.GetParameterByPrimaryKey(4015, tableName)
e.GetParameterDisplayByPrimaryKey(4015, tableName)
Also tried 14 ( <ColumnOption idx="14" pid="4015" type="retrieved" options="" />)
How can I get the correct cell in the script?
Hi Stefan,
Could you clarify one thing for me, is the variable tableName the actual table name or does it represent each row's key?
The GetParameterByPrimaryKey expects a primary key or a display key as the argument so you will need to iterate over the tableKeysEthernetAvailableStreams string array to get the info you are after.
That looks correct, I just wanted to confirm due to the variable name
But it looks strange that it does not work.
Could you check with the method GetParameter (https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.Element.GetParameter.html#Skyline_DataMiner_Automation_Element_GetParameter_System_Int32_System_String_) or GetParameterDisplay (https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.Element.GetParameterDisplay.html#Skyline_DataMiner_Automation_Element_GetParameterDisplay_System_Int32_System_String_) if you haven’t already?
Alternatively, could you test with using GetTablePrimaryKeys (https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.Element.GetTablePrimaryKeys.html) instead of GetTableDisplayKeys (https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.Element.GetTableDisplayKeys.html)
GetParameter is working, many thanks! Script is working!
Hi João,
this is how I use tableName:
foreach (string tableName in tableKeysEthernetAvailableStreams)