You're welcome Ava!
Don't forget the counterpart of the StrSerialize action, which is the StrUnserialize action. For your convenience, here is the online help file, with all the actions' references. Remember that the program also include the help, and, we can just press any action from the actions' list (in design time) or just the action's editor form help button, in order to directly open the help with the appropriate actions' reference.
Hello Ava,
Yes; of course, in addition to the Javascript code that you suggest (which is possible to use in both cases: to save the option, and to convert the object to an string: we need to remember here that we can use pure Javascript without problems in any part of the app), you can use the StrSerialize action, and then the SetOption one. That is, StrSerialize can convert an Object or Array into an string, which you can save into the local storage using the SetOption action.
Hello Fot,
I am not sure if can understand your post. Can you please explain it a little more? It's this related with DecSoft App Builder?
Hello Ava,
You're welcome. Additionally, may we can say that, commonly, the local storage is not a problem. That is, suposing we have two apps running in Android, for example, that apps do not share their local storage at all. Only if we are talking about web apps, and, if these run in the same domain, then yes, the local storage is shared, then we may must take care about that.
Hello Ava,
The local storage, if I am not wrong, it's used based in the app's origin. That is, certainly, if we have two apps in the same domain, in fact we are using the same local storage for both apps. It's not a limitation of AB, but the way in which the local storage work.
Clean the cache nor the compilation files have no effect, because the local storage persists even between different user's sessions. The only solution, if we want two apps working (or two app's instances) in the same origin, it's to use different keys in the app's local storage.
Hello Amin,
Yes; please, upgrade your AB copy: some enhancements has been made in order to put such thing working as expected.
Hello to all,
Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:
Read the entire product's history
Hello to all,
Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:
Read the entire product's history
Hello to all,
Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:
Read the entire product's history
Hola Jordi,
Muchas gracias... ahora si va perfecto ;-)
¡Me alegro de que te sirviese!
Hola Jordi,
Una forma sencilla de hacerlo podría ser incluir la etiqueta imagen dentro del control HTML tal que así:
Una vez hemos identificado la imagen, podríamos usar la acción "SetAttribute" de este modo:
Nota, en todo caso, que habrá que incluirse el "prefijo" que puedes apreciar arriba: "data:image/gif;base64," si no lo se incluyese en el Base64 "de entrada". El tipo de la imagen habría que indicarlo, es decir, en el ejemplo de arriba la imagen es un "gif". Tal vez podría usarse un tipo como "png"... genéricamente... pero habría que comprobarlo. Esto, suponiendo que fuese un problema "adivinar" o conocer el tipo de la imagen.
Hello Amin,
Sorry for the possible inconveniences. You are right, and, the Disable action must be enhanced in order to work as expected in the way that you are trying to do. Please, upgrade your AB copy and try again: the refered action and others has been enhanced in order to allow what you are trying to do.
Hello to all,
Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:
Read the entire product's history
Hello Amin,
Like any other JS function, if we AB function expect arguments, we can send to it in the usual way:
In the above sample we call to an AB "MyFunc" function and sent to it two arguments, "Hello" (a string) and "123" (a number).
Hello Amin,
Please, take a look at the External Javascript help tutorial (included also in AB) and, please, go head 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.