Posts by DecSoft

Show threads by DecSoft
3355 posts found, page 73 of 224

DecSoft (In thread: Multi Select Object to have horizontal scroll bar)

Hello Danny,

You are right: I forget that we are talking about a multiselect list... but it's ok, with a bit more work we can get something like that working:

I add a bit more of Javascript and a new "item-selected" CSS class in the app "Inline CSS" option.


DecSoft (In thread: Multi Select Object to have horizontal scroll bar)

Hello Danny,

If I am not wrong the Select control never show a horizontal scroll, and, we can't force it using any CSS style. A possible workaround can be to place the Select inside a Container, made the Select as width as the larger item, and, set the Container's width to what we wanted, and then use the "overflow-x: auto" of the Container. You can see this approach in the below app sample:

Another possible approach is to use a Menu control instead of a Select one, and use the "overflow-x" of the Menu:

Another approach (probably the best to me) can be to use a HTML control, and, use our own HTML markup to show a list of "large items" in a way that don't get out of the screen, so we no need the horozintal scroll at all:

P.S. In this last app sample, you must look at the view Show event, as well the HTML markup placed in the used HTML control.


DecSoft (In thread: Alert Box to show before Replace View)

Glad to know that you got it, Danny!


DecSoft (In thread: Problema con Volumen UP y Volumen DOWN)

Mala suerte, entonces: por alguna razón Cordova no soporta esos eventos en iOS... :-(


DecSoft (In thread: Problema con Volumen UP y Volumen DOWN)

Hola Jordi,

¿De qué plataforma estamos hablando? Puesto que esos eventos parecen disponibles sólo en Android...


DecSoft (In thread: Alert Box to show before Replace View)

Hello Danny,

If we talk about the "Alert" action there is no problem even if the view changes. Remember than the "Alert" action show a native platform dialog alert, so this action is quite recommendable. However, if we want to use the "AlertBox" action, then we must take in count that when we go to another view, the possible alert is hidden. So the approach must be: 1º Set a flag variable like "ShowAlert" to "true" before we move to another view. 2º Use the another view Show event to look for the flag variable, and, if required, show then yes, use the "AlertBox" action.

So the button which go to another view can look like this:

And therefore in the "View2" Show event we can write this code:


DecSoft (In thread: Dropdown design and runtime does not work as expected.)

Absolutely right, Danny! That's exactly!


DecSoft (In thread: Dropdown design and runtime does not work as expected.)

Hello Danny,

We are talking about paragraphs and textboxes for the code... that is, the "p" and the "code" HTML tags... probably we no need an editor for this beyond the Notepad. ;-)


DecSoft (In thread: Dropdown design and runtime does not work as expected.)

Hello Danny,

Please, remember to use the "code" HTML tag. Certainly, you are right, the Dropdown don't work as expected in your project, but, it's not related with the control itself, but with the app theme that you are using. Apparently that theme ("Cosmo") have some problems with the Dropdown control. Other themes too. I need to investigate this when possible. In the meanwhile... sorry but you cannot use the "Cosmo" nor other affected themes.


DecSoft (In thread: Dropdown design and runtime does not work as expected.)

Hello Danny,

It's quite rare. Maybe you are changing the Dropdown Items variable at runtime? Remember that variable is an Array, so you cannot set an string to it, for example.


DecSoft (In thread: Design & Runtime screen output different)

You're welcome, Danny! :-)


DecSoft (In thread: Dropdown design and runtime does not work as expected.)

Hello Danny,

Sorry, but I can't reproduce the problem here. Please, be sure that you edit the items in the Array editor dialog, be sure there are really two lines. Take a look at the Dropdown app sample too. If the problem persists, please, post here, and, if possible, provide a sample app in which we can see the problem.


DecSoft (In thread: AppBuilder custom functions)

Hello Ryan,

I commit a mistake in my previous post. Certainly, Javascript AB functions can return something, and, I mention that AB functions can't do it, but, in fact can do it, using the "Return" action, which is intended to be used when calling the function from Javascript. So in both cases AB and Javascript functions we can do something like this using Javascript:

Note how we call to the app function, see this help topic for more information. Take a look also at the "External" and "External2" app samples.


DecSoft (In thread: AppBuilder custom functions)

Hello Ryan,

AB functions (with AB code) can't provide a "return", so, if we need that an AB function do something and be ready for a result, that function must place the result in an app variable, that we can use after call to the AB function.

AB functions (with Javascript) can provide a "return" value, but, this is intented to be use if we call to the AB function from Javascript. In other case, if we call the function from AB code, we need to use an app variable like above.

Both AB functions (with AB code and with Javascript code) support arguments, of course, and we can pass AB variables to it. Remember that there is a way to access AB stuff (including variables) from Javascript code: read help topic.

Please, Ryan, go ahead if you need any further help.


DecSoft (In thread: Design & Runtime screen output different)

Hello Danny,

I think to know what you wanted, so I will try to help you. The "FixedContainer" is intented to shown how we can place content beyond the app view height. That content is perfectly "scrollable" at runtime. But this sample can't do for you what you wanted. Please, let me to explain.

First of all, maybe you no need any container at all: containers are good to group other controls, in order to set a specific background for the container, so the container controls stay inside that background color, somethings like that.

But you can place the header Image control that you wanted without any Container control, and, also without a Container, below the Image you can place your HTML control. So what is the trick? The trick is the CSS "overflow-y" of the HTML Control.

Setting the "overflow-y" CSS to "auto", for example, the contents of the HTML control stay in the control, and, never go beyond the control (and never hide or mess with the Push button), because the appropriate scrollbar appear to allows to show the content of the HTML control.

So in principle you only need three controls: the Image, the HTML content and the Push button. The image can be may also put inside the HTML content control (using an IMG HTML tag), so you can have only the HTML content and the Push button controls.

Take a look at the below app (copy the XML and save it in a file like "MyApp.ab". Open this with AB and run the app.

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