Thanks Paolo. :-)
So you already sent to me the sample app that you mentioned? I did not receive nothing yet...
Thanks Paolo. :-)
So you already sent to me the sample app that you mentioned? I did not receive nothing yet...
Yes; of course, I want to take a look if possible. :-)
Very good! :-)
Always thanks you Peter! Thanks for your kindly words!
Hello Paolo,
Maybe this is because the posts do not have an "updated" field? That is, only the threads have an "updated" field right now... I need sometime in order to take a look at this... in fact, maybe the "latest posts" have not too much sense... only the latest threads... and here yes, maybe a list for the latest posted threads and other list for the latest updated threads... again, some attention to this must needed... may I have some free time to do it!!
Hello again,
Just a couple of notes... if JSON is available, this is preferible to XML: we can parse XML, for example, using jQuery (which is included by default in our apps), however, JSON is more friendly. In fact, we can access JSON data like objects in a way than the below:
In other words, we can use the "ObjectGetProp" action if we wanted, but, also can access to simple objects like above.
Hello Peter,
Apparently "HttpSetData" did not work for GET requests. In this case we can use the URL itself by something like the below:
Or may you can / want to change to HTTP POST... then yes, you can use teh "HttpSetData" action.
Hello Paolo,
I know that I miss something... however we can't do something like that, since, certainly we have the HTML of a view in an external file, so, in principle, we can access to it if needed, but, that HTML template of the view is not processed, so, probably we can't work with it.
May you can use a Javascript variable? Then yes... you can access to that variable from one or another view...
Hello Paolo,
Humm... I think so... that is, the "update time" is set to "now" and include the seconds... May you see something rare?
Hello Paolo,
Yes; you can use the below Javascript instead of the "ShowView" action:
Hello Peter,
Please, sorry the delay. And don't worry: this is completely related with AB, to say like that. Please, when possible, try to do the following additions to the below XML:
In the above XML "param-value", add the following: Cache-Control, If-Modified-Since. So, the above XML part must be like the below one:
At this point, save the changes and try the sample app... if you continue having problems, please, change the below XML part too:
You must add again the referred new headers, so the above XML must be like the below one:
Again, save the changes and try the sample app. Then please, post here if that is working for you or not, Peter.
Hello Peter,
You see? For that I place the above link... too many servers, languages... I know how to proceed in some of them, but, for example, don't know how to proceed talking about Tomcat! If you finally got it, please, refer here what you do, so others can get it working too if needed!
Hello Peter,
Apparently it's a CORS issue. If you try your sample in Firefox, for example, with the Console Developer opened, you can see that it's a CORS issue. The server side must set the appropriate CORS headers to allows the request from the app.
Depending on the server that you are using or the language that you are using, you can establish the CORS permissions. This website may can help you.
P.S. Probably you no need to use the "HttpSetHeader", but, this is not related with the CORS issue.
Hello Peter,
No problem! Always thanks you for your support. I am happy to help when possible. :-)
Hello Peter,
If you can figure out how to display the find results in the record then I may stick with PouchDB. [...]
Ok. I sent to you right now your sample a bit modified in order to get the "find" method working. I add a new view "Find" to the app, and a button from the first view that goto the new "Find" view. Once you goto that view, press the "Find" button. Take a look at that button's Click event for the code: I remove something that apparently is not needed.
But more important! The ".then" callback receives two arguments: the first one is "doc", and the second one is "error"... but you change the order of these arguments! For that reason you can't get it working... note also how we can assign the "doc.docs" array variable to the "Report.Data" variable, in other words, we no need to iterate the "doc.docs" array... except if need to do it for some reason.
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.