Hello Samuel,
We can continue talking about, because, in fact App Builder allow us to take several approach to deal with this question. We can use CSS (with CSS queries), we can use Javascript (or App Builder actions), we can deal with the entire app's size (with the "SetViewSize" action, for example), we can also deal with specific controls (with the "SetStyle" action, for example), and we can deal with automatically scaling applications or fixed applications: even in runtime we can change the scale to fixed and viceversa with the "SetAppScaled" action.
For example, a possible approach to be ready with small and larger screens is to limit the app's size in larger screens, but maintaining the app automatically scale option. I updated App Builder right now to enhance the Calculator application sample. The Calculator sample scales well in small screens, and now also limit the maximum size for larger screens (see the Master View Show event and the app's Resize event too). In this case we no need to worry about specific controls, and the application scales and looks well in small and larger screens as you can see.
Hello Samuel,
Generally we must start based on a "mobile first" design. This means, for example, we must limit the number of controls per view, because we can place lot of controls in larger screens, but not in smaller screens. For example, supose an application that allow us to create, read, update and delete from a database. Instead of create one view with all the possible controls to do it (something that in a larger screen can be considered) we can use separate the tasks in various app's views.
On the other hand we can take the decision to work only for larger screens: then probably the best way is to not scale the app's views and controls. We can simply use certain common resolution and work in an application like that. Another thing to take in consideration is the usage of CSS queries and actions like "SetStyle", "SetViewSize", "Show", "Hide", etc., in order to adapt some controls according to the screen size, for example: we have app's events like "Resize" that can help us to achieve this.
Right we can also prepare certain app's views for certain screen sizes, but this is not doing automatically: we must use some app's event or app's view event to, based on the appropiate app's global variables ([App.InnerWidth], [App.InnerHeight]) redirect to one view or another. I mentioned the CSS media queries, but I will mention it again due to their power too. CSS media queries allow us to apply certain style(s) on controls depending on the screen size and without any Javascript nor App Builder's actions involved.
Take a look also at this help topic Samuel, and please, post here if you have any further question or comment about.
Hey!
Thanks very much edunt! Happy New Year to you too! :)
Hello Tonym,
In order to append JSON data or just play with JSON data (editing, adding, removing, etc.) using PHP there is only a way that I know and it's to decode the JSON file in order to get the saved structured data. Play with that data and, when finish, encode it as a JSON string and save to the file. All of these are based in the "json_decode" and "json_encode" PHP functions.
Said that remember that JSON can be very good to send and receive data from and to our applications, but we no need to store the data as is in the server side. In few words, we can save our application data in a server database, for example, and, maybe, send JSON data when the application requires someone, or use JSON to receive data from the application. But not necessarily store that data in a JSON file.
About the other question, that is, how to prepare an UI to send data to the application server, in fact there can't be more easy. You can take a look at several samples like the "HttpClient" one. We can show Inputs controls (several of them are included in App Builder like Text Input, Number Input, Date Input, etc., etc.) to the application user, and then just prepare the HttpClient to send the appropiate input's values to the application server.
Once the server receive our application HTTP call they can reply with the appropiate response, which is received by the application using the HttpClient control Error or (more commonly) Success event. Then we can do whatever we wanted with the server's response. And of course the server previously do whatever we wanted with the received application's data, like save it into a database, etc.
Happy New Year to you too Tonym! ;)
Hello to all,
No problem! It's good to know how we can install some specific version of Apache Cordova edunt. :)
Hello to all,
Notes:
This issue is solved in `cordova-android 6.1.0` but if you try `cordova platform update android` at this moment doesn't update to `6.1.0`.
Run
```bash
cordova platform update android@6.1.0 --save
cordova platform rm android
cordova platform add android
```
to solve this issue.
If you suggest to install Cordova 6.1.0 version, but, the icons bug is not in the 6.3.1 version... it's not better to install the 6.3.1 version? I just asking edunt... :)
Hello to all,
was my license updated too?:cool:
Your license is also upgraded Joshua and you can also find it in your DecSoft's customer area. If you have any problem while login or something else please don't hesitate to post it here or just contact me. :)
Hello tin,
lol I did not read that email.I think it was your ads. :D
Sometimes (not too much times!) ads includes additional useful information! :D
Anyway, I place above some instructions tin. Your customer name (login) is very large (you know) but is valid. Once you login into the DecSoft's customer area you can also change it if you wanted. Anyway tell me if you have any further problem.
Hello tin,
Ok! I know what happend... you are trying with a license which is now outdated. What you must to do is to login into your customer area in order to get your upgraded license data. Here a little instructions about how to login in your DecSoft's customer area:
[...] To upgrade your licenses or download outdated releases you must enter in your DecSoft's customer area using your own customer's login, which is based in your customer's name without the email address.
For example, supose your customer's name is "My Name (my@email.com)". Then your DecSoft's customer area login must be "myname". If your name is "Peter Parker (info@spiderman.com)" then your login is "peterparker".
Folow this link to enter in your DecSoft's customer area:
https://www.decsoftutils.com/customer
Note that the first time you try to login in the DecSoft's customer area your password doesn't exists. You must use the "Reset your password" button with your customer login and email address, then you receive your password in your email address.
Hello tin,
It's quite rare: your license is upgraded and I try right now with your license data and works like expected! Please be sure you use the right customer name (including the email address). If you continue having problems just tell me in order to try to help you.
Hello Kasito,
Then, one of the possibles ways, can be to remove the possible spaces before the "IsAlpha" test. You can try with the StrReplace or StrReplaceAll actions.
Hello Kasito,
Hi David
Your sample works great, but one issues is that - when i use a First and Second name for example; Kaase Gbertyoh.
The script does not support the space in between the two names.
How do i figure this out? cos i dont want to use different control for each name.
Tanks
What do you want to validate in something like "Kaase Gbertyoh"? The input's length? Something else?
Hello Kasito,
App Builder provides several "validator" actions like "IsEmail", "IsAlpha", "IsNumeric", "IsAlphaNum", etc., etc. You can take a look at the "Validator" application sample to view lot of these actions working. If you no need these actions maybe you can use the "IfEx" action to "validate" more than one input at the same time.
However, if you need to use these actions (for your convenience) a probably way to validate more than one input is just to proceed in a sequential way and by using the "If" action or the "IfEx" action at the end.
I also notice there is no Numeric but alphanumeric. What can won do in this case?
I am not sure if understand but we have the "IsAlpha", "IsNumeric" and "IsAlphaNum" actions, which cover the "only alphabetic characters", "only numeric characters" and "only alphabetic and numeric characters" cases.
Anyway, remember that ALWAYS you send user input data from your application to your application's server, that user input data must be validated again, since a client side application can be defeated, for example.
Hello Tonym,
In fact the refered "HtmlContent" and "Footer" samples works, but let me to explain here a little about this question. The Click even of controls like Push Button or HTML works "as is", that is, we can place in that event some actions to be executed then the controls are clicked or taped by the user.
All the controls exposes an "Event" variable, which is particularly useful here in our case. This "Event" variable (see this article in the help file) exposes some useful stuff, for example, if we place the below code inside an HTML control's Click event named "MyHTML"...
... what we get is a message with the text "MyHTML", which correspond with the name of the HTML control. Now supose we place the below HTML inside our HTML control:
When our application running, if we click on the above link (inside an HTML control) the message that we get is... exactly, "myLink", which is the ID of the element clicked by the user.
Then in few words we can place whatever elements inside an HTML control, and, use the HTML control's Click (or other) event to react also when the user click (or do any other interaction) with an specific element.
If we place an ID (something recommended) for the elements that we add to the HTML control then we can access to the clicked element by using the HTML control's Event variable, just in the way we shown:
In the above case our HTML control is named "HtmlContent1". Taking this all in consideration you already know how the things rules, and then probably it's more easy to you to implement what you wanted.
Anyway don't hesitate to post here if you have any further question Tonym.
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.