Posts by DecSoft

Show threads by DecSoft
3341 posts found, page 73 of 223

DecSoft (In thread: NavBar Ready Event)

Hello Danny,

Yes; this probably must be explained better in the help. Look at the below GIF image:

DecSoft App Builder Designer Events
  1. Double click in a control enter the control's events editor
  2. Double click in the view (white part) enter the app view's events editor
  3. Double click in the app (gray part) enter the app events editor

DecSoft (In thread: External javascript 'Hello World' using Firebase)

Hello Peter,

Please, don't worry at all! I am happy to help when possible! So don't hesitate to ask what you need, but, please, try to be specific, so we can focus on certain specific error, unexpected behaviour, etc. For example, Firebase appear very interesting, but, my god, I have no time right now to study Firebase properly... (and unfortunately I don't know it already) but as you can see I can help anyway... by feed the Report, for example, etc.

Maybe in other situations I can deep into certain API, etc., but, right now I am really busy... and I am sorry for that.

P.S. About the IE 11 problem... I try this way:

But then I fall from my horse, because the error which appear in the console is related with the "firebase.js" script... so I am not sure (right now) what happen... but to me is strange to avoid IE 11... maybe at least this must me documented in some where... at least one thing can be added here: testing the app in Microsoft Edge works as expected...

P.S.2. My modified code don't work even in Edge... so don't think on use it, but use the code that works like expected. :-/


DecSoft (In thread: include a sqlite database file)

Hello Sytsma,

Please, refer here the SQLite library that you are using. The file that you add using the File Manager is placed inside the app, so probably something like "name: 'pts.db3'," can't work, since we need to refer to the file using a relative path like "app/files/pts.db3". Please, try that file path, and take a look at the app files and assert hat "pts.db3" is certainly in the "app/files" diretory as expected.

I am not completely sure if that file can be writable in a platform like Android... but you can see this later... the first thing is to provide the right path for the file and see what happen: even if we can't write to the database, in principle we can read it, so we can test if we can read it.


DecSoft (In thread: External javascript 'Hello World' using Firebase)

Hello Peter,

I am wrong... we can't assign the variable directly to the Report's Data... we must do something like the below:

You can try that code "as is" in the app sample that you sent to me before. Right now I am not sure if the above code cause that the stuff don't work in IE 11... or if is the core code of the library... maybe the above code can be changed to work in IE 11 too...


DecSoft (In thread: External javascript 'Hello World' using Firebase)

Hello Peter,

If I am not wrong, you can modify your code in order to do something like this:

"querySnapshot" is already an Array of objects, which is what the Report.Data must be.


DecSoft (In thread: External javascript 'Hello World' using Firebase)

I think we are talking about Javascript objects variables with their properties and values, because, what else? Maybe some defined data structure provided by the Firebase Javascript? We must talk about objects... but maybe "masked" by that structure...

Anyway... what is the problem, Peter? Sorry but I start to miss around (maybe we are mixing various things at the same time, and it's better to be more specific I think) can you output in the console the values that you get from the database? If so, what you can see? Is that the problem now?

P.S. If I am not wrong, the Firebase Javascript related code have some problem to run in Internet Explorer 11... you need to search around this too... and see if, in case that that code can't work in Internet Explorer 11... asume that the app can't work in Internet Explorer 11...


DecSoft (In thread: External javascript 'Hello World' using Firebase)

Hello Peter,

So maybe what happen is that the Firebase related Javascript is not compatible with Internet Explorer 11 (which is the internal debugger browser)? About the output... are you sure that we are not talking about JSON too? Maybe with a different format, to say like that... but finally some JSON objects?


DecSoft (In thread: External javascript 'Hello World' using Firebase)

Hello Peter,

If I am not wrong, the "console.info" don't work.... in the internal debugger... but for sure work if you try the app in a browser like Firefox with the developer console opened... so look if you can see something there... because at a first view the "Promise is undefined" error message don't say too much...


DecSoft (In thread: External javascript 'Hello World' using Firebase)

I will take a look... but I start by search for "output" and no results found... :-(


DecSoft (In thread: External javascript 'Hello World' using Firebase)

Hello Peter,

I am curious anyway... what kind of output provide the "non JSON" one? But it's ok... maybe this is not important (right now...), so yes, go ahead, start with what you think that you must to do, and, of course, on any problem, specific error, unexpected result, etc., post it here and we will try to help!


DecSoft (In thread: External javascript 'Hello World' using Firebase)

Hello Peter,

The problem is, of course, the time... I am busy with some customer's projects, also with my own ones... I have no time, for sure, to start to read about Firebase in a deep way right now, Peter. Maybe in the future, but for now maybe we can go ahead in a step by step way...

In principle, whatever thing that you can see working in an HTML file... must work in AB, because our AB apps are also HTML... of course we need what happen in the HTML file, what we do in that, in order to maybe "translate" and do the same thing in AB.

You mention that the database that you want to use don't provide JSON, but, you don't mention what is the format that the database provide... maybe you can use that format directly in AB (again, if the HTML file do it... in principle we can also do it...).

Another possible solution is to use a "bridge" between the database and our app. That is, we can prepare an app's server script, who deal with the database, and finally provide to the app the right data, maybe already converted to JSON, if we wanted that.

So please, try the above, and, of course, if you find any specific error or problem (this is important, that is, to be specific), don't hesitate to post it here, and we will try to help you as bes as possible.

P.S. I want to try your provided app XML, but, can't open it properly... please, take a look... and, if once you be sure that the code is correct, post it here: if then don't work... maybe you need to send me this specific XML (app) using my E-Mail address...


DecSoft (In thread: How to display a web content)

You're welcome! :-)


DecSoft (In thread: Open pdf file and display pdf content)

No problem! :-)


DecSoft (In thread: Open pdf file and display pdf content)

Hello Danny,

We can use an IFrame control like you can see in the "PDFViewer" app sample. We use here our own PDF viewer (the Mozilla PDF viewer). We can also use that viewer in order to shown the PDF using the "OpenWindow" action. Another possibility is to use the "OpenWindow" action without any viewer, but the system may have no viewers. Can be another possibilities like download the PDF file and open it, using the system default viewer. Depending the target platforms we can use one or another approach.


DecSoft (In thread: How to display a web content)

Hello Danny,

The "in app browser" window of the Apache Cordova "Browser" plugin is shown in full screen, and, we can't do nothing about: the user must use the back button of the devices to get back to our app. I think we no need a back button here... since the user know what to do... use the back button of the device... this is my opinion, of course.

So the only way to do what you wanted is to show the external URL inside an IFrame control. Doing that we can certainly place the IFrame and the Push button that we wanted in the app's view. The problem here can be two, but in fact it's the same: the external URL can refuse to be shown inside an IFrame, and, on the other hand, maybe the contents of the external URL don't shown as we can expected inside the IFrame.

We can say that the IFrames can be useful to shown our own external contents, but not "any" website, since the problems referred above. I am not sure if one of these problems is what you get: I am not sure if the external URL that you try to show refuses to be shown in the IFrame (I remember that I try your URL, and it's works inside the IFrame).

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.