Developer forum

Forum » Dynamicweb 10 » Implement custom admin view

Implement custom admin view

Karol Barkowski
Reply

Hi,

I was looking at the DW10 and there's this section called "Creating custom screens"

But it seems like it's only scratching the surface and it doesn't explain much. It ends up with the example HealthProviderCheckListScreen but it doesn't show how it should be used later. What needs to be done in order to actually see new screen in admin panel? Do I need modify some config entry or do something in admin panel? Write some additional code?
Is there any working example on git where I could see all the code that actually creates different types of custom admin view?


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Karol,

I agree that the documentation is lacking, but we're continually working to improve it.

Screens are only shown when navigating to them. They do not have anywhere special they live. To show a screen, you need to create a NavigateScreenAction and show that in the UI. All buttons, tree nodes and links can take a navigate action -- or any of the built-in actions for that matter.

You can either create your own area, add a new section to an existing tree or inject new elements -- including buttons -- onto existing screens. Which is correct depends on the situation you're trying to solve.

There is an example on our GitHub, but the current version doesn't work on newer versions of DynamicWeb 10. I'm currently in the process of updating it. It does however show some of the concepts even if the code doesn't currently compile. Among other things, it shows

  • Adding to an existing tree
  • Injecting something on a screen
  • Creating screens, queries, commands and models
  • Creating custom components with custom UI
  • Using existing components

You can find it here: https://github.com/dynamicweb/Summit2022_ExtendingTheUI

- Jeppe

 

You must be logged in to post in the forum