Hello Michael,
There are various sample apps that deal with HTTP calls, and, one of them, the Database sample, even when appear quite simple, it's a complete CRUD app, which allows to Create, Read, Update and Delete data from a server database. Basically the app made HTTP calls and deal with the server's response. So I think you must try to be a bit more specific, around the possible problem that you get.
You talk about HTML tags, Javascript, Ajax... and yes... we can use these stuff in AB, since we are talking about HTML, CSS and Javascript apps. But I am not quite sure that this is your problem. You mention this URL: "https://cherithwells.com/tester.php", and, certainly that URL offers certain JSON response, however, in fact is a wrong response, which can cause problems to be processed:
As you can see above, the response is a JSON object, but, just at the end, the "worker!" string appear... well... that string in that JSON response probably cause problems to be processed. On the other hand, process the "{"a":1,"b":2,"c":3,"d":4,"e":5}" response can't be more easy. Since the response is a JSON object, we can directly access to that object properties, for example:
I hope the above can help you in some manner, but, please, go ahead if you have any further question.
If the above didn't reply your question, please, let me know, Michael.
Just post here if you have any specific problem or question.
Hello Michael,
I think that can understand what you wanted and I will try to prepare something like a small video tutorial to follow your proposed steps. I will do it as quickly as possible.
Hello Michael,
The problem is the time... and that I am not very good with videos, in fact, I want to create some of them, but, english is not my first language, so I have found some difficulties... but in fact you talk abou a CRUD sample app... and what is exactly the Database sample app already existing! Is a sample app that show how we can Create, Read, Update and Delete records from a server database.
So... the point can be that you take a look at that sample... and try to understand it... and of course post in the forum if you find some problem or need something about: but in that case we deal with specific things, more easy to achieve than general ones. For example, I am considering a possible video tutorial (if can have some time to do it!), but what I am thinkin is not a CRUD tutorial... not right now... :-/
So why don't take a look at the Database sample app, step by step, view by view, control by control, and therefore you ask here if you have some specific question? I will be happy to help when possible.
Hello Michael,
Ok, let me to think about and then I will try to help you as quickly as possible. :-)
Hi Michael, here you go the files.
Change the URL on every HTTP controls and the BDD name, user and password in every PHP file for your BDD on your server.
https://asleycruz.com/SampleBDD.rar
Tested in a BDD with 3 columns, id, name, age.Hi David, the genius :P
Hello to all,
Thanks for your work and for share it with us, Asley!
Hello to all,
Asley is right: remember that the AB internal debugger / HTTP server don't support PHP, so, if we want to use a PHP script, we have two possible ways: move the compiled app into an HTTP server that support PHP, so we can use local paths for the required PHP scripts. Or the other possible way: provide the right URLs for the required PHP scripts, so the app can run in the internal debugger / HTTP server, but the PHP scripts run in a HTTP server with PHP support. In both ways we can get it working.
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.