Ad Widget

Collapse

Value Mapping not working?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bubbagump
    Junior Member
    • Sep 2021
    • 18

    #1

    Value Mapping not working?

    I am sure I am screwing up a data type somewhere but I can't figure where. This is on 7.0.4. I have an item that runs a Perl script to check if SIP is available. The script output either has '200 OK" in it or any other number of errors.

    Click image for larger version

Name:	Screenshot 2024-10-18 at 2.23.34 PM.png
Views:	365
Size:	70.9 KB
ID:	493005
    Then I want to do a value map.

    Click image for larger version

Name:	Screenshot 2024-10-18 at 2.23.51 PM.png
Views:	317
Size:	47.2 KB
ID:	493006

    However when I look at latest data, I get a 1 or 0 and the Value Map doesn't apply. What am I missing?
  • kyus
    Senior Member
    • Feb 2024
    • 172

    #2
    Hey! After creating your value mapping, have you selected it in the "Item" tab when configurating your item?

    Click image for larger version

Name:	image.png
Views:	338
Size:	53.5 KB
ID:	493008

    Comment

    • Bubbagump
      Junior Member
      • Sep 2021
      • 18

      #3
      That's it! I had it set to Text and that option wasn't offered. Set to Numeric and voila. THANK YOU! Sheesh.

      Comment


      • kyus
        kyus commented
        Editing a comment
        I'm glad it helped! ​​​​​​​
    Working...