Hello Ryan,
I think the problem is in the condition. You must use "&&" (AND) instead "||" (OR), because, in other case, we probably always fall in that condition and then the "hasNetwork" variable become false. So the condition must look something like:
About to copy the APK file and then install the app in the device... you can avoid that if properly connect the device via USB, and then use the "Run" BAT file.
Hello Ryan,
It's another way, of course, but, please, don't use the server... if you want to use the client... as you can see above, it's possible to create a date variable from an arbitrary value, and, then it's also possible to show that date variable in certain specific format. It's possible, so, if you find any trouble... just post it here and we will see...
Hello to all,
Here is a new DecSoft App Builder alpha release, with the below changes, fixes and enhancements:
Hello Ryan,
I think we are missing something here, because, in fact there is no issues, that is, take a look at the below code:
This time we take in consideration both date and time, so, what "[FormattedDate]" stores is "2019-09-15 21:22:23". In other words, it's perfectly possible to create a date variable which include the date and the time.
Maybe I confuse you because I mention above that we can't create a date variable only with the time... and this is truth, that is, only with the time we can't create a date variable, but, we can create date variables (as you can see below) that stores both date and times values.
Once we have a date variable, we can use several available actions to extract the days, month, etc. Or just to show the date variable in certain format, like the code above does.
Hello to all,
Here is a new DecSoft App Builder alpha release, with the below changes, fixes and enhancements:
Hello Ryan,
With "NewDate" you create a new date variable, and, since you do it using a value, you specify the format of that value, in order to properly create the date. Once you have a date variable, and, if you want to show it, then you can use the "DateFormat" action.
I think the problem here can be the time format, that is, probably we can't create a date variable only with time information / format. So, if we can't create the date variable correctly, we can't format that non valid date variable.
Hello Ryan,
A couple of things. To format a date we must create a date variable first, so the way is the below one:
The other thing is related with the "ObjectGetProp" action. It's no problem to use it, but, for your knowledge, it's also possible to directly access the object properties from the server's response, so, it's possible to write something like the below one:
Hello Ryan,
Yes; a real device is probably the best way to debug things that cannot be debugged in the browser(s). Not only more faster, but also better, because, as we can see here, the emulator don't support certain kind of stuff, that the device support.
Remember to install the Google USB drivers (if needed) and just connect the device to the computer. Then use the "Run" BAT file and the app must be automatically launched in the device after has been successfully compiled.
Hello Ryan,
Humm... probably the plugin can't work in the emulator. I just test the action and the plugin here in an Android device and works as expected, so, probably you can see it also working in a real device.
Hello to all,
Here is a new DecSoft App Builder alpha release, with the below changes, fixes and enhancements:
Hello Ryan,
You are right, that action relies in the Cordova Network plugin. And yes... in principle, must work. Are you executing that code after the app "Ready" event? I asume that yes (that is mandatory, since Cordova stuff is available in that or after that event). Can you please try with an "Alert" that just show the value of the variable that you pass to the action? So we can discard some possible mistake in the condition.
Hello to all,
Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:
Read the entire product's history
Hello to all,
Here is a new DecSoft App Builder alpha release, with the below changes, fixes and enhancements:
Hello Bryce,
Right now we are really, really busy, preparing the first public release of the new DecSoft App Builder, so, it's not possible to promise nothing right now, and, it's not our style to lie to the people saying "yes" to all... without the intention to do nothing...
After the publication of the new DecSoft App Builder, we want to improve DecSoft HTML Compiler: it's our intention, but, we don't decide what exactly we want to do. So, at that time, we will take a look at SQLite and what we can do around it.
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.