Hello,
I forget to mention various app samples that can be useful here. For example, the "Scaled" app sample can be useful. And also the "Calculator" sample. Take a look at the "About" view of the "Calculator" sample in both "portrait" and "landscape" orientations:
In the above case we don't use any app's event nor action, but just certain CSS media query into the app's "Inline CSS" option:
The above CSS code is applied only when the orientation is "landscape", and, in this case put the about image at the 50%, reducing in that way the image is scaled and obtaining a better apparence (subject to opinion).
Hello andynhoo,
There is not a unique way to achieve this kind of "scale" issues. We can, for example, use the app's "Orientation" event, and the "[App.Orientation]" variable, in order to react when the "landscape" mode enter in action. We can then set another image's sizes using actions like "SetStyle".
We can also use something like above but also can use CSS media queries, the "[App.InnerWidth]" and "[App.InnerHeight]" variables with the "Resize" app's event, etc. Remember we can also use actions like "SetViewSize", "SetAppScaled", etc. Instead of resizing the image we can use other image, etc.
About the "back button", take a look at this forum's thread and also to the "ConfirmExit" application sample. If you have any further question, please, don't hesitate to post it here or open a new forum's thread if the topic is not related with this one.
Hello,
Take a look at these app samples: "External" and "QrCode". In this last one we can see how to use a thirdparty Javascript (qrcode.min.js) and then how to use that Javascript stuff from our application, in this case, to generates a QR Code image.
Hello,
Database... we can use the local storage for our application's data: options, preferences, etc. Since the local storage wanted for strings (to be saved) and we can serialize JSON objects to strings... then we can save JSON data into the app's local storage, which is something useful. But we can also saved the information in another possible way, using the same local storage.
Certainly, client side databases is not widely supported, then, if we need real databases, probably we want to use server side ones, then no matter if we want to use MySQL or any other database engine, since our client applications are abstracted of that.
Hello,
because uses local memory, you can not even create its own JSON files in a directory eg files app?
Browsers don't allow a web application to save their data in the system file system. Some technologies may appear in the future, but currently they are not wide supported by the browser's vendor. If we plain to use the application in a mobile environment, then we can use the Apache Cordova's "Files" plugin (take a look at the "Files" app sample) and then we can store the JSON text in to files without problems.
Hello,
I test new sample "Agenda" app sample.Where the path json file save? thanks
There is no path at all, tin, but the application uses their local storage to save the JSON data.
Hello,
Please, Walter, sorry any inconvenience and, when you can, send me an application in which I can reproduce the problem. Then I will take a look in order to fix it as quickly as possible.
Hello to all,
Update your AB copies and take a look at the new "Agenda" app sample:
Add the new Agenda app sample, which simulates an small agenda to save our contact's names, mobile numbers and notes. The point of this application is they use JSON to store the contacts' data, uses a Report control to shown the contacts information and finally uses the app's local storage to maintain the data between application executions.
Hope they can help anybody about JSON, the Report control and the app's local storage.
Hello Walter,
Yes; certainly could be the problem, maybe SelItems contains more than one item, and, on the other hand, what happend if no items are selected? Anyway may you can test it by place an "Alert" in your code, something like this:
This can be a quick way to look into the "[searchme]" variable contents...
Hello,
Waiting for the error capture, which probably can help here. Certainly the "Build" button must creates the BAT files, and, in fact they works like expected here: there is no reason (I can imagine right now) to work in one case and not in other...
Hello Walter,
I want to take a look at this, but, currently duplicates are not supported, then if a duplicate items appear the right error is raised. What you can do (I think is possible, since duplicates items are... equals...) is to creates another Array without the duplicates items (using "ArrayIndexOf") you can know if an item is already in this second Array, and then assign that Array to the control Array variable.
Hello,
Maybe you found a bug in certain scenario, or maybe the problem is related with some "case sensitive" mistake. The below code works for me, then, try to investigate a little more, for example, assert "[searchme]" must be as is and not "[SearchMe]".
Hello,
I can't here the right environment for the Windows platform, however, trying to follow your steps, unfortunatelly I can't reproduce the error. Note that the Debug button (F9) does not create the BAT files, since they are not needed to debug the application in App Builder. The BAT files are generated when we use the Build button (F8). Maybe this is what happend when you don't get ready the BAT files?
On the other hand any error message can be good here 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.