Posts by DecSoft

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

DecSoft (In thread: How to send raw JSON data with the HttpClient control)

Hello Joshua,

Ok. I will take a look at this, but please, Joshua, if you have any specific question, post it here! :)

Basically we can use the "SimplePost" action to perfom an HTTP POST call from our application including one or more key/values. The SimplePost's action editor we can see in the below image, allows us to place one or more key/value pairs in our HTTP POST call in an easy way:

In the above case the server receive two keys: "MyKey1" and "MyKey2", with their two specified values: "MyValue1" and "MyValue2". The server response are saved into the "[MyResultVariable]", but, as you know, there is not available just after the "SimplePost" action is executed, because they are executed in an asynchronous way.

And what happend if we wanted to know the server response of an HTTP POST call after perform it? If this is what we wanted the "HttpClient" control appear to the rescue. This control allow us to perform HTTP calls, also POST calls, and they have two events "Success" and "Error". Once the HTTP call is made, one of such events are fired, then we not only can know the server response, but also if a possible error occur.

How we can set the "key/value" pairs if we use the "HttpClient" control? Using the "HttpSetData" action we can do that. The below image show to us the HttpSetData's action editor. As you can see, we simply must specify the HttpClient control we want to use and the key/value pair we want to establish.

Once our HTTP call is prepared, we just call to the "HttpExecute" action to perform it. One interesting thing to note is that in both cases (by use the "SimplePost" action or an "HttpClient") our key's values can contains variables, and, if this variable is an Input File value, the user choose file is uploaded to the server along the HTTP call. We can take a look at various App Builder samples which deal with this like the "SimplePost", "SimpleFile" and the "HttpClient" samples.

Hope this information can help! Please post here if you have any further question Joshua!


DecSoft (In thread: A little of PHP (server side language) and the "sprintf" function)

Hello!

Hi David,

Thanks issued solved.

AB Ninja rock!

Glad to know!


DecSoft (In thread: A little of PHP (server side language) and the "sprintf" function)

Hello Ade,

The "feedback.php" script including in the Calculator sample is the below one:

As you can see we play with response codes, then we can use such response codes our the app.

About the email validation, I note that the variable can become "undefined", which is not "" (empty) but a different thing. Anyway, we always must validate the user's input also in the app's server.


DecSoft (In thread: A little of PHP (server side language) and the "sprintf" function)

Hello Ade,

Two things to note:

1º Your script must respond with an "http_response_code(200);" to avoid the Http Client's Error event to be fired.

2º Take care with the email input. Since they are an email input, for example, Internet Explorer put a value of "undefined" if the input's value is not a valid email address. May you can use the IsEmail action in the application.

Hope this information can help to solve your problem!


DecSoft (In thread: A little of PHP (server side language) and the "sprintf" function)

Hello Ade,

Please, can you provide me with a little application sample in order to try to reproduce the problem here? I can't figure how to help you without an small sample Ade...


DecSoft (In thread: How to sign our APK files to be published in the Google Play Store)

Hello!

PERFECT!

That did it. Awesome how great your software and support is. I will SWEAR by it and use it for all mobile and HTML5 programming.

Mike

Thanks for your kindly words Mike, I appreciate it! :)


DecSoft (In thread: How to sign our APK files to be published in the Google Play Store)

Hello Mike,

Yes; you have reason sir, we must increment the "version code" in the Android platform on every application deploy/upload to the Google Play store. We can do it from the app's options dialog as you can see in the below image:


DecSoft (In thread: Can I set report control sort data in a asc or desc way?)

Hello Joshua,

Please, update your AB copy and take a look at the new Report15 sample:


DecSoft (In thread: Can I set report control sort data in a asc or desc way?)

Hello Joshua,

If fact we can use the "Report.Order" variable to achieve that. If we prefix this variable content with a "plus" sign, then the order is performed in an ascending way. If we place a "minus" sign the order is then in an descenting way.

I will to prepare a Report sample around this, since certainly this is not refered in the help file, which of course must be updated accordingly too.


DecSoft (In thread: How we can include ads only in some specific app's views?)

Hello Kasito,

How are you shown the ads in your application? In fact, if you use the AdMob plugin (like in the AB "AdMob" included sample) we can hide/show banners just when we wanted, or also shown interstitials just when we wanted. Then, if we don't want to shown the ads in certain view we simply can do it, simply by not using the "Show" banner or interstitial methods.

Or maybe I'm missing something Kasito?


DecSoft (In thread: How to change backgroud row click whent click row in report control?)

Hello Joshua,

We can use the the panel related CSS classes of the Bootstrap CSS framework and maybe our own custom CSS stuff. For example, to vary the aspect of your refered sample "panels" we can use the "panel-warning" CSS class instead "panel-info" CSS classs.


DecSoft (In thread: How to use the OAuth protocol from App Builder apps?)

Hello Joshua,

Ok! Please, let me know if I can help in something. :)


DecSoft (In thread: How to use the OAuth protocol from App Builder apps?)

Hello Joshua,

I am playing a bit with this OAuth question and finally discover than probably we can authenticate our applications using such protocol just by the appropiate HTTP calls. However, when I try with the Twitter API, I found the CORS problem appear. Which this means? Well. In fact our application must connect to our own server in order to deal with the Twitter API.

Then we need some kind of "bridge" in our own app's server in order to overpass the CORS limitation, and, since this is like that, yes, we need a way to authenticate with the Twitter API via OAuth, but not from our application code, but from the server code. Our applications (as always) just must to perform the appropiate HTTP calls and take care about the server responses.

In principle this latest one (organize our server to perform OAuth autentications) can be perfectly achieved, since we have OAuth libraries availables for use with many languages, for example, here is a guide for OAuth using the PHP language, and we can found lot of more stuff in GitHub, for example.


DecSoft (In thread: How to use the OAuth protocol from App Builder apps?)

Hello Joshua,

Honestly I never try with OAuth, however, I think we can achieve that by using HTTP calls from our apps. So please, do you have some service or API in order to try it? Or may you try it right now and find something wrong or certain specific problem?


DecSoft (In thread: How to change backgroud row click whent click row in report control?)

Hello!

It very useful!!Thanks.

You're welcome tin! :)

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