Posts by DecSoft

Show threads by DecSoft
3355 posts found, page 21 of 224

DecSoft (In thread: HTTP: Uncaught TypeError)

Hello Mario,

I was tempted to propose some possible workaround, even when, certainly, the issue that you describes occurs. But then I figure out that the same issue can happen with other controls like the Websocket, AudioPlayer, VideoPlayer and Timer controls. So I decide to handle this and rewrite how the DecSoft App Builder compiler set the "self" variable of all the controls. I published a new release of the product right now as you can see in this forum post, Mario.


DecSoft (In thread: New App Builder 2022.5)

Hello to all,

Here is a new DecSoft App Builder with the below changes, fixes and enhancements:

Read the entire product's history


DecSoft (In thread: New HTML Compiler 2022.5)

Hello to all,

Here is a new DecSoft HTML Compiler with the below changes, fixes and enhancements:

Read the entire product's history


DecSoft (In thread: New App Builder 2022.4)

Hello to all,

Here is a new DecSoft App Builder with the below changes, fixes and enhancements:

Read the entire product's history


DecSoft (In thread: HTML Compiler compilation)

Hello Bryce,

About your first question, honestly I need to take a look at HTC 1 in order to see if that option really exists... and why? Because the idea is that the output file must be the same than the "index.html" file of our apps. And why? Because we app may need files, not included in the compiled executable, in order to properly work. For that reason HTC 2 do not include that specific option.

About your second question, certainly it's the system and the "icons cache" who determine the behaviour that you describes. However, if the icon is certainly changed (there is no error when compile the executables), then the real icon of the executable is what you provides, and, you can see that "real icon" if you copy or move the executable into another folder or another computer.

P.S. A possible workaround for the first question can be to use the DecSoft HTML Compiler CLI compiler. From DecSoft HTML Compiler is it possible to create a BAT file who uses the CLI compiler to compile our apps. It's possible then to edit this BAT file (or create a new one from the scratch) who compile the app and then move the executable file to another location.


DecSoft (In thread: HTML Compiler local storage)

Hello Bryce,

The local storage is managed by the app browser itself: is not saved in a file or internally managed by DecSoft HTML Compiler, but by the used chromium based browser itself. The user is not able to get it, but your app yes. I mean, the local storage is not removed when the app is closed, so, previously stored information it's available when the user starts the app again.


DecSoft (In thread: Http client CORS (AB1))

Hello Andrea,

For the case of AB1, you can certainly establish a timeout for the request like below:

So the above establish 10 seconds of timeout, means if after 10 seconds the server did not respond the Error event of the Http Client is fired with a "Status = -1" and "Response = null".


DecSoft (In thread: Http client CORS (AB1))

Hello Andrea,

The problem with CORS is not to place the right header in the client side, but in the server side. So it's the server who must set the appropriate CORS permissions. You can find more information at this web page, which explain how to set the CORS permissions in various servers. If you can't handle this using your server's, but, your server can run PHP scripts (for example), then you can try to set the CORS permissions from a PHP script, so you can call to that script, who can also make the appropriate reading of the URL that you wanted, something similar like below:


DecSoft (In thread: Input File error on Ios (AB1))

Hello Andrea,

I am not sure... probably it's not solve the error, but, look at your "nscameraUsageDescription"... maybe it's case sensitive and you must use "NSCameraUsageDescription". On the other hand, iOS 12... sounds old to me... and may you are right and that problem is related with that version of iOS.


DecSoft (In thread: Input File error on Ios (AB1))

Hello Andrea,

The point is that the error that you shown is procuded in the compiled Swift code: we commonly no need to edit nor modify that code, but the Javascript code of our apps.

Apparently you solve the problem, however, maybe with "Capture=True" you can get the things worked as expected, but, if you add the below XML in the Config XML option of the app:

Basically, when we need to use the Camera or the Library, we need to establish certain strings in order to properly use that resources at iOS. So you can try with that XML, or, just leave the Capture = False, if you solve with this and you no need to go ahead.


DecSoft (In thread: Condition into Report (AB1))

Hello Andrea,

You must lost the fear to use an HTTP client control: in fact when you set an URL to the Report, internally an HTTP call is made, so, using an HTTP call to retrieve the data is just a simple step. If you use an HTTP client control you can work with the response before assign it to the "Report.Data" variable.

Suppose the report's source (which will be assigned to the Report's Data variable) contains properties like this: "date_created": "2022-03-15 13:00". You can use an HTTP client control to get the source, and, in the HTTP client control Success event, you can write a code like below:

Doing that you can use a code like below in the Report HTML:


DecSoft (In thread: Condition into Report (AB1))

Hello Andrea,

There are various ways to do it. I prefer to do these things in the server side, so, our records can have a property like "IsToday", so we can simply prepare a code like below:

If you prefer to rely on the client side, you can prepare a variable in the Show event of the view in wich you place your Report control, a variable like below:

Doing that you prepare a code inside the Report like below:

Of course, we suppose that "Record.MyDate" contains date values like "YYYY-MM-DD". If there is other formatted date string in "Record.MyDate", then you must change the "TodayFormatted " variable accordingly.


DecSoft (In thread: Condition into Report (AB1))

Hello Andrea,

You can use the "ng-show" directive in a way like below:


DecSoft (In thread: InAppBrowser URL schemes)

Hello Paolo,

Glad to know that you got it. Anyway, take a look at the documentation of the InAppBrowser plugin. In particular to the available events, and, more in particular, to the "message" event. I did not test it (like I test the above code) but I think the "message" event can be a good thing to be considered.


DecSoft (In thread: InAppBrowser URL schemes)

Hello Paolo,

I am not sure if what you wanted is what is shown in this stackoverflow answer. I use that answer's code with good result in one of my apps. The idea is simple, we call to app.cordova.inAppBrowser.open and save a reference to the opened window, that is:

Therefore, inside "your-page.php", you can place a button and a "click" event listener for that button. In the "click" event listener the only thing that you must do is to set the variable "window.shouldClose" to true. So when the user click on that button the the code after "if(values[0])" will be executed: you can then close the "InAppBrowser" window and/or do anything else.

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.

This website uses cookies only to store your preferences.

Ok! Hide this note More information