Posts by decsoft

Show threads by decsoft
3292 posts found, page 191 of 220

decsoft (In thread: Cannot get value with ObjectGetProp after update from 2016.95)

Hello tin,

Thanks for your considerations. The JSON2 sample has been fixed and AB is now updated. Certainly I need to study this kind of situation, because maybe I can take another approach, which allow us to name variables like object properties, etc.


decsoft (In thread: Cannot get value with ObjectGetProp after update from 2016.95)

Hello,

First of all, sorry for the inconveniences. And thanks for your feedback and research tin. Yesterday I fix a bug in the "ObjectGetProp" action, and, now they works as expected, however, we can't write something like this code now:

This simple "confuse" the App Builder code translator. What we must to do is something like the below one:

That is, the property name must be different to the result variable. So remember the below code doesn't work:

But this other works like expected:

I want to study this deeply, but this behaviour is not only related with this specific action, then, take note tin.


decsoft (In thread: How to set image background in Mobile Application?)

Hello,

I try it.It work for me too!!.Thanks David.

You're welcome!


decsoft (In thread: How to set image background in Mobile Application?)

Hello,

Trying in app's views I think the "background-size" is working properly here in my browsers and my mobile device. Trying to put it to be used in the "body", that is, applied to the entire application, for some reason the "100% 100%" is not working, probably due to the app's views CSS rules (width and height).

Try with this instead, that works for me:

* vw mean "viewport width" and vh mean "viewport height".


decsoft (In thread: App Builder Run)

Hello,

Sorry but I am not sure if can understand what you mean. Certainly, except some "rare" behaviour with the designer (I mentioned above) not too important at all, I can't get any undesired behaviour in the program run and debug commands. Maybe you can explain me a little more using some images, a video or something like this. Or try to explain me a way (step by step) to reproduce the problem.


decsoft (In thread: How to set image background in Mobile Application?)

Hello,

Honestly yesterday it's the first time I view the "background-cover" rule. In my own projects I never need it before. I use the "repeat", the "position", and some other background related rules, but never the "cover", so I am not sure if can help too much here tin.

What if you use something like this?


decsoft (In thread: How to set image background in Mobile Application?)

You're welcome! :)


decsoft (In thread: How to set image background in Mobile Application?)

Hello,

Yes; the above can work. Anyway I update App Builder and now we can use "App Builder properties" to set the "background-size". You can use wathever you wanted now tin.


decsoft (In thread: How to set image background in Mobile Application?)

Hello,

Certainly "background-size" is not supported right now from the object inspector. Will be supported in the next AB release. In the meanwhile, you can use the app Inline CSS option or a CSS file in order to prepare a code like this:

As you can see, you can also set the image in that CSS code.

On the other hand, if you wanted the same background for all views, maybe you can use the object inspector (once select the application, that is, clicking outside the app's view in the designer) or use a CSS code like the above one but applied to the body tag, for example:

P.S. Ok. Probably this last one have not too much sense if we use ".appView", another way to set the background or apply CSS code to all the app's views.


decsoft (In thread: App Builder Run)

Hello,

I forget something. F9 perform the debug action, which currently save the application if they are modified. However, CTRL+F9 (Run) is intended to run the previously compiled application, then, if a previous compilation exist, CTRL+F9 run that compilation. CTRL+F9 is useful, but, if you want to view all the possible changes, then you must use F9 (Debug) instead. This is not related with my previous message, and probably solve your issue...


decsoft (In thread: How to set image background in Mobile Application?)

Hello tin,

Certainly you have reason: an image path like "/app/images/background.png" can work in the debugger. However, the path we must use in this case is "../images/background.png". In fact the CSS files are under the "app/styles" directory, but the images are placed in "app/images". What we must do is to "up to the parent directory", and then enter in the "images" directory to finally specify the "background.png" image we want to use.


decsoft (In thread: App Builder Run)

Hello,

I am not completely sure if I understand what you mean. I note sometimes certain changes in the designer does not "modify" the application, and, currently, the debug button, only saves the application if they has been modified. I want to study this more deeply and try to find a convenient solution. However, again, I am not sure if you are talking about this.


decsoft (In thread: sqlite javascript)

Hello,

Please, take care about your forum's posts: use the "code" tag when possible, so your messages can be readed in a better way. I am not sure if your Javascript code contains some problem or something like that, because it's difficult to read.

About your question, the next App Builder releases includes a new "External2" app sample, which show us how to use Javascript functions declared in Javascript files. You can download such "External2" from here

As you can see, we get the result of certain Javascript function in an app's variable.


decsoft (In thread: sqlite javascript)

Hello,

Please, take a look at the External app sample: you can see here how to change app's variables from "pure" Javascript. I don't know if any other problems can be, but, for example, in your code:

... "value" must be "Value" (case sensitive).


decsoft (In thread: sqlite javascript)

Hello,

Use a Javascript external function is not complicated. Supose we have a Javascript file with the below code:

Then, if we include such file using the app's file's manager, we can call to "MyCuteFunction", just by include the function's call between the StartJS and EndJS actions, just like in the below code:

About the "sql.js" we have the complete documentation here and also various samples in the project's page here. Currently App Buidler do not recognize external Javascript files in order to extract form such files their "reusable" stuff, honestly I don't know if this feature can be added in the future.

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.

I agree. Hide this note. Give me more information.