Topic
2 replies Latest Post - ‏2013-02-07T20:13:59Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts
ACCEPTED ANSWER

Pinned topic digit/registry.js not found

‏2013-01-25T21:49:17Z |
Hi,

I am using Eclipse Juno, IBM worklight 5.0.5.20121217, Dojo toolkit 1.8.1 to build a mobile app.
I am trying to perform a view transition in a programmatic manner. Below is the piece of code -

require(["dojo/_base/xhr", "dojo/dom", "dojo/_base/array",
"dojo/domReady!", "dojox/mobile/RoundRect" ,"dojo/on", "digit/registry"],
function(xhr, dom, arrayUtil, on, registry) {
var currentView = registry.byId("LoginView").getShowingView();
currentView.performTransition("LoggedInView", 1, "slide", null);

When using this code, I get an error as - registry.byId is not a function.
In the console I could see that the require function is not able to include registry.js. I can see below error on console -

"NetworkError: 404 Not Found - http://localhost:8080/apps/services/preview/newdojoproj/common/0/default/digit/registry.js"
registry.js
Error: scriptError
...on(j){return"object Array"==k.call(j)},f=function(j,a){if(j)for(var c=0;c<j.le...
I don't understand why its not able to find the registry.js file.
I have similar piece of code in another file where I am doing the same thing (including digit/reqistry with require function and then using it to get the current view and then perform transition. Here its working fine.

Could you please provide some help/pointers ?

Thanks,
Asif
  • SystemAdmin
    SystemAdmin
    2327 Posts
    ACCEPTED ANSWER

    Re: digit/registry.js not found

    ‏2013-01-25T23:05:02Z  in response to SystemAdmin
    Asif:

    I think that you are looking for "dijit/registry"
  • SystemAdmin
    SystemAdmin
    2327 Posts
    ACCEPTED ANSWER

    Re: digit/registry.js not found

    ‏2013-02-07T20:13:59Z  in response to SystemAdmin
    Thank you