Blog
All Blog Posts | Next Post | Previous PostTMS WEB Core 2.4.5.0 landed
Thursday, January 11, 2024
We are thrilled to announce the latest update to our product, TMS WEB Core! In version 2.4.5.0, we've added several exciting new features and improvements that will enhance your web application development experience. Whether you're a seasoned developer or just getting started, these additions are designed to make your life easier and your projects more powerful. Let's take a closer look at what's new:
Center Property
We've introduced a new 'Center' property for TWebCustomControl, which allows you to easily center your controls within their parent containers. This feature simplifies the process of aligning and positioning controls, making your user interface design more intuitive. Horizontal and vertical center alignment can be set. It was introduced in the base class and we have exposed this for container controls where it makes most sense like TWebPanel, TWebHTMLDiv, TWebHTMLSpan, TWebHTMLContainer, ...
TWebLeafletMaps
TMS WEB Core now includes TWebLeafletMaps, a powerful mapping component that enables you to integrate interactive maps into your web applications. Whether you need to display locations, track routes, or provide directions, TWebLeafletMaps has you covered. TWebLeafletMaps uses the free Leaflet JavaScript library that in turn uses the free OpenStreetMaps tile servers. So, this offers you mapping functionality that is completely free.
GPXToCoordinates Function
We've added a new function, GPXToCoordinates, which allows you to convert GPX (GPS Exchange Format) data into polyline coordinates. This feature is especially handy for applications that involve GPS data processing, such as fitness trackers or location-based services. Just add the XML GPX contents as string and this function returns the array of coordinates. This makes it possible to visualize a GPX track in just a couple of lines of code.
var s: string; ja: TJSArray; begin s := await(string, WebClientDataset1.ReadBlobAsText('GPXBlob')); ja := GPXToCoordinates(s); WebLeafletMaps1.AddPolyLine(ja); end;
ElementHandle property for TWebFrame
TWebFrame now includes a public property called 'ElementHandle.' This enhancement provides greater flexibility and control when working with frames, allowing you to manipulate their content more effectively.
Stream any TObject to JSON and Vice Versa
To simplify data serialization, we've introduced a class helper that enables you to effortlessly stream TObject to JSON and vice versa. This feature streamlines data interchange and makes it easier to work with structured data in your web applications. This way, you can directly map JSON received from a REST API server to an object in your app.
uses WEBLib.Utils; var MyObject: TMyObject; js: JSValue; begin MyObject := TMyObject.Create; MyObject.Text := 'Hello world'; MyObject.Number := 1234; MyObject.Birthday := EncodeDate(2024,1,11); MyObject.Employer := false; MyObject.Completion := 12.34; MyObject.SubProp.Caption := 'Caption'; MyObject.SubProp.Tag := 69; js := MyObject.ToJSON; console.log(js); end;
Inspecting this in the browser console, the result is:
TWebDBComboBox ListSync Property
The ListSync property added to TWebDBComboBox is a convenient addition when working with the DB-aware combobox. It ensures that the ListSource dataset automatically updates its active record when the combobox selection changes. This feature simplifies data synchronization and improves user interactions. Numerous smaller enhancements & fixes
As a result of intense interaction with so many TMS WEB Core users over the past months, this release comes also with many smaller improvements & fixes. See the full version history for details.
New to TMS WEB Core?
Grab the free trial now and explore this wonderful new world of possibilities. To help you on the learning cover, other than our extensive documentation and numerous demo apps, there is the TMS WEB Core bible written by our colleague Holger Flick for you:
You can order your copy here.
Conclusion With these exciting new features and enhancements in TMS WEB Core 2.4.5.0, we are committed to providing you with a robust and user-friendly web development toolkit. Whether you're building web applications for business, leisure, or anything in between, our goal is to empower you with the tools you need to create outstanding web experiences.
Upgrade to the latest version of TMS WEB Core and explore these features to take your web development projects to the next level. We're excited to see what you'll create with these powerful additions!
Stay tuned for more updates and enhancements as we continue to evolve TMS WEB Core to meet your web development needs. Thank you for choosing TMS WEB Core as your web development solution!
Bruno Fierens
This blog post has received 3 comments.
Schwartz David
var
js: JSValue;
asm
js = {"Text":"New text", "Number":5678, "Birthday":"2024-07-25T00:00:00","Employer":true,"Completion":56.78,"SubProp":{"Caption":"Test","Tag":123}};
end;
MyObject.FromJSON(js);
Bruno Fierens
All Blog Posts | Next Post | Previous Post
The class helped for TObject and the leaflet maps are two excellent additions among so many great things about the product.
Nice work!
Ian Barker