Hi All,
I am trying to get a parameter in an AS, however the primary key can change, the first half always remains the same, just the last half changes.
Does anyone know a way of retrieving a parameter value by wildcarding the 2nd half of the primary key as the first half is the only bit that always stays the same.
Thanks
Ryan
Hi Ryan,
I don't know if there's a direct method for this.
One possibility would be getting all keys with GetTablePrimaryKeys https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.ScriptDummy.GetTablePrimaryKeys.html and then try to find the substring you are looking for. e.g. Loop with String Contains or without a loop with a List contains check.
Once you have the full Primary Key you could use the normal methods to get/set a parameter in an automation script.
Hi Felix,
This is the method I have used, i was curious if there was another but after playing around it seems to be the only way.
Thanks