Uploaded image for project: 'Documentation'
  1. Documentation
  2. TIDOC-1567

Ti.App.Properties cannot set a value for a property created in tiapp.xml with Ti 3.2.x

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2014 Sprint 04
    • Component/s: APIDoc
    • Environment:

      Titanium Command-Line Interface, CLI version 3.2.1, Titanium SDK version 3.2.1.GA
      Testing on iOS 6.1 emulator, 6.1.3 iPad using OSX 10.8.5

      Description

      Before updating Ti (both Studio and the SDK) to 3.2.0, properties that have been created in the tiapp.xml could be accessed and re-set (overwritten) and saved. However after the update to 3.2.x, the following message appears upon attempting to set a property created in the tiapp.xml:
      [ERROR] : Property "screenname_preference" already exist and cannot be overwritten
      [ERROR] : Property "memberemail_preference" already exist and cannot be overwritten
      [ERROR] : Property "memberclass_preference" already exist and cannot be overwritten

      relevant section of the tiapp.xml is as follows:
      <property name="screenname_preference" type="string">Guest</property> <property name="memberemail_preference"type="string">guest@nowhere.com</property> <property name="memberclass_preference" type="string">Free</property>

      a simple sample of the code block is as follows: Ti.App.Properties.setString('screenname_preference', screenName); Ti.App.Properties.setString('memberemail_preference', eMail); Ti.App.Properties.setString('memberclass_preference', Class);

      I realize that this code list is not complete .. but it is the point of failure AND this was all working fine before the update to 3.2.0. Also there is an attached test case project (testProperties.zip)

      Also an interesting note: These [ERROR] logs dont display in the 7.0.x simulator, nor do messages posted with Ti.API.info()

        Attachments

          Activity

            People

            • Assignee:
              bhatfield Benjamin Hatfield (Inactive)
              Reporter:
              bburgess66@netvigator.com Brian Burgess
              Reviewer:
              Tim Statler
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration