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 John,
You're welcome! In fact, who deserves the thanks is the author of the referred articles, which do a very good work.
Hello to all,
Here is a new DecSoft App Builder with the below changes, fixes and enhancements:
Hello John,
Nothing is impossible, however, almost everything requires some work. What you wanted probably can be achieved by using some possible third party JavaScript library, and, of course can be made in the same way than that JavaScript library does, I mean, finally we are talking about what HTML and JavaScript allows us to do. Thanks to DecSoft App Builder we can use all the power of HTML and JavaScript in our apps.
I found a couple of amazing articles: this one for resizing table columns and this one for reorder table columns, so I adapted it to get the Table sample app enhanced with these features. The main code is which is placed in the app view Show event, and, there is also some CSS code placed in the app Style option.
You can download the modified Table sample app from here. Maybe this modified sample have some caveats: finally I only dedicate around an hour and a half in order to adapt the referred article: the main work is taken from the articles, and, maybe can be enhanced, modified, etc. As I told you, HTML and JavaScript offers to us the way to get it working, probably using various approaches, so, maybe you want to modify the sample, looking for some possible samples or third party libraries, etc.
Hello John,
The short answer is no, John. Consider that React is not a "normal" third party Javascript library, but, an entire Javascript framework in which we can base our "single page" HTML apps. Well, DecSoft App Builder uses another framework, and, the entire product (the IDE, the native controls, our apps template, etc.) are based in this other framework and therefore cannot be replaced by React "as easy" as we can use any other kind of third party Javascript libraries, which you know it's perfectly possible.
P.S. Of course, we can use an IFrame control in our apps in order to run a React app or any other kind of HTML app. And may we can communicate from one app to another using the "iframe" HTML messages (take a look at the "IFrame2" sample app), but, this is not a "yes" answer for your question, John, I just comment this because if we need something like that, it's possible to do it, but, the answer for your question is in the first paragraph of this post.
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 HTML Compiler 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 HTML Compiler with the below changes, fixes and enhancements:
Hello Amin,
Thanks a lot. Fixed the issue. Fantastic help and support as always.
Always thank you for your trust, sir!
Hello Amin,
If you remember, the app Start event of AB1 was added in the past for some capability that you wanted: change the "window.App.Config.DefaultView" variable, or may other "config" variables. Certainly, in this event we can't use any AB1 actions, only Javascript, and, cannot get access to the app variables.
If you do not want to use the "DeviceReady" event, instead of the Start event, maybe you can consider to use the view Show event. You can take the view Show event as a kind of Start event, since it's fired even before the DeviceReady is fired, and in the view Show event you can use AB1 actions, variables, etc.
On the other hand, if you can use "window" variables, then you can certainly use the app Start event, for example, the below code defines a "window" variable in the app Start event:
That kind of variables are possible to be set in the app Start event, and, certainly they are available in other app places, for example, the below code can be in the view Show event:
Talking about the other issue, that is, adding the "capacitor" value into the "imgSrcSanitizationWhitelist", I update AB1 right now in order to add the "capacitor" value into "imgSrcSanitizationWhitelist", so you can upgrade your AB1 copy in order to get it working "as is". I hope this information can help you in some manner, Amin, just post here if you have any further questions.
Hello Amin,
Maybe you can get more information about the issue. My point is that I am not sure if the content policy (which apply to the app which run inside the IFrame, and not apply in the "parent") has something to say here, just because what I say: the content policy is for the app itself, not for the "parent".
On the other hand, if I search by "unsafe posfix" I can't get relevant results: maybe I am not searching well, but, it's rare to see no results when we search for an error: commonly we get relevant information which can be used to discover a possible solution for the error in question.
So here are some questions... is the AB1 app loading in the IFrame? If yes, then... I do not understand the problem... since probably this is what we wanted... if not... then we must get some kind of error... probably related with the server which serve the AB1 app and not the app itself.
Are you tried to run the AB1 app inside an IFrame to see what happen? Doing this we can see if the problem is in the server of the app: some servers can refuse to load the content inside an IFrame, even when I am not sure if this is the case, we can look into this to see if that is the problem or not.
Maybe the "unsafe posfix" error is related in some manner with Capacitor and my leak of knowledge about Capacitor don't allow me to say something useful: maybe this can be a clue, I mean, maybe we must search about that error talking specifically about Capacitor, to see if it's a Capacitor problem / error.
So try it with all of these, Amin, and, try to get some more information, or to reproduce the problem, in order to see what can be the possible solution. But again... I am not sure about the security policy, which in principle affect to the app itself, not to the "parent" app...
I hope you can finally solve the issue! And please, don't hesitate to post here any further questions!
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 some useful cookies to store your preferences.