MapValueGet - Returns what looks like a pointer instead of the value when called from a page

Hi Folks,

I am trying to get some info onto a page and I am having an issues with MapValueGet - it seems to return the pointer to the information (or some other random number) rather than the actual value, but only when called directly from the page.  If I wrap it or otherwise call it in cicode, I get the correct value back:

Has anyone seen anything like this?  I am going to go with the workaround for the timebeing, but to my mind, it shouldn't be necessary.

Thoughts?

  • Hi  ,

    This sounds like a bug. I'd recommend getting a very simple test project together and submitting it to Support, to get it looked at. If it turns out to be a defect, it can be scheduled and hopefully fixed in a up and coming monthly patch.

    Kind regards

    Olivier

  • Interestingly, it works if you combine it with an empty string.

  • It looks like PlantSCADA is evaluating the expression as an integer value. Adding an empty string forces PlantSCADA to evaluate it as a string.

    This is a good workaround, but I would open a support case if I were you because it sounds like a bug indeed.