Ticket T184595
Visible to All Users

App is no longer working as the database db.js file keeps getting the "DevExpress is undefined" error

created 10 years ago

[DevExpress Support Team: CLONED FROM T181360: HTML links are not working on Android after upgrade to 14.1.8]
The hot fix works and the app is now published which is great news. I have since upgraded though to Devexpress 14.2.3 and my app is no longer working as the database db.js file keeps getting the below error.
Unhandled exception at line 168, column 5 in http://localhost:59120/data/db.js
0x800a1391 - JavaScript runtime error: 'DevExpress' is undefined
The db.js file looks like this:
fsplaw.db = {

menu: new DevExpress.data.ArrayStore(menu),
       articles: new DevExpress.data.ArrayStore(articles),
       gallery: new DevExpress.data.ArrayStore(gallery),
       contacts: new DevExpress.data.ArrayStore(contacts),
       services: new DevExpress.data.ArrayStore(services)
   };
Any help would be much appreciated.
Regards
Paul

Show previous comments (2)

    Marko,
    Yes it is although looking at the index.html file in the project created by Nikolai I can see a few differences. Firstly I am referencing the dx.phonejs.js file although it is not present in my project anymore.
    <script type="text/javascript" src="js/dx.phonejs.js"></script>
    Secondly Application6 project references the dx.all.js file which is not present in my project at all?
    <script type="text/javascript" src="js/dx.all.js"></script>
    I have now added this to my project and it seems to work now.
    Thanks for your help
    Paul

      How do i disable debugging so that I can puiblish this to the Google play store? I keep getting the following message using 14.2.3
      Upload failed
      You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play. Learn more about debuggable APKs.

      DevExpress Support Team 10 years ago

        Hello,

        To process your recent post more efficiently, I created a separate ticket on your behalf: T185165: How to disable debugging. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.