No problem! :-)
No problem! :-)
Hello Danny,
Thanks for your kindly words. Yes; we know that our products documentation (specially App Builder) can be better or in other most effective way. Here in the forum we have also post like this, for example, and probably others if we search for it, because I remember some of them can may can help.
Hello Peter,
Talking about some string inside a Report, I am not sure if we can use a bit of CSS to do what we wanted, probably yes, but, also it's possible to use a code like the below one, inside the Report's HTML:
Above you can see two "span" elements. If the "Record.Name" is less or equal to 4, then the Record.Name is printed out as is, in other words, the first "span" appear visible, and not the other one. On the other hand, if "Record.Name" is greater than 4, then the "Record.Name" is truncated using the "substr" Javascript function, so in this last case the second "span" is show, and not first one.
Hello Peter,
Don't hesitate to post your questions: we try our best in order to help! :-)
Hello Peter,
If the Report Order is enough... it's enough... in other case we must work with the data before assign to the Report, ordering the variable in the proper way, maybe by fill an Array variable with some records' fields... and order that Array variable (using Javascript), then use that list of fields to order the entire records... something like that... sounds possible... but if the Report Order is enough... maybe we no need to go ahead.
Hello Peter,
Maybe it's not possible, but, you can consider some server's help too. So, for example, maybe it's possible to perform queries over Firestore from the app's server, so the server can perform at least some kind of "complex queries", returning to the app the appropriate data, already ordered, etc.
If not, then we are talking to made the work in the client side, and, maybe it's possible too, but don't feeding the Report until all the queries become executed, so we have the queries' data, and therefore maybe can do some kind of operation with it, before feed the Report's data.
Hello Peter,
So, if I understand well, what you are doing is to share some code with us? Everything working? :-)
Hello Peter,
Sorry, but I need to ask... what is the problem exactly and what is the expected results? We are talking about fill a Report's Data variable? Are you try to fill it and get some error? There is possible to execute a callback or function after all the queries are executed / returned? If so... maybe it's possible to save the data in certain variable and use it in the "final callback" function. Maybe it's possible to just fill the Report's Data variable "step by step", when the queries finished... I hope that some of these questions can help to finally solve the problem!
Hello Danny,
I am not an expert in the store (now I just develop the apps!), but, what App Builder provides are various BAT files (talking about Windows, also creates SHELL files for Mac OS, to be used in the same way and for the same purpose). These files names are "debug", "run" and "release".
When we execute the "run" BAT file Apache Cordova generates a debug APK of our apps, and, if we have a device connected to our PC (or an iPhone connected to our Mac OS), after the APK for Android (or IPA for iOS) is generated the app is launching in the device.
To do the above we just must connect our device in the computer, if everything is ok (the drivers are ready, etc.) we can use the "run" BAT to compile and launch the app into the device, so this is the best way to debug the app in a real device.
If we have no devices connected and execute the "run" BAT file, Cordova try to launch the device emulator configured in the Android SDK / Android Studio. I told you this is the best way to debug the app... but talking about the device... because normally we can debug the app in a browser, which is more easy and fast. Only when need to try something that only works in a device... we need to test it in the device, of course.
Then we have the "debug" BAT file (or SHELL file). Executing this Cordova prepares a "debug" compilation of our app that we can copy to our device or another, etc. It's the same than "run", except that with the "debug" the app is not launched in any device nor emulator.
Finally we have the "release" BAT file (or their SHELL version for Mac OS), and, when we execute it what Cordova prepares is a release compilation of the app. This generated APK is ready to be uploaded in the Android Store.
In order to get a release, if I am not wrong, we need to sign the APK, so you need to fill the App Options -> Cordova -> Android -> Signing. Once you fill the edit boxes that you can see there, App Builder generates the right JSON file, which Cordova uses to sign our apps.
Probably I miss something that you can be interested in, so, please, go ahead if you have any further question, and, I will try to help you as best as possible.
Hello Danny,
No problem at all! Note anyway that the "CloseWindow" action is intended to be used only if we need to take control of the opened window. In fact, the last argument of the "OpenWindow", give us an identifier that we can use with the "CloseWindow", but for other things too. However, the "CloseAction" window only works in the browsers, not in platforms like Android, iOS, etc.
Hello Danny,
Very good! But take your time if possible! Worries are good for nothing! :-)
Hello Danny,
Yes; remember to try the app in a browser like Firefox, with the developer console opened: unfortunately the AB debugger can't tell us about requests and the possible success or error on them, but the developer console of Firefox, for example, can do it, and, in fact,can tell us lot of other things, so we can use the internal debugger for take a quick look, but, if wanted more information, we need to run the app in a browser like Firefox, and we can do it just by press the right IDE button. So just temember to try the app in that way.
You're welcome, Danny!
Hello Danny,
If you run the app in a browser like Firefox, with the developers console opened, probably you can see what happen. Probably it's a CORS related issue: the server must provide the right CORS permissions that allows the app to reach the JSON file.
You can take a look at this website, since the possible configuration of the server depend on the server itself, it's not the same for all the posible servers.
If you can't configure the server to provide the right CORS permissions, it's probably possible to do it using some "bridge" for the JSON file, so, for example, we can prepare a PHP script, who read the JSON file and serve it to the app: then we can set the CORS permissions in the PHP script.
You can see various examples of setting the CORS permissions from PHP scripts, since are used in various app samples, mostly "Report*" samples. Anyway this is the code that can be used, more or less:
Hello Ryan,
The controls that we have "out of the box" don't support something like that. We can know the "index" and the text of the selected item, so we must do whatever thing with that information. Probably it's possible to create something like that using the HTML Control and the appropriate HTML markup and Javascript code, in a similar way than what is show in this post.
If you want to use the "out of the box" controls, it's up to you what to do, based in the data that you are using. So, once you know the item index or the item text, you can search in certain array or object to match that item and get the rest information about the item that you need.
I am not sure if my explaintaion is very good... so please, go ahead if you have any further question.
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 some useful cookies to store your preferences.