I have created an array of Report names, and am creating a “for each” loop to interact with each of the reports which are in an online application (step 1 being to double click to report to open). Using a log message I have confirmed that the array item is being read correctly in the first instance and this matches the name of the first report shown on screen. So I am trying to create a selector using each of the Report names as a dynamic variable:
" webctrl parentid=‘xyz’ aaname=’"+strReportName.ToString()+"’ /" (in both quotes and triangle brackets, but brackets don’t show? Also xyz changed, but works elsewhere, don’t think that’s the issue)
strReportName is a string type variable already, but I tried with/without .ToString in case. However when I run the component it is unable to find the selector:
Message: Unable to cast object of type ‘Newtonsoft.Json.Linq.JValue’ to type ‘System.String’.
Exception Type: InvalidCastException
I have created this in expression editor as well, as per other suggestions I have seen which others say fixed their issues.
Any help would be greatly appreciated. Many thanks!