POST
|
I wanted to mark Steve's and Sarah's answers as correct but could not since only one can be marked as correct.
... View more
02-13-2015
11:19 PM
|
0
|
0
|
40
|
POST
|
Hello, Actually both of you were right. I just declared the map variable as the first line of a module and after that defined the module.And I returned the map object from the function that actually created the map ( return map;) So,I could save the map object on my main.js as global variable. No need to create a class inside a module,because from a normal function in a module,I could return the object. Thanks to both of you. Cheers, S.
... View more
02-13-2015
11:16 PM
|
0
|
1
|
40
|
POST
|
Steve and Sarah, Thank you for responses. Appreciate it. So,it seems I have to create a class inside a module and then return the map object to the calling module (main.js) There is one thing worth mentioning that after investigating a bit, I found that you can save all of your global variables as window.variableName. So I used window.esriMap as below. //could not highlight the code as JavaScript. define(["esri/map", "dojo/on"], function (Map, on) { return { createMap: function (mapDivID) { window.esriMap = new Map(mapDivID); }, //createMap ends }; }); By doing this, esriMap is available in any module of the application.So,would you like to share if anybody has used this approach? I mean I would like to know if there are any issue using window.esriMap I will put my class approach outcome here. Cheers, S.
... View more
02-13-2015
10:01 PM
|
0
|
0
|
40
|
POST
|
Hello, I have one question regarding creation of objects in a JavaScript Application in a modular development. If I create any object, for example esri/map object one one AMD module, how to access it on some other module. Let's assume that in a HTML page, when a dom is ready, I call some some method from a module to create a map as below; define(["esri/map", "dojo/on"], function (Map) { return { createMap: function (mapDivID) { var map = new Map(mapDivID); }, //createMap ends }; }); Now, I call this function from my HTML page when the DOM is ready. However, I'm not being able to figure out how to access this map variable (map object) on another AMD module. I guess I need to save it globally but How? Any help is much appreciated. Cheers, S.
... View more
02-13-2015
03:09 AM
|
0
|
7
|
4810
|
POST
|
Hello, I know this question is regarding pure Dojo but still I'm asking for help because I have just started to learn JavaScript API. In a custom AMD Dojo module,we write a module function like below and we call it from somewhere. addMapService:function(url,mapControl){ //add map service }, However, I want to know how we go about writing a normal Javascript function in AMD module as below; function addMapService(url,mapControl){ //add map service } The reason I'm asking this, we need lot of private helper functions in AMD module,so instead of creating another helper AMD module,I'm looking for a way to write the normal JavaScript function in a module itself. Cheers, S.
... View more
02-09-2015
09:51 PM
|
0
|
2
|
3571
|
POST
|
Owen, The line below did the trick. GRANT UNLIMITED TABLESPACE TO <USERNAME>; I guess you had guided me in that direction and I had tried it. but it did not work then. I had tried that through the UI of the Toad. But I ran the above mentioned line in the Editor of the Toad and it did the trick. Appreciate your help.
... View more
02-03-2015
05:38 AM
|
2
|
0
|
39
|
POST
|
Owen, Thanks for your reply. I gave unlimited quota the table space to my user but it did not work. This issue has something to do woth the grants and privillges I tihnk because when I give dba role to the user, the error does not occur. Any other suggestions? Thanks once again. S.
... View more
02-02-2015
05:40 AM
|
0
|
2
|
39
|
POST
|
Hello, I investigated this issue further and found that this error occurs while editing SDE feature class and not MDB or FGDB. To narrow down this,I enabled sde intercepts on my machine ( client ) and reproduced the error. The intercept produced large data to go through. Still, I found one oracle error that has been repeating itself. This error was "ORA-01950: no privileges on tablespace 'USERS'. Below is some extract from the intercept. [R 16:53:29.476] Command: GetConnectionError [W 16:53:29.476] Long: -51 [W 16:53:29.476] Long: 1950 [W 16:53:29.476] NString: "ORA-01950: no privileges on tablespace 'USERS' ORA-06512: at line 1 So,I was wondering if anybody had got this error. Any help is appreicated. S.
... View more
02-01-2015
05:50 AM
|
0
|
4
|
39
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|