Posts by DecSoft

Show threads by DecSoft
3393 posts found, page 128 of 227

DecSoft (In thread: Creating a Header and Footer Navigational Bar)

Hello John,

The new Navbar control of App Builder may can be of your interest.

Upgrade your AB copy now and take a look at the new Navbar and Navbar2 samples.


DecSoft (In thread: Push Notifications Android & IOS)

Hello Romeo,

I use the Apache Cordova push plugin in certain app and they works as expected. May I can take a look at the specific sample when have some time. Can you please be a little more specific about the errors that you found? Are that errors related with App Builder or with Apache Cordova and the Push plugin or maybe other Apache Cordova plugins?

Please, note that I remove the link that you place in the above entry. That link is certainly more or less public, but, I think may are not good for the forum.


DecSoft (In thread: Creating a Header and Footer Navigational Bar)

Hello John,

There are some samples like the "HeaderMenu" and the "Footer" ones that may you want to take a look. Anyway, there are just that: samples. In general, anything we put in the footer or in the header (for example, some buttons or a Container with some buttons) are placed in the footer or the header.

One important thing in AB when we develop for small screens (mobiles for example) is the size in which develop the app. By default, AB create new apps with an 320x480 size. This size is probably the best to "start". Then, we can set the app's Scale option to "True", and our app can look well in smaller screens (320x480) and also in more larger screens.

In other words, is not a good idea to start to develop an app with a size of 800x600, for example. Depend on our app, but, the point is that we can scale from 320x480 to 800x600, but, not viceversa.

About the nav bar of this website, certainly, since AB uses right now Bootstrap CSS 4 (the same used in this website right now), we can use an HTML control to place the code of an navbar, and place the HTML control in the app's views header:

https://getbootstrap.com/docs/4.0/components/navbar/

However, this requires more or less knowledge of the used HTML and probably is not something easy to do right now. Additionally, AB did not include by default the Bootstrap 4 Javascript nor jQuery, which is required in order to deal with that kind of navigation bar.

In fact there is an "Navbar" sample which already implement the above stuff, however, I want to take a look (when possible!) to a possible easy integration of the Boostrap CSS 4 navbar into our apps.


DecSoft (In thread: Possible issue with Label's controls display)

Hello John,

After take a look at the publication sample that you send to me, I can see that you set the "body" CSS of the app to the color "#ffffff" (white). Note that the "body" background is also white. Since CSS works in a cascade style, the Label control inherits the "white" color for their text... and that's the reason for what you can't see the Label text: both text and background have the same color: white.


DecSoft (In thread: Possible issue with Label's controls display)

Hello John,

Maybe something related with the app's dimensions... but without a bit more of information is difficult to figure can happen, John. Can you please send to me an E-Mail with an sample app in which I can see the problem?


DecSoft (In thread: Beginners questions about App Builder)

Hello John,

Basically I want to create Custom Functions inside the view that can only be used by that view and no other view. I also want to create variables inside the view that are only accessible by that view and no other view. Is this possible and if so how ?

Technically is possible to have functions only for an view, but, that is not how AB works, that is, the app's functions that you can prepare from the IDE, are functions availables for all the views. But probably is enough to use it or not... may depending on the "current view" ([App.CurrentView]), I don't know... may depend on the app that we are talking about.

I had a look at the "External Javascript tutorial of the App Builder's help." but couldn't see how I can use it to change the value of a UI component (for example, the text of a label).

You are right, that is, the tutorial is for other possible external Javascript usage. Again, commonly we no need to use Javascript code to set an app's var or an control's text, however, yes, is possible to do using the "window.App.RootScope", for example:

This action:

Is the equivalent to this other code:


DecSoft (In thread: AppBuilder and Version Control)

Hello John,

Why not? :-)


DecSoft (In thread: Beginners questions about App Builder)

Hello John,

Many questions in the same thread. I will try to reply to all of them.

Hi All, I am new to using AppBuilder and as such I have a few questions. Please excuse me if they seem simple or trivial.

Any question is trivial! :-)

Implementing MVC in App Builder. 1. I use MVC in my Java Applications. How can I take the approach I use for MVC in Java (as demonstrated by this example http://www.austintek.com/mvc/) and implement it in AppBuilder ?

The App Builder apps follows the MVC pattern, since it's implemented by certain Javascript core component (Angular JS) used by App Builder. In fact, you can think in your app's variables and other source of data (like HTTP Clients, etc.) as the model. The view part is the app's view, which automatically reflect possible changes in the model and viceversa.

Every view have also an controller, which is composed by the view's events, view's controls events, etc. With this the controller you can control the model, and, the app's view reflect automatically the possible changes on the model by the controller.

The above basically means that you no need to do anything special, since the App Builder produces apps are based in an MVC pattern.

Using Custom JavaScript 1. I know I can use custom JavaScript by using the StartJS and EndJS Markers. However, how do I access the properties of UI Components using Javascript?

Maybe you want to take a look at the External Javascript tutorial of the App Builder's help.

2. If I create an external Javascript File where should I store the file to ensure ease of deployment when the app is finished ?

Probably the best is that every app have at least one root folder, for example, "MyApp". Inside this folder you can place more folders like "Javascript", then you can place inside your JS files and include it by the app's files manager. Doing that App Builder play with the Javascript files as "local files", that is, you can, for example, move your "MyApp" to another computer, and everything continue working.

Views and the App 1. Can I treat views as Classes (as I would in Java) ?

The app's views have certainly an variable in the app's scope and that variable is an Javascript object variable, with some possible useful properties. But you must explain a little more what you means by "treat views as classes" John.

2. Can I add Variables that are Global to the view ? 3. Can I add Variables that are Global for the whole App ?

All App Builder's apps variables are globals, in the sense that you can, for example, change the text of a button that is not in the current app's view. You can change the text... but the button's text is not shown... until the view who contain it is shown.

4. Can I create Custom Functions for a View?

Using pure Javascript, certainly you can do it, for example, in the app's view's Show event. You can place some functions inside the app's view's variable or in other place in the view's controller. However, commonly what you do is to create app's functions, using both App Builder actions and / or Javascript code, and then use that functions from one view or another.

Please, John, go ahead if you have any further questions.


DecSoft (In thread: Poner App en pantalla completa automáticamente)

Hola Jordi,

Ya existe en AB una acción "ToggleFullScreen". ¿La has probado? Lo que puede ocurrir es que este tipo de acciones requieren de la intervención del usuario, es decir, los navegadores no permiten que lo hagamos nosotros programáticamente, sino es a través de un "click" del usuario, por ejemplo.


DecSoft (In thread: Música de fondo en vuestras aplicaciones.)

Hola Jordi,

Me temo que el plugin de Apache Cordova seguiría siendo necesario. No es posible, hasta donde llego, hacerlo de otra forma. Lo que quiero decir es que un plugin Javascript para AB sería más sencillo de usar: llamarías a la acción y listo, pero, el plugin Javascript, internamente, va a instalar el plugin de Apache Cordova, que, es quien hace el trabajo al final.


DecSoft (In thread: Música de fondo en vuestras aplicaciones.)

Hola Jordi,

Veo que al final diste con ello. Gracias por compartirlo. Acaso estaría bien un plugin Javascript para AB con una acción tal que "LoadBackgroundSound". Si tengo algo de tiempo (estoy ahora mismo intentando solucionar un problema, precisamente, en AB) acaso me ponga con ello. Gracias de nuevo Jordi. :-)


DecSoft (In thread: Creating Custom Components for App Builder)

Hello John,

Right now we can's expand the controls pallette of App Builder by using some kind of plugins. We have the Javascript plugins, which can add actions to the actions pallette, or just perform some task, and, maybe also create certain control in an specific Container control, for example.

You can also create controls in runtime by yourself, of course. But probably these all did not answer positively your question, since is not exactly what you wanted. You can find more information about Javascript plugins in the help file, and, some samples (but useful) plugins are included with the App Builder installation, as well a plugin template.

Maybe you can explain a bit more what exactly you wanted, or may you have some specific questions about the currently available Javascript plugins for App Builder or how they works. Please, let me know if you have any further questions John!


DecSoft (In thread: Distributing APP on Apple Store.)

Hello Napoleone,

App Builder generates several icons and splash screens for all the Apache Cordova platforms. You can locate it in the "res" folder inside the app "_Compiled" directory. Certainly, right now I can't say if we need to manually add an icon when upload the IPA into the Apple Store, since, the App Builder generated resources are intented to be used by XCode, not specifically for the Apple Store, in the case of the iOS platform.

Maybe you need to manually choose one the icons generated by App Builder, or may you want to use another icon specifically designed for the Apple Store.


DecSoft (In thread: Use of OpenWindow to reach external url ...)

Hello Napoleone,

Certainly, we can't open a new window (nor an URL) in the same WebView in which our app is runnnig. Better said, we can do it (because in fact the WebView -or a browser- deal with URLs, then we can proceed with an "_self" argument with "OpenWindow" action like you try, but, if the user come back using the history back action, then the app can enter in an unexpected behaviour.

Not always, but, is possible that our app initialize certain variables in the main view, for example, and then we do what you are try from other app view. Then, when the user come back to this last view, the firstly defined variables in the main view are not availables. This can be good for some app cases, and not for other cases.

What you must to do (and probably wanted) is to use the "OpenWindow" action with the "_blank" or "_system" arguments. That open the new window / URL in another tab or external WebView, and then, if the browser come back, our latest app view is show again without any problem at all, like if we open an app view using the "ShowDialog" action, we back to the "background view" without any problem.

Another possible way, if you want to open an URL inside an app view, can be to use an IFrame control. So please, Napoleone, let me know if you have any further questions.


DecSoft (In thread: Dropping support for Glyphicons and other changes)

Hello to all,

after update lastest version fontawsome come back again!

Thanks, David

Glad to know 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.

This website uses cookies only to store your preferences.

Ok! Hide this note More information