Posts by DecSoft

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

DecSoft (In thread: JavaScript function return value in AB Script?)

Hello Harald,

If I understand well, we must deep into Javascript to do something like that, in other words, we must execute the JS function inside the StartJS and EndJS actions. So, for example, the below code is perfectly valid:

So the "MyJSFunction" can contain a "return" like we can see below, remember this is a JS return, not a Return action, since we are inside a JS function, not an AB function.

Then if we execute the first code, our "FunctionResult" variable store "Here is the result!".


DecSoft (In thread: About a possible Datepicker sample app)

Hello Peter,

No problem at all! I am happy to help when possible. :-)


DecSoft (In thread: About a possible Datepicker sample app)

Hello Peter,

I am not sure, but, apparenly you copy too much HTML markp above? That is, the TempusDominus sample HTML markup (inside HTML control) is the below one:

Anyway... probably the above is not important, so go to the point.

Apparently we can't set the input's value in a more or less common way, but one of the possible ways to establish the value of the input / datetime picker is the below one:

The above code is the same than what you can see in the TempusDominus app sample, except for the creation of a Date variable at the begining, and how we finally set that variable to be the value of the input / datetime picker.

The Tempus Dominus library expect a "moment" (library) object to be used... fortunately the AB Dates variables are "moment" objects, so you can use it. Probably you must get the date from the local storage, then create a Date variable, and finally assign that variable like above.


DecSoft (In thread: Problema al intentar generar con Electron)

Hola Jordi,

Algo como lo que dices es posible en Electron, pero, por lo que parece, todavía no en Cordova Electron.

Es posible conseguirlo ahora mismo, editando a mano el archivo: "\App_Compiled\platforms\electron\cordova\lib\build\base.json". Dicho archivo contiene lo siguiente:

Pues bien, es posible añadir la configuración del instalador NSIS en dicho archivo. Revisa esta documentación. El archivo anterior podría quedar así:

En cuanto sea posible, App Builder incorporará una opción para incluir este tipo de configuración, entre otras, de la misma manera que ya es posible especificar las opciones de ventana y lo necesario para firmar las apps.


DecSoft (In thread: Problema al intentar generar con Electron)

Hola Jordi,

Prueba a instalar la última versión estable de NodeJS. Creo que yo tuve exactamente el mismo problema, y, buscando información, encontré algo relacionado con NodeJS, concretamente, pasé de la versión 6 a la 10, y, ahora, Cordova Electron funciona perfectamente.


DecSoft (In thread: New App Builder release 2019.35 (04/26/2019))

Hello to all,

Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:

Read the entire product's history


DecSoft (In thread: Websocket connection problem in Android 9+)

Hello Paolo,

It's quite rare... please, read this answer in StackOverflow. Maybe you can start to implement an error event for the websocket, so maybe you can get more information about the error.

On the other hand, maybe you can use the WebSocket control of AB. We use this control for the chat of certain app for Android and iOS and works very well in that platforms and also in browsers.

On the other hand, note the Android version... Android 9 and beyond don't allows non secure connections... except if we explicitly enable it in the app manifest file.


DecSoft (In thread: About a possible Datepicker sample app)

You're welcome! :-)


DecSoft (In thread: About a possible Datepicker sample app)

Hello Peter,

I did not read the Tempus Dominus documentation, so, maybe we can miss something... anyway, we are talking about an HTML input, so, we can get their value using a code like the below:

Note, however, that the above code requires an "id" attribute for the input: "datetimepicker1-input". If we wanted to leave the HTML code of the app sample like is, we can also refer to the input using the container ID, so the below code also works:

The different is small but must be clear: in the first case we use jQuery to select an element with the ID "datetimepicker1-input" (can be any other, of course); in the second case we use the ID of the input's container, so the jQuery selector must be "#datetimepicker1 input", that is, "an element with an input tag inside the specified element's ID".

Probably the first approach is better here, since we refer to a specific element's ID.

I hope this can help you in some manner.


DecSoft (In thread: About a possible Datepicker sample app)

Hello Peter,

Yes; finally we are dealing with HTML, CSS and Javascript, and, certainly there are lot of stuff that we can use, commonly "as is". :-)


DecSoft (In thread: About a possible Datepicker sample app)

Hello Peter,

There is no misteries in the usage of that library in our apps, except maybe that we no need to add the required jQuery and Moment libraries, since AB already includes these libraries in our apps. Please, upgrade or download the current release of AB: I added a "TimeDominus" app sample, in which you can one of the samples of the library working: I choose the "custom icons", since, apparently the library are not using the latest releases of Awesome Icons, but App Builder do it, so it's good that we can specify the icons to be used in the calendar/time picker.

Of course you can choose the date picker that you wanted (even don't use any date picker and just use inputs to get the year, month and day from the user)... but, I am not sure if can understand what you mean with this phrase: "It doesn't seem to me that the sample that you made (DateInput2) is adaptable for this purpose so I have gone looking for something similar that could be used."... So the "DateInput2" sample don't work for you? Or you simply prefer to use another one?


DecSoft (In thread: New App Builder release 2019.34 (04/25/2019))

Hello to all,

Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:

Read the entire product's history


DecSoft (In thread: Variable expansion in HTML control)

Well! Such things happen! :-)


DecSoft (In thread: Can we have Electron builder for Mac ?)

Hello Harald,

Just for your information, the current release of App Builder add the right App options -> Cordova -> Electron -> Signing -> Mac OS options in order to provide the stuff for signing Mac OS applications compiled by the Cordova's Electron platform. You can read a bit more information here.


DecSoft (In thread: New App Builder release 2019.33 (04/24/2019))

Hello to all,

Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:

Read the entire product's history

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