Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
Hola Jordi,
Pensando en cómo hacerlo en el nuevo AB, podría también usarse el método "filter" de los Arrays, de tal modo que quedaría tal que así:
Si te fijas, inicializamos el Array con los elementos seleccionados, y, esto es algo que acaso convendría hacerse también en el anterior código para el anterior AB, quedando entonces del siguiente modo:
Por cierto que, también en el anterior AB, podriámos usar JavaScript y el método "filter" de los Arrays, tal que así:
Como ves, en este último caso no usamos las funciones "flecha" de JavaScript, pues, el navegador / depurador del anterior AB se basa en Internet Explorer 11, y, este no soporta este tipo de funciones de JavaScript.
El el navegador / depurador del nuevo AB se basa en Google Chromium, y, este ya soporta las funciones "flecha" de JavaScript, de manera que es posible correr la app en dicho navegador / depurador, así como en el resto de navegadores.
Hola Jordi,
En efecto, el control MultiSelect no tiene propiedad "ItemIndex", sino que podemos usar su propiedad "SelItems", que, guarda los elementos que están seleccionados en forma de Array. De este modo, es posible recorrer dicho Array para ir averiguando el "index" de cada elemento, para borrarlo a continuación:
Hello to all,
Just for your information, the current DecSoft App Builder generation add the ability to maintain app backups in a similar way than the previous generation of the product already do. Take a look here for more information and anyway upgrade your AB copies.
Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
No problem, Asley! Don't hesitate to post here or in other thread if you have any further questions.
Hola Asley,
Nope. If we have problems with the array deletion... we must prepare a different array, that is, modify the code to something like the below:
That is, what we do above is to prepare a new Array variable ("output") with all the "source" array items, except the items with "ID=2". So you can use then the "output" Array instead of the "source" one.
Hello Asley,
Yes; it's possible to filter / delete records from the JSON source, for example:
Note, however, that we modify the original JSON source variable, so, we cannot get the deleted record back. But please, go ahead if you have any further question!
Hola Asley,
Maybe some further details can be needed. Supose we want to made a "filter" in the client side, and, the next code is placed inside the "Done" event of an "HttpClient" control, which serve the JSON to us, that is, the "HttpClient" response is the JSON that you shown as a sample.
As you can see, what we do is to initialize the "data" property of a "Table" control. Then we iterate over the "HttpClient" response, in other words, we iterate the JSON registries. As you can see, it's easy to find if the "libro" property of the iterated record / registry is one of the books that we want to show in the "Table" control, and, if so, we add that record / registry to the "date" property of the "Table" control, in order to be shown.
Note that, if the database is in the server side, the same operation can be done in the server side, that is, we ask to the server for some "books name" records, using the appropriate URL, for example: "https://www.appserver.com/items?books=1,2,3" (supose this 1, 2, 3, are the IDs of the required "books" in the database) so the server can prepare the right JSON output, so we no need to perform the filter in the client side, even when, as you can see, it's also possible.
Don't hesitate to ask if you have any further question around this, Asley.
Hello to all,
You're welcome, Samuel! Jordi, we are talking about the current generation of DecSoft App Builder: the previous generation do not have something like that, and, probably can't do it: we try with themes in the past and finally remove it due to their problematic behaviour. The new DecSoft App Builder has been rewriten from the scratch (using a new version of Delphi) and allows us to have something like that "dark theme" available.
Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
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.