Hello John,
Yes; we can use the same Change event of the Input File control. Take a look bellow, we do both things: show the image in an Image control, and, get the choosed image dimensions:
Hello John,
Yes; we can use the same Change event of the Input File control. Take a look bellow, we do both things: show the image in an Image control, and, get the choosed image dimensions:
Hello John,
You can use (in the view MouseUp event, for example) the "views" and "event" variables (case sensitive, so not "Event") like this: "views.view1.event.clientY". Or also use the "view" variable, like this: "view.event.clientY". Or even use the "event" variable only, like this: "event.clientY".
Hello John,
If what you wanted is to shown the choosed image (to preview it before upload, for example), just put the below code in the Change event of the Input File control:
Hello John,
I already receive your E-Mail about the "scrollbar issue" and your captured screenshot. Certainly, you are right. I specifically refers to the scrollbar that you can see in the Cordova Electron options, for example. However, probably you can see that specific scrollbar. In other words, the capture that you sent to me refers to an app option tab that do not have any scrollbar... because I understand that is not required. I think I am wrong, so, I will take a look at this.
Thanks Samuel for your help!
Hello John,
Unfortunately I don't see a scrollbar.
I want to see that with my eyes... because I can't reproduce the problem here. Can you please give me access to your computer, maybe using Team Viewer or Any Desk? Send me an E-Mail with the right data and I will try to take a look.
Hello Samuel,
Yes; we are crossing messages here. :-) About the "package.json"... in principle we can create a file like that, but, I think the "ENOENT" error must be solved in another way... must work, and, inf act, it's working in previous versions of Electron. So there must be a reason for that error... and a way to solve it.
Hello to all,
Release Version is 2020.29. When I clicked the save button it generated the batch files. I presume that if I want to create a release version (distributable) I run the cordova_electron_release.bat. However, when I do this I get a message saying "ENOENT: no such file or directory, open 'C:\Work\App Builder\Test Project\MyApp\compiled\package.json'"
The "ENOENT" problem is one of what I can see here in my PC too. Apparently it's related with NodeJS, but, I can't get something working after made some searchs. What I do is to rename the "package.lock" file to "package.json". Then try again.
Hello to all,
Yes; as Samuel, I also bet to assert that "Create Cordova config file" is checked, and, also, that the app / options are saved.
About the scrollbars... I am not sure... if there is a problem here? In principle, the scrollbars must appear in the options if required, that is, if the controls can't fit into the screen, then a scrollbar must appear, so we can reach all the options. This is not working for you?
Hello to all,
Well. Just to mention that I finally can get the executable (and the installer) of the app, just by remove the NodeJS modules from the "package.json" file, because that's the cause of the problem in my PC: since I did not want to use NodeJS modules (for now), I just remove it from the "package.json" file, so this file become like below:
Doing that the app is perfectly compiled, even his installer, and, works as expected. I want to continue investigating, because, as I mention above, the Cordova Electron platform appear quite interesting. So try it, John, and, post here if you get stuck with any problem.
Hello to all,
Yes; as Samuel said (thanks for your help, Samuel!), the Cordova Electron platform appear the best option, since Apache Cordova (and DecSoft App Builder integrates it too) support the Windows UWP (Universal Windows Platform), however, what we get is not exactly an executable.
Here you can take a look at the documentation of the Cordova Electron platform. There is not too much requirements for this particular platform.
However, I must recognize that, even when I get it working in the past, right now, probably due to some misconfiguration here in my PC, I can't get the executable of the app as expected, due to some NodeJS (or Electron itself...) problems / errors that I must investigate.
By now, I publish a new release of AB which changes the default settings for the Electron platform. If you finally get it working (I hope it), there is know problem that can cause that the app can't work as expected, as you can read here in the Electron FAQs.
What the new relase of AB do is to avoid the usage of NodeJS modules, since, I am not sure right now how to implement the proposed solution in the Electron FAQ. If you want to use NodeJS modules, by now, you can follow that instructions to get it working.
Cordova Electron appear very interesting. I want try to solve here the problems that I get right now. Maybe you did not get any problem and can compile the app without problems, asseting that you meet the requirements, just by executing one of the AB provided BAT files or the provided SHELL files for that platform.
Feel free to post here if you find any problem, so we try to help. AB is ready for this platform.
Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
Glad to know, Peter! And, thanks very much for your kindly words. :-)
It's ok, Peter.
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.