The webinar overviewed these practices and steps:
1. Adding control add-in
Add control add-in to the page and set up the necessary setup.
2. Invoking events
3. Factbox control add-in
Create a factbox-control add-in page in order to add it to any page.
4. Embedding customer‘s Home page to FactBox
5. Managing add-in with NAV actions
Not wanting to load the page on every customer? Let’s create an action for loading it.
Let’s go even further – auto-create buttons in control add-in to load our webpage. This part shows how to create buttons to communicate back to Navision.
Please find all questions and answers below
Q: Is there any CSS that would help to look like buttons in NAV?
A: You have to search for it. Just enter ‘Business Central CSS guidelines’ and you can find plenty of examples.
Q: Is it possible to change the appearance of the standard NAV controls?
A: Now, no. You can only manage what is inside of your control add-in. Everything outside these values is not accessible and you can’t manage it.
Q: Can user input data be returned from control add-in?
A: Yes, it would be in a similar manner as creating a button callBack, but you would need to create form (or other HTML means to do that) object.
Q: Can we use frameworks like the knockout, angular?
A: Yes, you can do that.
Q: Are there any licensing restrictions on control add-ins?
A: Not that I am aware of.
A: No, there is no need for the installation.
Q: Can we use JS as ping pong in old NAV?
A: Yes, you can do that. You just create a loop of calling back and forth to NAV. Also, you need to create a delay period, and you need to do that in HTML modification, but it’s completely possible.
Q: Can we use external CSS files like bootstrap?
A: Yes, it should be possible. You just have to provide the correct links to it on the control add-in setup.
Q: Is there a possibility to access data from other records (for example Setup) from within JS by using callback or something like that?
A: Yes, you can do that. If you look at the code, you can see that here you can create additional fields, options, data, buttons, etc. Also, you can create a full communication between JS, control add-in and NAV.
Q: How to control the order and position of the object in the control?
A: Please check HTML guidelines on that. You should be able to find a lot of information on this topic.
Q: Can we debug the JS code?
A: No, we can’t debug it, but we can investigate how it’s created. If you go to ‘More tools’ -> ‘Developer tools’, you can check how it’s created and you can inspect every element. But for now, Business Central NAV doesn’t allow you to debug it.
Please find the project shared during the webinar in the GIT repository here.
Feeling that webinar wasn’t enough for you and want to know more about this or any other Extensions topic? We provide Dynamics 365 Business Central Extensions Training course, which is always adjusted according to individual partner requirements, professional experience, and skills.