Hello Ryan,
Maybe we can find the problem with the Enable and Disable actions, since it's works here as expected. Maybe you need to use the ApplyModel action after Enable / Disable the control?
Hello Ryan,
Maybe we can find the problem with the Enable and Disable actions, since it's works here as expected. Maybe you need to use the ApplyModel action after Enable / Disable the control?
Hello Ryan,
To enable a control, we must set his "Disabled" property to an empty string, because any other value means "disable" the control.
This disable the control:
And this other enable the control:
Additionally, you can use the "Disable" and "Enable" actions.
Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
Hello John,
Only using some Apache Cordova plugin we can reach the file system, in other words, only for some specific platforms we can do something like that, and, maybe not so easy (even when possible). If what you wanted is to provide a list of images, probably is better that you prepare some JSON file to be parsed and load the images / paths / whatever in a Select control, a DropDown control or similar: something like this, if enough, can works in all platforms.
Hello John,
Yes; "html()" can do the trick. However, remember that don't remove the element from the DOM, just clear his HTML. Probably you already know this, so, forget it. :-)
Hello John,
Probably the best is to identify what you add, so you can remove it later. You can do something like the below:
... and therefore you can remove what you added before:
You're welcome! :-)
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.
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.