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 NeoPlugins Mega Pack release, with the below changes, fixes and enhancements:
Get more information and download individual NeoPlugins and the NeoPlugins Mega Pack from here.
Hello John,
Thanks for that. It's just what I needed.
You're welcome!
Hello John,
In fact in both AB1 or AB2 the possible solution (one of them, since probably there is not only one way to do it) is very similar. The difference is that in the previous generation of AB we use Bootstrap CSS 4.x, and, in the current generation of AB we use the very latest release of the Bootstrap CSS framework.
By the way, the right documentation of the Bootstrap CSS framework is the official website. For example, talking about "Navs and tabs", talking about AB2, we can refer to this website.
What I do is to take some piece of HTML markup from the above linked Bootstrap CSS documentation in order to show some "pill tabs" inside an HTML control of DecSoft App Builder. This is the piece of HTML markup that I use for this sample:
Now, suppose that what we wanted is to show the content of the "Contact" tab from an external URL, so, we can place the below Javascript code in the app's view Show event, the same app's view who contains the above HTML control:
And that's all basically. Maybe you want to make a "get" jQuery call instead of a "load" one, or maybe you wanted another possible HTML markup, but, the idea will be very similar: we need an HTTP call in order to get our desired content, and then place that content (the response of the HTTP call) in our tab content DIV container.
Hello John,
Are you referring to the previous or the current generation of DecSoft App Builder?
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 Andreas,
If you get it working... can be ok... but my previous posts explain something that must work. If "code" specify a function, then what get in "value[0]" will be the function return... so that must work... maybe you have some time in order to re-read my previous post and try it in order to see if finally you can see it working as expected. Of course if you prefer to go ahead with your current solution it's also ok.
Hello Andrea,
I think you can got it. Just take in consideration how "executeScript" works. My fault was to assume that we can change the "code", but, we can't do that, because "code" means "what code is to be injected or executed (?)". So the point must be to prepare the right Javascript in "code".
Maybe this can work "as is":
But I am not sure... just must try it and see if in "value[0]" you can get that "object". If the above don't work, then maybe we can use the below:
And of course in your page HTML you must have a function like:
I think the above must work well. If we can directly pass the object to "code", then just do it. If not, then we can try with the function call. Since I am supposing that that function will be called and then the "value[0]" must contain the return of that function.
It's a question of try it and see if finally you can see it working as expected.
Hello Andrea,
Since in the original code "values[0]" stores a boolean value, I suppose that value is what the "window.shouldClose" stores. So in principle, if set an object to the "myVariablesObject", that object must be in "values[0]". But now I think I am wrong... we must take care about the executeScript documentation here.
Apparently this code cannot be executed "as is":
According with the documentation we cannot change the "code" with "myVariablesObject". "code" is not an arbitrary thing... but must be "as is": "code". Apparently "code" must contain the code to be injected (executed?). The rare thing to me is that the "code" originally only contains a variable name... "window.shouldClose"... so I can't understand that...
Anyway, try with the below code:
Just to see what happen... maybe the "code" can be a function, for example, who return an object like "{"shouldClose": window.shouldClose, "example": window.example}"... so try the above code "as is", and then try with something like below if the above don't work:
I hope you can get the idea that I am trying to explain. It's my fault to misunderstand how the "executeScript" works...
Hello Andrea,
I am not sure... since to me that appear something weird... I mean... the page that you run in the "in app browser" is not part of the app (are running in another context), so, probably you can't share variables "as is". So in principle I think there probably has not a solution or not an easy one.
Saying that, maybe you can try some possible things. For example, the below code take my attention:
Apparently you can get the value of "window.shouldClose" from the context of "executeScript", so, maybe you can use it to get the "example" variable value, at least if you define it as "window.example = 'my value';" That is, the idea is to execute the below code:
Another possible way can be this other approach. Looking at the below code:
... again, "code" apparently can get the "window.shouldClose" variable value. So I can imagine a code like below:
You can try the below code and investigate what the "values" variable ("values[0]" in particular) contains: if I am not wrong, that must contain the object that we set in "myVariablesObject", which contains both variables: "window.shouldClose" and "window.example", in the appropriate object properties.
P.S. Again I am not sure, however, in the above code you can see that you access to the "winRef" variable (the reference of the window opened by the "in app browser"), so maybe can be possible to reach the "example" variable like this: "winRef.example".
Hello Mario,
You are right, sir. This new release fixed the bug. Thanks very much for your report!
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:
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.