Announcement

Collapse
No announcement yet.

InputView and values with quotes. Anyone else having problems?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    InputView and values with quotes. Anyone else having problems?

    In an event action page (derived from AbstractActionType) I have an odd problem. If I enter text with a quote (eg. I enter "Hello World") into one of my InputView controls the text (including quotes) is properly stored and processed. However it will not display in the event configuration web page.

    When I execute the action the parameter is properly available to my code (including quote marks) but simply does not show up in the UI.

    You can reproduce it like this:
    1. Create a manually triggered event
    2. Select action of "Speak Something" (just as an example)
    3. In the "Phrase" input control type in:Testing!
    4. Hit the save icon
    5. Expand the now collapsed event action
    6. Notice that Testing! is properly displayed
    7. Now replace Testing! with "Testing!" (note the quotes)
    8. Hit the save icon
    9. Expand the now collapsed event action
    10. Notice that the Phrase input control is empty.
    If you evaluate the event's JSON code you'll see that it properly retains the quoted string (with escaped quotes \"Testing!\"), but simply does not show up in the UI.

    Anyone else seeing this?

    #2
    Anyone?

    Comment


      #3
      https://github.com/HomeSeer/Plugin-SDK/issues

      Comment


        #4
        Thanks, alexbk66. I literally found it just now:
        Quotes in InputView are not encoded · Issue Concord 4 (mattm55) · HomeSeer/Plugin-SDK (github.com)

        Comment

        Working...
        X