Posts by DecSoft

Show threads by DecSoft
3403 posts found, page 104 of 227

DecSoft (In thread: PouchDB/CouchDB offline first application example)

Hello Peter,

I say it's easy... but it's not so easy... it's always the same history: anything that we can develop tends to be complicated... first of all, I don't know nothing about PouchDB, and, even when their Javascript API appear to be more or less easy, certainly, some errors occurs... and then we need lot of time to deep into the documentation of the project in order to know what happen.

Please, take a look when possible at this sample that I prepare for you:

https://www.decsoftutils.com/temp/PouchDB.zip

As you can see, what I try to do is to allows the user to add books into the database, and, at the same time, shown the existing database books into a Report control. All of these can be done without problems: certainly the API of PouchDB is more or less easy to use.

As you can see, the sample is working as expected, however, when I try to use the "sync" method of PouchDB... some error occur... and I can't know if the error is related with the database, the thirdparty server, etc. So I am stuck at that point, and, have no time to continue right now!

I comment the code that try to use the "sync" method, and, as you can see, the sample works, except that, due to the referred error, apparently the database cannot be synchronized with the server side.

Please, Peter, look at the sample, see how it's working as expected, then comment the "UpdateReport" function (used in both the app's view's Show event and the Add Book button Click event) and uncomment the try of the "sync" method code.

Then you can see the error that appear... and may can investigate about that error in the documentation, the thirdparty server, etc. If you have any specific question after that, post it here or open a new thread in this support forum.


DecSoft (In thread: PouchDB/CouchDB offline first application example)

Hello Peter,

Ok. Let me to take a look at this... certainly I think that I can prepare a sample for you with not too much time. Let me to try it and I will back here. :-)


DecSoft (In thread: PouchDB/CouchDB offline first application example)

Hello Peter,

Probably not all the stuff is already working. For example, you define a "remoteCouch" variable (which I convert to a global variable, so we can use outside where we define it), but, I am not sure if you use that variable after all.

According to the documentation, the database (our "window.App.RootScope.DB" global variable) have the right methods to "sync" to and from the server side.

Apparently that's the place to use the referred "remoteCouch" variable. Maybe you only need to use the right URL in the referred methods: in fact depend on the app that we are developing, we can follow one or one other approach, use (to share it) some variables, etc.


DecSoft (In thread: PouchDB/CouchDB offline first application example)

Hello Peter,

I sent to you a modified version of your sample app, since they contains some syntax errors, Peter, as the debugger already told you. In addition to the refered syntax error, I find that you are trying to mix AB code and Javascript code: there is no problem to do something like this, but, please, take a look at the External Javascript tutorial of the help file, in order to learn how we can deal with app's global variables, for example, from pure Javascript code.

Take a look at the modified app that I sent to you and try to continue with the work, Peter, and, if you find any specific problem, just post here or open a new thread in this support forum, and, we will try to help you.


DecSoft (In thread: Error en el fichero Build.js)

Hola Jordi,

El error aparece en el archivo "build.js", pero, por algo causado en "app.js". De hecho el error es una URL, y, si la sigues, verás lo que está ocurriendo. Pero puede deberse a varios motivos, eso sí. En fin, tienes que intentar ser más específico y tratar de acotar en qué momento o en base a qué se produce el problema. Sigue la URL a ver si te dice algo e intenta acotar el problema lo máximo posible. Si me envías una app que reproduzca el problema estaré encantado de intentar ayudarte.


DecSoft (In thread: Enhance the designer contextual menu)

Hello Paolo,

I think I understand what you mean. Well, certainly, the designer controls' contextual menu do not take care right now about specific controls variables. That is, the menu changes accordingly the selected view, control, etc., (basically disabled or enabled some menu items) but, do not offer specific items for specific controls. Let me to think about it, Paolo, can be good, but, I am not sure how to implement it right now and have not too much time, on the other hand!


DecSoft (In thread: Problems with the compiler cache)

Thanks Paolo! :-)


DecSoft (In thread: Problems with the compiler cache)

Hello Paolo,

You are completely right. Please, upgrade your AB copy: the compiler cache has been improved, and, even when probably we can see more possible improvements in the future, now works better than before, for example, if we change control's properties.


DecSoft (In thread: New App Builder release 2019.17 (02/25/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: Control the direction of the Dropdown control)

Thanks Amin! :-)


DecSoft (In thread: Control the direction of the Dropdown control)

Hello Amin,

Please, upgrade your AB copy. Take a look at the news here.


DecSoft (In thread: New App Builder release 2019.16 (02/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: New App Builder release 2019.15 (02/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: Some question about the AB themes for our apps)

Hello Paolo,

Certainly, not all the themes are equals, in the sense that some of them have a smaller font size by default, etc. This mean that maybe we can't use all the themes with the design of our apps, or, that we must modify the themes if we wanted to use it. However, testing the NavBar sample with the "SuperHero" theme, I can't see any problem... or I am missing something...

P.S. The available themes are placed in the "[User Documents Folder]\AppBuilder\Themes\" folder. We can modify these themes and even add more themes (basically CSS files) on that folder, in order to be available to use it in our apps.


DecSoft (In thread: New App Builder release 2019.14 (02/16/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

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