Friday, 15 June 2012

breeze - Breezejs "object is not a function" leads to "Uncaught Error: There is no metadata available for this query"- When I am trying to make my data prime -


I am developing a demo application using Hottoevel SPA in VS 2012 using the Waves. Error "Unrecognized error: There is no metadata available for this query" which is not always happening, but sometimes when I'm trying to data the prime (I'm calling the main method on the initial page load That's basically a simple query), for queries. Sometimes the application fails to load and gives an error, but on the other hand it does not fail - it works

This code is

  function primary data ( ) {Var promise = q (all [[getLookups (), getAllContactDetails (blank, right)]). Then (applyValidators); Promise return. Then (success); Function success () {datacontext.lookups = {// code to populate lookup}; Logs ('primetime data', datacontext lookups); } Function applyValidators () {model.applyJobValidators (Manager); }}  

The above function returns the following error

"Type Error: Object queue does not have a function on ... succulent ()", Message: Stack: (...) Get stack: function () {{native code}} set stack: function () {[native code]} __ protota__: error: "object function is not" "

Which does lead my application to not work properly, can anyone also tell me that my data is preliminary? What I'm doing when making a mistake is that my application is misbehaving.

  function getLookups () {var abc = EntityQuery.from ('Lookup'); Return Manager. Executional (ABC) .file (queryFailed1);} function queryFail1 () {// logError}   3);] ( remote) {var s = getLocal ('Contact_Details'); 

  {// s.pop (); contactObservable; debugger; return Q.resolve ();}} var query = EntityQuery.from (' Description '); Debugger; Return Manager.executeQuery (query). Then (querySceeded). File (queryFailed2); Function queryFailed2 () {// log} function query from field (data) {contactObservable (data.results); Toastr.success ("loaded contacts!") Logs ('retrieved [' + entityNames.detail + ']' from remote data source, data, true); }};  


No comments:

Post a Comment