Posts by DecSoft

Show threads by DecSoft
3403 posts found, page 122 of 227

DecSoft (In thread: How to use custom CSS in our apps)

Hello Amin,

You can use the "Inline CSS" option of the app, which is ready for use from the object inspector, when you select the app in the designer (when click on the designer out of the view nor any other control). You can also use the "Inline CSS" option from the app's options dialog.

Additionally, you can also prepare a CSS file, which you can then add to the app using the app's Files manager that you can see in the App menu. The Files manager allows to add scripts, styles, other files and also entire folders. You must add your CSS file and then AB copy it and use it in the app.

The "fixed.css" and "scaled.css" files are generated by App Builder automatically, and you no need to edit it by hand. This files are used in the app and can be switched also in runtime with the help of the action "SetAppScaled".


DecSoft (In thread: Some requests for the App Builder IDE)

Hello Paolo,

About the functions dialog, certainly it's not something that we can do more or less quickly. Maybe in an future release of AB, Paolo. About the help file, maybe you can open it "outside" of App Builder, that is, you can navigate to the App Builder's installation folder (commonly in Program Files) and then open the help file directly, may also create an shortcut in the desktop if you wanted to open it "outside" App Builder.

Edit: I can see that the help file is not open in an modal way in App Builder, that is, we can continue using te program without close the help, if we have enough space for the help window and the other program's window. Maybe you are not talking about the help file? Are you talking about other modal form Paolo?

DecSoft (In thread: About the [App.WebExtMessage] variable)

Hello Paolo,

You can take a look at the app's global variables help:

This variable store the WebExtension app message already to use inside the app WebExtMessage event. This variable can contains virtually anything, since we are responsible to send a message and therefore to provide the content of the message.

Take a look also at the "WebExtension" app sample.


DecSoft (In thread: How to determine where is the app is running)

Thanks Paolo!


DecSoft (In thread: Dynamically creating user objects on the screen)

Hello Amin,

Maybe the problem was with jQuery? That is... maybe your app include an jQuery Javascript file (or URL), but, from some releases ago, App Builder already include jQuery, then, we no need to include it using the app's File manager.

Anyway, just post here in the forum if you find any other problem.


DecSoft (In thread: Dynamically creating user objects on the screen)

Hello Amin,

I have to comments for your question. Firstly, may you no need to create controls dynamically. Certainly we can do it, however, we can consider another possible approach, maybe reducing the input controls to shown, using various app's views to shown various inputs, or use a sole app's view like in the "InputsScroll2" sample.

Please, take a look at the refered "InputsScroll2" sample, which may can be of your interest. On the other hand, I try right now "DynamicControls" sample and works as expected. So, please, send to me your modified sample by email, so I can take a look exactly at the possible error that occur. Then I will try to help you as quickly as possible.

P.S. Please, upgrade your AB copy, Amin, I fix certain introduced bug and add some new app's global variables.


DecSoft (In thread: How to determine where is the app is running)

Hello again,

I forgot to say that the [App.Cordova] global app's variable. This variable store "true" if the app is running in an Apache Cordova WebView, in other words, if the app has been compiled using Apache Cordova and run in Android, iOS, etc. The variable store "false" if the app has not been compiled with Apache Cordova, in other words, run in an browser or as an browser's Web Extension.

DecSoft (In thread: How to determine where is the app is running)

Hello Paolo,

Please, upgrade your AB copy. Among other changes, you can see two new app's global variables: [App.Url] and [App.Debugger]. The second one store "true" if the app is running in the App Builder debugger and "false" if not. However, note that if we launch the app in another browser, for example, Firefox (which is recomendable, because the App Builder debugger console is not so good than the Firefox one, for example), the [App.Debugger] variable stores "false".

The first new variable [App.Url] may can be useful too for your purposes, since this variable stores the URL of the app, for example, "http://127.0.0.1:9999/#!/View1", so, with the help of some actions we can determine if the app is running in an "local URL" or not, for example:

We can place the above code at the start of the app (for example, in the main view Show event) and prepare an variable instead to shown a message, that is:

Then we can use the [AppIsRunningInLocal] variable when needed.


DecSoft (In thread: Add a new (non existing) property / variable to an control)

Hello Paolo,

I am not quite sure if can understand the first part of your question, but, maybe by solving the second part you get solved the first one. Certainly, other IDEs like Delphi, prepares an Tag property for their components, however, I am not sure if in App Builder that property have some sense, better said, the same sense than in Delphi.

Anyway, certainly it's completely possible to add new properties / variables to an control in App Builder, for example, this code works as expected:

You can do the above without problem, and, after that, the "MyButton" control have an "Tag" property / variable with the value "123", in this case. Can this be useful for you Paolo?


DecSoft (In thread: Some doubts around certain requested URLs)

Hello Paolo,

I think that can understand what you wanted, however, I am not sure if something like that can be good. Commonly we can use variables, so, maybe it's not a good idea to replace the brackets in all the cases. Use brackets "as is" is probably more rare than use variables.

DecSoft (In thread: Set an authorization header in an HTTP request)

Hello Paolo,

Glad to know that you got it. And thanks for sharing the NodeJS configuration: may can be useful for other people too.


DecSoft (In thread: Set an authorization header in an HTTP request)

Hello Paolo,

If I am not wrong, the problem is related with the CORS permissions. Maybe the thirdparty server don't allows HTTP calls from client apps. If this is the problem (and I think so) you must prepare your own bridge in your own app's server. Then your app communicate with your server (who provide the right CORS permissions) and your server is responsible to communicate with the thirdparty API and provide you the right response.

You can take a look at various AB samples like SimplePost, HttpClient, etc. Take a look at the included PHP script in the samples. As you can see, that scripts setup the right CORS permissions, to allows the app to communicate with the server / scripts without problems.


DecSoft (In thread: Set an authorization header in an HTTP request)

Hello Paolo,

You say that the above don't work, but, do you get some error message? Please, try the app by opening it in Firefox, and, press the F12 key in order to open the developer console. Then, take a look at the request, and, if you can see any error or something that we can use to find a possible solution.


DecSoft (In thread: Some doubts around certain requested URLs)

Hello Paolo,

May something like the below can be enough:

In the Result variable you have an JSON string representation of MyObject.


DecSoft (In thread: Some doubts around certain requested URLs)

Hello Paolo,

I am not quite sure about what the problem can be. Maybe you have an problem with the variables in the URL? Certainly, if we must place something like "[this]" in the URL, since "[this]" appear as an AB variable, maybe we can have some problem. Maybe a possible solution can be to use HTML entities instead of the brackets "as is".

I want to shown here the HTML entities, however, they are converted to the brackets... so I can't shown to you here as I wanted. But take the idea: instead of use the brackets "as is", you must replace the brackets with their HTML entity representation, so AB don't take it as variables.

If something like that don't work as expected, maybe you need to prepare some "bridge" between the API that you want to use and your app, using some server script placed in your app's server. So you can use URLs without the "brackets" (all of these suposing this is the problem, I am not sure!), and then your server script made the appropriate calls to the API (here we can use "brackets" without problems) and provide to the app the API response.

But I must insists, Paolo, I am not sure if the brackets are the problem or not. Do you get what you wanted? If not, do you get some error message?

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