Make custom view active be default
Is there a way to make a custom module active in the data frame by default? I have a custom form which loads fine at startup and puts it on the first tab of the data frame but the layer list is the second tab and that is the one that is activated by default.
I know I can activate the view through a button or workflow but I'd like it to be active in the data frame at startup just like we can set the properties of the Home panel to be open at startup. Is this possible through desktop.json.js settings?
0
-
Hi Peter,
This is a tough one to answer without delving into the viewer code itself, since the behavior of the shell on startup has been through many iterations over the years, to show and hide elements and also stop the map extent from going to an unexpected location as those elements make themselves available.
We think your best bet would be to add your custom view to the Destop.json.js configuration into the configuration for the Shells module - look for the DataFrameViewContainerViewModel, and add your own view at ordering "0" to have it persist on the left.
I looked for any code that explicitly makes the layer list view visible by default, and while I could not find any, there may still be code that makes the layer list the visible element in the data frame view container. If so, your best bet may be to write a workflow or code that toggles back to your own module.
Regards,
-Malcolm0
Please sign in to leave a comment.
Comments
1 comment