Rally app SDK 2.0rc1 - Uncaught ReferenceError: rally is not defined

graemeRharvey

Long time SO reader, first time questioner. I'm fairly new to coding in JavaScript and I'm working on a Rally app. I'm trying to "update" existing items, so I figured I'd set up the datasource at the beginning of the app, like this:

Ext.define('CustomApp', {
    extend: 'Rally.app.App',
    componentCls: 'app',

    launch: function() {
        this.rallyDataSource = new rally.sdk.data.RallyDataSource("__WORKSPACE_OID__",
                 "__PROJECT_OID__",
                 "__PROJECT_SCOPING_UP__",
                 "__PROJECT_SCOPING_DOWN__");

However, on page load, the Chrome console is showing me "Uncaught ReferenceError: rally is not defined". I checked the HTML to ensure there was a reference to sdk.js, and there is:

 <script type="text/javascript" src="/apps/2.0rc1/sdk.js"></script>

I've searched around and attempted some solutions, but nothing seems to work. Any one else run into this or know what it causing it?

Edit: To clarify, I am testing this within the Rally workspace in which it will be used. I have comboboxes correctly loading and populating with Release and User Story info, so I know it is able to communicate.

Kyle Morse

rixo is on the right track above. Basically, you're trying to use sdk 1.x code (rally.sdk.data.RallyDataSource and the hangman variables) from the sdk 2.x.

SDK 1.x is deprecated but the docs are still available here: https://help.rallydev.com/app-sdk

SDK 2.x is the preferred platform and its docs are here: https://help.rallydev.com/apps/2.0rc2/doc/

Both of those resources contain a bunch of guides for getting started and whatnot.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Rally SDK 2 custom sorters

From Dev

Rally Query in the SDK 1 vs Store in the SDK 2

From Dev

Upgrading my Rally app from rally SDK 1.32 to rally SDK 2.0p5

From Dev

Rally App SDK 2.0 - filter by date

From Dev

Rally - clone existing app

From Dev

Rally - clone existing app

From Dev

Uncaught ReferenceError: app is not defined in Angularjs

From Dev

create/update user story using rally app sdk

From Dev

create/update user story using rally app sdk

From Dev

Rally SDK2.0 RC3 Query

From Dev

Rally SDK2 how to override the row CSS

From Dev

Rally SDK external development Rally.environment undefined

From Dev

Customizing Rally TaskBoard app with Settings

From Dev

Uncaught ReferenceError: WL is not defined in MobileFirst Migrated app

From Dev

Typescript Angularjs Uncaught ReferenceError: app is not defined

From Dev

Uncaught ReferenceError: app is not defined at Controllers.js

From Dev

ReferenceError: $ is not defined or Uncaught ReferenceError: $ is not defined

From Dev

Updating iteration for story using Rally SDK

From Dev

Building Rally Apps Intro to 2.0 SDK

From Dev

Filter function for wsapi store not working in Rally SDK

From Dev

In Rally SDK, show hidden fields in UI components

From Dev

Does SDK 2.0 work outside of Rally?

From Dev

Rally SDK 2.0 displaying debug information

From Dev

Uncaught ReferenceError: System is not defined - Angular2

From Dev

Angular 2 - Uncaught (in promise): ReferenceError: System is not defined

From Dev

Uncaught Error: [$injector:modulerr] & Uncaught ReferenceError: app is not defined

From Dev

Rally - Dashboard Apps -Defect App Query

From Dev

Add multiple filters to cardboard app rally

From Dev

User login flow for Android app of RALLY

Related Related

  1. 1

    Rally SDK 2 custom sorters

  2. 2

    Rally Query in the SDK 1 vs Store in the SDK 2

  3. 3

    Upgrading my Rally app from rally SDK 1.32 to rally SDK 2.0p5

  4. 4

    Rally App SDK 2.0 - filter by date

  5. 5

    Rally - clone existing app

  6. 6

    Rally - clone existing app

  7. 7

    Uncaught ReferenceError: app is not defined in Angularjs

  8. 8

    create/update user story using rally app sdk

  9. 9

    create/update user story using rally app sdk

  10. 10

    Rally SDK2.0 RC3 Query

  11. 11

    Rally SDK2 how to override the row CSS

  12. 12

    Rally SDK external development Rally.environment undefined

  13. 13

    Customizing Rally TaskBoard app with Settings

  14. 14

    Uncaught ReferenceError: WL is not defined in MobileFirst Migrated app

  15. 15

    Typescript Angularjs Uncaught ReferenceError: app is not defined

  16. 16

    Uncaught ReferenceError: app is not defined at Controllers.js

  17. 17

    ReferenceError: $ is not defined or Uncaught ReferenceError: $ is not defined

  18. 18

    Updating iteration for story using Rally SDK

  19. 19

    Building Rally Apps Intro to 2.0 SDK

  20. 20

    Filter function for wsapi store not working in Rally SDK

  21. 21

    In Rally SDK, show hidden fields in UI components

  22. 22

    Does SDK 2.0 work outside of Rally?

  23. 23

    Rally SDK 2.0 displaying debug information

  24. 24

    Uncaught ReferenceError: System is not defined - Angular2

  25. 25

    Angular 2 - Uncaught (in promise): ReferenceError: System is not defined

  26. 26

    Uncaught Error: [$injector:modulerr] & Uncaught ReferenceError: app is not defined

  27. 27

    Rally - Dashboard Apps -Defect App Query

  28. 28

    Add multiple filters to cardboard app rally

  29. 29

    User login flow for Android app of RALLY

HotTag

Archive