Posts by DecSoft

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

DecSoft (In thread: The order of the forum's threads)

Hello Paolo,

Finally we add a "thread_update" field in the right database table, so, the threads are now listed by their "update" field. You can see it in the URL that you suggested, but, also in other places, like in the same App Builder's welcome page.

Additionally, remember the below RSS feeds availables in this website, that may you can also use to be ready with the latest updated threads and more:


DecSoft (In thread: The order of the forum's threads)

Hello Paolo,

Thanks for your reply. I understand now. Let me to think about, however, since, to say like that, we are not ready for something like that... we have a "date" field in the database's table, but, not something like an "updated" field. Can be a good thing, so, we will take a look at what is the best way to do it. Thanks for the suggestion, Paolo.


DecSoft (In thread: The order of the forum's threads)

Hello Paolo,

Sorry, but, I need to ask,... do you refer to the help file of App Builder? Or the website home page, maybe the product's welcome page?


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

It's ok!Thanks for your reply, Peter. :-)


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

Hello Peter,

Well... step by step! On the other hand, I want to ask you a question, because I am curious... apparently we use an URL an no other thing to authenticate in the server side, so, what happen if someone stolen that URL and use it by itself? That is, since we are talking about client apps, anybody can take a look at the source code if they really wanted to do it...

Additionally, I can see that PouchDB can be a good solution in some cases, of course, however, don't forget the "traditional" databases in the server side. Certainly, the only problem here (but not in all the cases, since it's depend on the app that we are developing) is that we need an internet connection to reach the server, but, no more...

I supose you already do it, but, can take a look at the "Database" and the "Login" samples, Peter. Note how the "Login" sample try to be an example of how we can serve private information to an specific user, that is, how we can authenticate an user before send to it any private information.


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

Hello to all,

I am not sure if you finally got it or not, Peter?


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

Hello to all,

But we are talking now about a different end point or URL. The sample that you link in your previous post uses this URL:

But the above URL is not the same than the used in the previous sample. And that's the point... maybe when you use the thirdparty to create a database, it's a way to configure the CORS permissions, the authentication, etc?

One thing that I note is that if I use the HTTPS protocol with your yesterday sample URL, the error is not related with CORS, but with the authentication...


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

Hello to all,

I do have a local CouchDB server installed but have been working with IBM Cloudant and it is working on several other downloaded html/js examples that I have downloaded and configured

Are you talking about the "sync" method? That is, certainly the sample that I prepare yesterday works also as expected using the latest version of PouchDB, however, what do not work is the "sync" method... but your HTML sample do not use the "sync" method, if I am not wrong... for that I ask if you already try the "sync" method in an HTML app... which is that finally AB apps are...


DecSoft (In thread: Is possible a completely offline webapp?)

Hello Paolo,

A webapp requires an internet connection. The app can avoid some server's calls by use the local storage, but, it's requires internet connection in order to download the main app's files, for example. So, in principle it's not possible to have a webapp completely "offline".

You can compile the app with Apache Cordova and therefore get an APK, for example, to be running in the Android platform. This app / APK no need internet connection... except if the app requires it to retrieve some information or stuff.


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

Hello to all,

You touch a good point, Paolo. Honestly I don't see that the version that we are trying is not the latest release. Trying with the latest release, certainly I can note a couple of things:

1º Apparently the library don't work in Internet Explorer 11, that is, don't work in the internal AB debugger, since it's based in Internet Explorer 11.

2º However, the stuff works as expected in Firefox, for example, and, trying the "sync" method now, what we get is a different error: apparently the thirdparty server don't set the appropriate CORS permissions.

The error that appear now is different than the first one, but, I am not sure if the thirdparty service can be configured in order to set the CORS permissions than the app needed.

If the above is not possible, probably it's required to prepare a bridge in our own server, which communicate with the thirdparty server: maybe this is not so easy, since I certainly don't know how PouchDB works internally and what is sended to the thirdparty service.

On the other hand, the CORS permissions problem maybe masks another possible errors, that is, once the CORS permissions problem is solved, maybe we get another possible errors, that is, once the connection is allowed. But anyway the CORS permissions problem must be solved firstly.


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

No problem! I am sure that finally you can got it. :-)


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

Hello again,...

I want to add something that I think I forget. I mention that the PouchDB appear more or less easy, and, it's truth from some point of view, but, that API is also more or less complex (like any other API, of course), so we can / must deal with callbacks, for example, that, depending on our app, we need to use or not.

For example, and, as you can see in the sample, the "sync" method have various events or callbacks that we can / must use. And the same can be said about other methods, like who insert new registries in the database: this callbacks have their own arguments, etc. We can or must use that callbacks, arguments, etc., in order to properly work with the database.

We can't expect, for example, that everything work like expected, so we must take care about the available errors callbacks, the available error codes, etc., in order to assert that the app's user is informed if a registry can't be inserted, if we can't sync to the database, etc., etc. It's a question of time of work, to study and finally handle the PouchDB API, and also how to present or require the user's input from AB, etc.

So take it with time, Peter. :-) And, of course, don't hesitate to post in this forum if you have some specific problem.


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.

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