Posts by DecSoft

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

DecSoft (In thread: Custom Fonts in HTML Compiler app)

Hello Bryce,

Certain protocol used by HTML Compiler (which, on the other hand, allows the program to work with non extracted files) don't allows to use local resources like custom fonts, in this case.

We have two possibilities here:

  • Use a remote URL for the CSS and fonts: the provided CDN URL, or your own app's server URL.
  • Use the Font Awesome SVG flavor, which works like a charm also in HTML Compiler apps.

In my opinion the second possibility can be better, since the resources remain locals, that is, the SVG JS file is compiled and used without problems by HTML Compiler without extract it to the user's computer. However, the second possibility can be also take in consideration.


DecSoft (In thread: Filter the Report's Data like in a master-detail way)

Hello Paolo,

Anything is possible, since we have the control of the Data variable. For example, supose you put a Select control up to the Report control. The Select control can allows the user to select a category. When the Select control change, you can prepare the Report's Data variable to shown only records of the selected category. Then the user can continue using the Query, to filter records already of certain category. This is a kind of "master-detail", in the sense that we can choose a category in order to show only records of that specific category.


DecSoft (In thread: Filter the Report's Data like in a master-detail way)

Hello Paolo,

I am not sure if can understand. The point is that if we use the Query of the Report, then we are searching in all the Data's fields. This "automatic" query cannot be enough in some cases, but not in others. But what you need to consider is that we can filter the Data variable of a Report by hand, in the server and also in the client.

So, supose we want to shown only records of certain category. We may cannot use the "Query" here, because if the same text/filter appear in some other field of some other record, even if this record is not of the category that we wanted, anyway this record be visible in the Report.

So, supose we want to shown only records of a certain category. What we must to do is to prepare a Data variable which only includes records of that category. After we do that, we can continue using the "automatic" "Query", but now filtering only the records of the wanted category.

I am not sure if can understand or if can explain what I wanted, Paolo, so please, go ahead if you have any further question.


DecSoft (In thread: Filter the Report's Data like in a master-detail way)

Hello Paolo,

In principle, the "automatic" query of the Report controls taken in count all the fields, so, when you filter by "Tutti", you get that category records, or, if you filter by "Pooorcelli", then the appropriate records must be shown (only who contains that "testo" text). For example, you can see the "Report" app sample, and search for names and sports, and you can see that certainly the filter works in both fields: searching for names and sports.

I am not sure if you wanted other thing, because, the above most be enough in principle. Anyway, maybe you must deal with the Report's Data variable by hand, that is, not by using the "automatic" query, but, filter the variable by yourself.

You can do it in the server side or in the client side. The point is that you can iterate the Data variable and look for the query that you wanted, in the fields that you wanted, so, you can prepare a new "Data" variable which only contains the records that you wanted, and then assign that "Data" variable to the Report.

Said that, please, Paolo, post here if you have any further question or doubt.


DecSoft (In thread: Share contents using certain Apache Cordova plugin)

Hello Paolo,

I think that one of the abilities of that plugin is what you wanted. So you finally get it working? Please, post here if you need any specific help and we will try to help you.


DecSoft (In thread: Share contents using certain Apache Cordova plugin)

Hello Paolo,

A couple of things... here is a sample of use of the mentioned Cordova plugin: do not explore all the Javascript API, but, you can read the documentation in order to do what you wanted: the sample prove that, as expected, we can use the plugin in our apps.

https://www.decsoftutils.com/_support/uploads/cordova-plugin-x-socialsharing.zip

On the other hand, maybe you want to try the "Share1" and "Share2" app samples, which use certain existing AB control and don't use any Cordova plugin (this means that the feature can work in all browsers, not only in Cordova compiled apps). You can decide what to use, of course. :-)


DecSoft (In thread: Share contents using certain Apache Cordova plugin)

Hello Paolo,

There is not an easy way to use the "ngCordova" plugin that you refer, because they require certain dependencies that we can't provide, at least right now. However, in fact, that plugin uses this Cordova plugin:

https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin

And there is no problem to use that plugin from our AB apps, just in the same way (using the plugin's Javascript API) than any other Cordova plugin, as we can see in various AB samples like "CordovaPlugins", "SendSMS" and others.

Please, Paolo, read the documentation of the Cordova plugin that I linked above, try it, and, if you find some specific problem or need more help, just post it here.


DecSoft (In thread: Share contents using certain Apache Cordova plugin)

Hello Paolo,

Probably we need to use a Cordova plugin, however, can you explain a little more what you wanted to do?


DecSoft (In thread: Some questions about the touch events)

Hello Adrian,

We already use FastClick to avoid certain "timing" issue between the tap and click on mobile browsers. If I am not wrong, your issue is not specifically related with that.

In principle, we no need touch events, because, at the end a "touchstart" event, for example, finally fire an "onclick" event, also in touch devices. Maybe you don't believe me, but, I have here now various "touch" events implemented in AB, and, after work on it, I am not sure if go ahead or not.

Adding these touch events can made the things more complex, and, I am not really sure if what you wanted amerited to include the touch events in AB. For example, the below code in an app's view Show event can do what you wanted for all the buttons in the view:

Believe me, Adrian, it's not a problem to add these touch events in AB, and, in fact, I already do it for the Push button control. However, I am not sure if go ahead and publish a new AB release with that events. Just because I think that that events can made somethings more complex than now.

Note that the above code, for example, don't prevent the Click event to be executed (this is one of the things that we must to think about), if you want to do that, you must use the "preventDefault" in the "startend" event, like in the below code:

The above code don't work in browsers who don't support the touch (in non touch devices, for example). If you want that the code works also in these browsers you must add the appropriate events, like in the below code:


DecSoft (In thread: Get the total records found from report control query)

Hello Adrian,

I understand what you need, however, certainly the Success event of the Report control is fired when the Data has been loaded, but don't work when we query the Report's. So, trying to find a possible workarond, maybe what we need to do is to query the Data variable by hand, in the client side or in the server side, then we can know the records of the Data variable before set it in the Report's control.


DecSoft (In thread: Get the total records found from report control query)

Hello Adrian,

Probably we must use here a bit of Javascript code, in order to count the visible Report's rows, for example, the below one:

The below do the same using jQuery, since it's available too:


DecSoft (In thread: Click vs space bar event)

Hello Amin,

You are right. I just don't know about this "space bar" behaviour, but, in some cases, certainly we must look at that.


DecSoft (In thread: Click vs space bar event)

Hello Amin,

Curious behaviour... Certainly we can ride on it by a code like the below one in the View's Click event:


DecSoft (In thread: How to restore the different IDE toolbars)

No problem! Always thanks you for support our work. :-)


DecSoft (In thread: How to restore the different IDE toolbars)

Hello Adrian,

Try to close AB and navigate to this directory: "C:\Users\[Your User Here]\Documents\AppBuilder\Config\"; then delete the "Toolbars.ini" file that you can see inside. Then start AB again and see if that solve the problem.

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