herculanojs Posted January 28, 2018 Share Posted January 28, 2018 It has definitely been exhausting these essos in unigui. File not found: C:\Program Files (x86)\FMSoft\Framework\unigui\touch-2.4.2-complete\src\grid\plugin\ColumnResizing.js What file is this missing, where is this file? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 28, 2018 Share Posted January 28, 2018 This file exists in your CustomFiles ? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 28, 2018 Administrators Share Posted January 28, 2018 Sorry, but there is no way for us to help you with this little information. Sent from my SM-N950F using Tapatalk Quote Link to comment Share on other sites More sharing options...
mhmda Posted January 28, 2018 Share Posted January 28, 2018 Delphi Developer: I also had this error ONLY in latest version (6.5) and I think it because the way that Extjs 6.5 works (MVC) and you must use 'requires' for the used class. I mean if I use custom component of Extjs, for example: Ext.draw.Container it will through the same error unless you add the appropriate class in the 'requires' of the App, and I don't know where to do that? I already sent Farshad a PM about this, do you have any solution for that? Example code: try to execute this in the console while running your app var drawContainer = Ext.create('Ext.draw.Container', { renderTo: Ext.getBody(), width:200, height:200, sprites: [{ type: 'circle', fillStyle: '#79BB3F', r: 100, x: 100, y: 100 }] }); The error: Uncaught TypeError: c is not a constructor at eval (eval at getInstantiator (ext-all.js:20), <anonymous>:3:8) at Object.create (ext-all.js:20) at <anonymous>:1:25 If I add 'unichart' to uses clause then it works fine :-) Quote Link to comment Share on other sites More sharing options...
herculanojs Posted January 29, 2018 Author Share Posted January 29, 2018 Sorry, but there is no way for us to help you with this little information. Sent from my SM-N950F using Tapatalk <br class="Apple-interchange-newline"><div id="inner-editor"></div> 439/5000 I can not help much because I do not know what is causing this. I just upgraded version 1412 to 1424 and started the problem. The only information I have is the information in the log pointing out the lack of this file FMSoft \ Framework \ unigui \ touch-2.4.2-complete \ src \ grid \ plugin \ ColumnResizing.js which I have already searched for and I do not find any reference. Also I am not using custom file that is referencing this file Quote Link to comment Share on other sites More sharing options...
herculanojs Posted January 29, 2018 Author Share Posted January 29, 2018 what I realized is that it is only occurring on the forms that there is unimdbgrid Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 29, 2018 Administrators Share Posted January 29, 2018 Thanks for the info. I am investigating the issue Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 29, 2018 Administrators Share Posted January 29, 2018 Can you please verify that below file exists on your server: ..\..\uniGUI\touch-2.4.2-complete\packages\sencha-touch-grid\build\sencha-touch-grid.js Quote Link to comment Share on other sites More sharing options...
herculanojs Posted January 29, 2018 Author Share Posted January 29, 2018 Can you please verify that below file exists on your server: ..\..\uniGUI\touch-2.4.2-complete\packages\sencha-touch-grid\build\sencha-touch-grid.js yes, exists Quote Link to comment Share on other sites More sharing options...
herculanojs Posted January 29, 2018 Author Share Posted January 29, 2018 well, I'm going back to version 1412 and see if that persisted or is something exclusively related to 1424 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 29, 2018 Administrators Share Posted January 29, 2018 yes, exists In this case everything must work as normal, unless there is a virus or an antivirus program which randomly blocks things on your server. Quote Link to comment Share on other sites More sharing options...
herculanojs Posted January 29, 2018 Author Share Posted January 29, 2018 Farshad, I returned the build 1412 version and the problem does not run on it. So the problem is actually in version 1424 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 29, 2018 Administrators Share Posted January 29, 2018 Farshad, I returned the build 1412 version and the problem does not run on it. So the problem is actually in version 1424 Can you reproduce it in your app easily? The only way for us to solve the problem is to reproduce it or observe it on a live system. Quote Link to comment Share on other sites More sharing options...
herculanojs Posted January 29, 2018 Author Share Posted January 29, 2018 Farshad, in order to reproduce, I have to uninstall version 1412 and recompile everything involving the project, it does a certain job. I will see if I can install a virtual machine for this, so it does not affect my programming environment, because until then I was doing directly in the production Maybe Mohammad is easier to reproduce, because it has the same problem Quote Link to comment Share on other sites More sharing options...
mhmda Posted January 29, 2018 Share Posted January 29, 2018 You can run my code directly in browser console. I already mentioned that in Extjs 6.x there is 'requires' section in app.js that you define what to load it and it is similar to the 'uses' in delphi. Is there any way to do that in unigui. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 29, 2018 Administrators Share Posted January 29, 2018 You can run my code directly in browser console. I already mentioned that in Extjs 6.x there is 'requires' section in app.js that you define what to load it and it is similar to the 'uses' in delphi. Is there any way to do that in unigui, and we still stuck with this error. Problem here is that library ColumnResizing.js is already embedded in file sencha-touch-grid.js, there should be no reason for Ext JS to demand it to be loaded. Quote Link to comment Share on other sites More sharing options...
herculanojs Posted January 31, 2018 Author Share Posted January 31, 2018 With Farshad's help, we have been able to understand and solve the problem. At first for some reason in some cases, js automatically adds some files that unigui executes, when you do not declare classes in main form uses. In my case in particular, the application is all packaged in bpl, and since it was not making uses of the classes being loaded into the bpl, the corresponding js was not being loaded. To solve the problem, I added in the uses references the classes in the main form of the project, and the problem was solved. Thanks Farshad for the usual support Quote Link to comment Share on other sites More sharing options...
mhmda Posted January 31, 2018 Share Posted January 31, 2018 If I add 'unichart' to uses clause then it works fine :-) I already told you about that... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.