Uploaded image for project: 'GUI Builder'
  1. GUI Builder
  2. GB-497

Adding dummy data to a TableView will include double-quotes around the data value in the .tss file

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.0.6
    • Fix Version/s: 1.0.6
    • Component/s: Designer editor
    • Labels:
    • Environment:

      Appcelerator Studio, build: 4.6.0.201604071339
      App Designer: 1.0.5.9
      Appc CLI NPM: 4.2.5-2
      Appc CLI Core: 5.3.0-12
      Arrow: 1.7.30
      SDK: 5.3.0.v20160411203046
      Node: v4.2.4
      OS: El Capitan (10.11.4)

      Description

      Details: If you add dummy data to a TableView via the Properties pane, then double quotes will be added around the data value in the .tss file. For example:

      "#TableView_1": {
      	"data": "[ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ]",
      }
      

      Steps to reproduce:

      1. Create an Alloy app
      2. Open a view with Scratchpad
      3. Add a TableView to the view
      4. In the Properties pane for the TableView, find Children section
      5. In the data field, add the following snippet:

        [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ]

      Actual: Double quotes are added to the data value (see .png attachment) and if you install the app, it will fail at runtime (see .mov attachment).

      Expected: Double quotes should not be added to the data value.

        Attachments

          Activity

            People

            • Assignee:
              denthor Grant Smith
              Reporter:
              wluu Wilson Luu (Inactive)
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: