Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14676

BlackBerry: using tableViewSections, app fails to run and triggers an exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.1.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Titanium SDK 3.1.2.v20130725110651
      Alloy 1.2.0
      Appcelerator Studio 3.1.2.201307232148
      CLI 3.1.2
      Node 0.8.22

      Description

      Problem description
      Using a TableView with tableViewSections, the app fails to run and an exception is triggered.

      Steps to reproduce
      Use the sample code:

      <Alloy>
          <Window id="win" backgroundColor="white">
              <TableView id="table">
                  <TableViewSection id="sectionFruit" headerTitle="Fruit">
                      <TableViewRow title="Apple"/>
                      <TableViewRow title="Bananas"/>
                  </TableViewSection>
                  <TableViewSection id="sectionVeg" headerTitle="Vegetables">
                      <TableViewRow title="Carrots"/>
                      <TableViewRow title="Potatoes"/>
                  </TableViewSection>
                  <TableViewSection id="sectionFish" headerTitle="Fish">
                      <TableViewRow title="Cod"/>
                      <TableViewRow title="Haddock"/>
                  </TableViewSection>
              </TableView>
          </Window>
      </Alloy>
      

      also available here: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.TableView

      1. Run the App
      Result: App runs, splashscreen is displayed, then it crashes.

      From the log, I can see this error:

      app/native/assets/alloy/controllers/table.js:12
          $.__views.__alloyId5 = Ti.UI.createTableViewSection({
                                       ^
      TypeError: Object [object Object] has no method 'createTableViewSection'
          at new Controller (app/native/assets/alloy/controllers/table.js:12:34)
          at Object.createController (app/native/assets/alloy.js:212:12)
          at new Controller (app/native/assets/alloy/controllers/index.js:17:35)
          at Object.createController (app/native/assets/alloy.js:212:12)
          at app.js:3:7
      

        Attachments

          Activity

            People

            • Assignee:
              penrique Pedro Enrique (Inactive)
              Reporter:
              fcasali Federico Casali
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17088
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code