is that any tool to help migrate nsb project from bs4 to bs5?
Thanks
Teo
is that any tool to help migrate nsb project from bs4 to bs5?
Thanks
Teo
Sorry, there is no tool to automate this.
I’ve just spent the past 10+ weeks (not finished yet) rewriting a very large app from scratch (a lot of the code is copy and paste), which was based on bs4 to now bs5, and can say while it takes time, bs5 is much better and certainly worth doing.
It’s also a good opportunity to clean up old code and optimize existing code.
Agreed. Bootstrap 4 is no longer being developed - only critical security patches are being made.
And… Bootstrap 5 is better.
Just brainstorming here, but since there is no migration tool available, would it be possible to have kind of a report feature that would generate a PDF or XLS file naming all forms, its controls to make it easier for us to rewrite them from scratch and not miss any one?
I agree that copying the form code between projects would work for (most) of that piece, but the controls are the ones that would be a challenge to migrate.
No tool like this exists - but it would be easy to write. In your project folder, open the {projectName}.project file. The children property lists all the forms in the project. You can then look in the forms folder: each form has a {formName}.json file which also has a children property which lists the controls on the form.
This is what I did.
I created a brand new empty AppStudio project.
As I have two monitors, I also opened the original project (you can open more than one AppStudio project at the same time).
I had the original project on one monitor, and the new blank project on the other monitor.
Then, form by form I duplicated the original forms in my new project but using all bS5 elements and controls.
It takes a while to get used to how to add bs5 inputs because it’s a completely different method to bs4, but once you got your head around it its fine.