Ok David, Thanks.
I think what i have to do is execute the get HTTP request and if response == success then file exist else i will consider nothing exist. Listening to the success response can solve my solution i think.
maybe this will be less complicated for me.
Hi David, i think at my level of using AB, i will hold the implementation of downloading a file, cos its really though for me.
But can i check if a file exist on the app server? what technic i can use to check that? i know some http control can do it but how?
What i want is AB to check if file exist, then reply with True or False - so that i can use that to decide an action. i want this check to be performed for each installation.
Thanks.
Hi there.
I'm sending data to a server, and the server passes a json object back into httpresponse.
I'm trying to assign that response to a variable..
to use something like data.username
Also tried
Or are the only way to work with the object, to use it as is? ie:
Cause if I use it like that, I get "undefined"
Anyone want to help this newbie out?
ps. The JSON data from the server looks like this:
Which I believe is good Json data?
Hi,
How to set the App TextDirection from ltr to rtl with Codes ?
thanks .
But David. is there anywhere a file can be download to in the app? i just want a file to be download to a location on the app then i can do something with it.
i also want to know if i can check if the file does exist.
Is all this possible?
and how do i do it.
Im trying to get a file downloaded from app server to the app application directory such as
from server: http://www.mydomain.com/group.html
to this location
/www/app/files/group.html
what is the best control to use and how?
Thanks in advance.
I want my app to download a folder containing other folder and files in it to my app local storage such as resources:
App/Files/resources
If possible should download to a temp location and move it to final location and delete it from temp location.
I know this can barchieved easily with a click of a button. Will appreciate steps.
Thanks.
Ok. Will try and get back to you. David
That is not what I meant. See my example
If "NowDate" "==" "17/11/2016"
//do some action
Else
//do nothing
EndIf
How do I get the current date on a device and store in a Var, then do the comparison .
Thanks david,
yes i know about java script sample , but the problem is i don't know how to set a special image control popovertext.
this code work fine :
i know this code is false but i want to do something like this (there is many pictures so i need to set they by ID):
hi every one,
there is many image controls in my view1 and their name is : Image1 Image2 , .....
and want to set their PopoverText , so i create a function with it's own arguments [ID] , [N] and call it , but this not work.
Thanks
Is there a way I can check if a current date equals 17/11/2016 then do this else do thing. Any sample here will be appreciated.
Thanks.
Hi There David.
Just wanted to let you know that this problem was what I described as the "squeeze" problem.
I think since english is not my first language - I had a problem in explaining.
Glad to see it resolved.
Thanks to you and tin!
Keep up the good work.
Hello David.
Thanks for getting back to me!
Yes, my question was about the image control.
My original question should have been...
If I look at the value in Image1.Src, it still have my pre assigned image in "test.jpg", although I can see the new image.
I'm looking for the base64 data that are saved somewhere. i assigned it to Image1 via the
'SetAttribute "Image1" "src" "data:image/jpeg;base64,[Camera2.Data]"'
and I know it worked, since I can see the image.
Now I want to do some work with that base64 data in javascript. I want to convert it to a jpeg.
So my question is: What property/entity do I pass to my javascript?
Something like Image1.Base64Source ?
My javascript function would be something like :function b64toJpg(b64Data, contentType,) { ...}
I want to upload a jpeg rather than base64 - since base64 data is much bigger...
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.