Posts by DecSoft

  • d
  • h
  • m
  • s
Show threads by DecSoft
3355 posts found, page 104 of 224

DecSoft (In thread: Create CSV file and place in a specific location)

Hello Ava,

Are you sure that directories like "externalRootDirectory" and "documentsDirectory" are available in the Windows platform? On the other hand, your code is not very clear to me, I am sorry (maybe you can use the "code" HTML tag next time). Let me to see if tomorrow I can try the Files plugin in the Windows platform: I think that must work, but I am not sure what directory to use and if really the Files plugin works at all.


DecSoft (In thread: Create CSV file and place in a specific location)

Hello Ava,

Are you compiling your app for the Windows platform with Apache Cordova? Or you want to run the app in browsers and also in Android? In the first case, honestly, I am not sure how the Cordova's Files plugin is supporte in Windows. In the second case, I think you must execute the Android code for the Android platform... and maybe for iOS too... and the other code for the browsers.


DecSoft (In thread: Create CSV file and place in a specific location)

Hello Ava,

Yes; certainly that code don't work as expected in Android: I already mention that above in another post. For the Android platform (and probably for iOS, if you algo target this) you must use the FileWrite technique, as I explained above.

You can use the Device Cordova plugin and the Device* actions in AB to determine in which platform your app is running, so you can run the appropriate code in all the platforms that you wanted.


DecSoft (In thread: Push Notifications Android & IOS)

Hello Amin,

Yes; don't worry, the Cordova push notifications plugin works like a charm in Android and iOS. Certainly I don't get the same error that you mention (you know that in fact we are talking here about Apache Cordova errors, not App Builder errors, in the sense that different installations of the Android SDK, Cordova, etc., can cause the problem), but, certainly have some problems with the PushPlugin sample.

Please, Amin, upgrade your AB copy: I made certain changes in the PushPlugin sample, and, I can compile the APK now without any problems and also see running it in Android like expected. So upgrade your AB copy and try with the modified PushPlugin sample. You need to see it working like expected: then you can starts from that sample to implement the notifications in your apps.

Post here if you find any problem, however, remember that we are talking about Apache Cordova... so a good Google search with the error message plus "push plugin Cordova" can be useful to solve a possible problem. However, since the PushPlugin app sample works like expected here, in principle you must see it working also for you. Post here your results, please.


DecSoft (In thread: New App Builder release 2019.8 (01/21/2019))

Hello to all,

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

Read the entire product's history


DecSoft (In thread: Multidimensional Array in a global variable)

No problem! Glad to know that you got it. :-)


DecSoft (In thread: Multidimensional Array in a global variable)

Hello Ava,

I think we can use AB actions, however, answering your "global array" question, in fact it's possible to do it, that is, you can prepare the Array in this variable, for example:

That array/variable is available in all the app's views and you can access to it using the above (Javascript) and also the AB variable notation: [MyArray]. For more information, take a look at the program's help file, in particular to the tutorial "External Javascript".


DecSoft (In thread: Multidimensional Array in a global variable)

Hello Ava,

Can I ask what kind of multi-dimensional array do you want to create? In principle, we can use AB actions to add items to an existing Array... and that items can be another Arrays, Objects, etc. Anyway, it's nothing wrong to directly use a bit of Javascript if we wanted.


DecSoft (In thread: New App Builder release 2019.7 (01/19/2019))

Hello to all,

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

Read the entire product's history


DecSoft (In thread: Create CSV file and place in a specific location)

Hello Ava,

Yes; I also comment the approach (or a similar one) that you tried, but, as you said, that approach don't work in devices like Android. If your app is intended to be running in these devices and also in the browser, then you must use the right approach for the right platform, as I mentioned in my previous message.


DecSoft (In thread: Create CSV file and place in a specific location)

Hello again,

I forget to mention one thing! All the above requires an Apache Cordova plugin. If we want as solution that works in browsers, we can take a look at this Stack Overflow thread, who, in fact, uses certain technique which allows to download a file, that is, allows the user to choose where to download a file. Unfortunately, such technique do not work in platforms like Android nor probably iOS, so, the usage of the Apache Cordova Files plugin (like explained above) is the way to do something like that for these platforms.


DecSoft (In thread: Create CSV file and place in a specific location)

Hello Ava,

Searching a bit I can't see any Cordova plugin that allows to the user to choose a location in order to save a file. We can see some plugins that allows to the user to choose a file, but, apparently, there is not a plugin to select a place to "save a file".

A possible approach can be to save the file in a public location, that is, instead of a private location, only available for the app. In other words, we can save the file into the root of the device's "sdcard", so we can then inform to the user in which place the file can be found: since the file is saved in a public location, the user can locate it without problems.

Certainly we can always use the appropriate Javascript, for example, the below code save a "sample.txt" file with the contents "Hello world!", in the device's "sdcard" root directory. Note how an alert dialog is shown to the user when the work end: "The file has been successfully saved at: ...":

The above Javascript code is perfectly ready to use. Additionally, the FileRead, FileWrite and FileAppend actions of App Builder has been enhanced, and now, we can specify any of the available directories in FileRead, and, a new "Directory" argument has been added to the FileWrite and FileAppend actions, to allows to specify any of the available directories.

So, if you upgrade your App Builder copy, you can do the same than the above with the enhanced FileWrite action, since this (and FileAppend) allows now to specify the "externalRootDirectory", instead to use by default the app's data directory, which is private to the user. For information about what directory to use in what platform, you must read the documentation of the Apache Cordova Files plugin.

So, in few words, replying to your question, I think the approach must be to save the CSV file in a public directory, like the "externalRootDirectory" in Android, so you can inform to the user that the CSV file has been placed in that directory, instead to ask the user where he wants the file to be saved.


DecSoft (In thread: New App Builder release 2019.6 (01/18/2019))

Hello to all,

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

Read the entire product's history


DecSoft (In thread: Read a file selected by the app's user)

Hello Ava,

Glad to know that you got it. :-)


DecSoft (In thread: Read a file selected by the app's user)

Hello Ava,

It's quite rare. Are you sure that you are using the Read event of the Input File control and that that Input File's name is "Input1"?

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