I was playing around tinkering with how to subset data based on user ID. I used the Persisting Identity Manager template from ESRI as a starting point. i ended up using the idObject to gain access to the userID and used that in value in a definition query of the operational layers. //access the user credential stored in the idObject var user = idObject.credentials[0].userId; var demoMapService = new ArcGISDynamicMapServiceLayer("https://****"); //ser layer Definition based on the user name var layerDefs = []; layerDefs[1] = "owner='"+ user+"'"; demoMapService.setLayerDefinitions(layerDefs); map.addLayer(demoMapService);this was working fine until i came back to it today and i am no longer prompted for credentials. Firebug says: TypeError: idObject is undefined http://atreyu/AuthenticationTemplate/index.html Line 79
oddly my button_click() is also coming up as undefined though all the code is there. 'Any hints or clues?