Posts by DecSoft

Show threads by DecSoft
3341 posts found, page 55 of 223

DecSoft (In thread: New App Builder 2020.39)

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 App Builder 2020.38)

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: Watcher and sequencing javascript)

Hello Ryan,

About the "tx" identifier, certainly, it appear as an argument of certain callback of the "db.transaction" method. However, you put that code alone, so, I must ask if yo uare sure that "tx" is defined, since, out of the referred callback, probably "tx" is undefined or don't have the expected reference. Are you sure that the plugin did not allow to make SELECT questies without using "tx"? Because I don't know why to use a transaction in a SELECT query...

About your latest problem, if I am not wrong, what happen is that the app try to load a non existing app view. You must save the app, and then compile it, in order to assert that all the app views are properly compiled and therefore available to be load by the app.


DecSoft (In thread: Parsing JavaScript object variable)

Well, all days we can learn something. :-)

In fact, you labelled this thread like "Parse Array variable". What probably happen is that "doc.data()" sometimes stores a JavaScript Array, and sometimes other type, like in this case, a JavaScript object. So you simple try to access the stored value as an Array, and, of course, that can't work.

Just remember the console output: the output is a piece of JavaScript too, so, if that output starts by a square bracket, we are talking about a JavaScript Array. On the other hand, if, like in this case, the output starts by a curly bracket, we are talking about a JavaScript Object.


DecSoft (In thread: Parsing JavaScript object variable)

No problem, Peter. In fact the "userData" variable is just may convenient, but, you can also directly use "doc.data()" as an object. In both ways we are talking about a JavaScript object which contains the properties that you wanted.


DecSoft (In thread: Parsing JavaScript object variable)

Hello Peter,

I think you are doing well. Once you get "doc.data()", you can simply place that object's properties where you wanted. For example, in a way like this:

Something like the above can work. Even you can avoid the "userData" local variable and just access the "doc.data()" like "doc.data().firstname". Just like you prefer.


DecSoft (In thread: Watcher and sequencing javascript)

Hello Ryan,

No errors at all? That is... my idea right now is that "tx" may is not defined... Apparently "tx" can be used inside the right "db.transaction" callback, but, outside that callback... where is "tx"? So maybe this is the problem, that "tx" is not defined?

There must be another way to execute queries on existing databases... without the "tx"... or you must use the "tx" inside a "db.transaction" callback... in which "tx" exists. I hope this can at least give you an idea about where to look.


DecSoft (In thread: Watcher and sequencing javascript)

Hello Ryan,

"adb" means Android Debug Bridge. It's a command line tool which come with the Android SDK. What happen is that the tools is not in your PATH environment variable. You must set the path for the "adb" tool (see the previous link for his location) into your PATH environment variable.


DecSoft (In thread: Watcher and sequencing javascript)

Hello Ryan,

The debug console is shown in the console window, not in AB. The "Run" Batch file compile and launch the app in an attached device, and, after that the console window show the debug information. So we are not talking about the console in AB, but the console window itself.

If you can't see anything rare... you must start step by step. For example, forget any HTTP call, just perform a "db.transaction", and see what happen: in other words, see if everything is fine and what callback is executed: asuming one of them must be executed... I think so, however, can't see in the plugin's documentation the "params help" for "db.transaction".


DecSoft (In thread: Watcher and sequencing javascript)

Hello Ryan,

Follow the plugin's documentation, something like below must work:

Means... one of the provided callback must be executed, except if what you wanted is to use a third callback... because, again, according this plugin's documentation, a third callback is supported:

What I can't see is any syntax error in your code: so, one of the provided callback must be executed... except if "db.transaction" can be called without cause to call any of the provided callbacks: you must look at the plugin's documentation or ask the author about: "is db.transaction" executing always at least one of the provided callbacks, or what?".

I understand what you wanted, however, the Watcher must work... except if the code cause other thing... but anyway, I did not consider a Watcher to do something like you wanted. If you need to made 10 or any other number of HTTP calls in certain order, just execute the calls in the right order. Every HttpClient control provide an "Error" and a "Success" event, which we can use in order to do what we need: abort possible next calls, continue with them, etc.

Maybe you can reduce the complexity and do not made such a number of HTTP calls in certain specific order... but,... if you see that you must perform that number of HTTP calls and in certain order... just do it... start with the first one and end with the last of them... using the HTTP Client control's events. On the other hand,... be sure that no one of the callbacks provided to "db.transaction" are not executed: maybe something is wrong, so, you must debug it.

P.S. Take a look at the Debugger help topic of the new AB: you can use it also for the previous AB. Look mainly at the Debug Apache Cordova apps: basically you must take a look at the console in order to see what happend, since, if any of the "db.transaction" provided callbacks are executed... maybe some error occur... and you must see what error is in order to fix it.


DecSoft (In thread: New App Builder 2020.37)

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: Watcher and sequencing javascript)

Hello Ryan,

Maybe you no need the Watcher at all? That is, since "db.transaction" already provide the "success" and the "error" callback, that is what you must to use in order to do what you wanted. For example, if you wanted to perform some action after "db.transaction", you MUST wait for the "success" or the "error" callback, and therefore continue the work.

Similarly when you use an HttpClient control: after execute the HTTP call, we must wait for the events of the HttpClient control, in order to continue, for example, with other HTTP call.

What do you think about? There is a Watcher sample app that works as expected, so, maybe what happen is the Watcher is not the right solution for your specific case.


DecSoft (In thread: Report Object Overlapping in a Container Object)

Hello Danny,

So finally you got it? :-)


DecSoft (In thread: New App Builder 2019.51)

Hello to all,

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

Note that this new release of DecSoft App Builder refers to the previous generation of DecSoft App Builder, which is still available, only for our customers, in their DecSoft customer area, under the "Releases" tab.

Read the entire product's history


DecSoft (In thread: New App Builder 2020.36)

Hello to all,

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

Read the entire product's history

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 some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.