Hi, Readers.
Previously, I briefly shared two practical examples of custom JavaScript Control Add-ins for Business Central.


Today, I would like to share another custom Control Add-in that can be implemented in Business Central – a custom Mini Widget similar to the one in Windows. Here is a visual preview of the design:

Since this add-in retrieves data via external APIs, you need to enable ‘Allow HttpClient Requests’ in the extension target setting before using it.

As for the weather feature, I used Codeunit 7568 Geolocation to retrieve the current client device location, so location permission must also be granted before use.
PS: Getting geographical location information from the client device (Latitude, Longitude)

Since my primary goal was to demonstrate the proof of concept, I didn’t include customizable settings. However, you can refer to my source code and add your own settings to make this Mini Widget even more flexible.
Source code: Github (Please note that the source code is for reference only, you can improve it according to your own needs)
END
Hope this will help.
Thanks for reading.
ZHU




コメント