简体   繁体   English

WSO2 DAS仪表板-删除未使用的页面

[英]WSO2 DAS Dashboard - Delete unused pages

I can't delete nor edit pages created in WSO2 DAS Dashboard. 我无法删除或编辑在WSO2 DAS仪表板中创建的页面。 The home page works fine with the pre-configured gadgets, but I created 2 new pages and I can't delete them now. 主页可以与预配置的小工具一起正常工作,但是我创建了2个新页面,现在无法删除它们。 I also can't change the name of them, or add gadgets, or anything. 我也无法更改它们的名称,添加小工具或其他任何内容。

Can you let us know what you see in the browser console when you try to delete them ? 当您尝试删除浏览器控制台时,可以让我们知道您在浏览器控制台中看到的内容吗? Dashboard configuration is saved in the registry as a json and you can edit it and delete the unwanted pages if needed. 仪表板配置以json格式保存在注册表中,您可以对其进行编辑,并在需要时删除不需要的页面。 You can browse the registry from management console. 您可以从管理控制台浏览注册表。 Your created dashboard will be in following registry path 您创建的仪表板将位于以下注册表路径中

/_system/config/ues/dashboards/yourDashboardName / _system / config / ues / dashboards / yourDashboardName

You will see a pages array as "pages":[]. 您将看到一个页面数组为“ pages”:[]。

EDIT: This solution may work for you : As mentioned above retrieve the json file and in above pages array in your first page(which is working correctly) you will see a json path as 编辑:此解决方案可能为您工作:如上所述,检索json文件,并在您的第一页(正在正常工作)的上述页面数组中,您将看到一个json路径,如下所示:

"content":{  
            "default":{

Inside that there will be many gadget json configurations starting with a, b ,c etc like below 里面会有很多以a,b,c等开头的小工具json配置,如下所示

"d":[  
                  {  
                     "id":"OnBoardingRequest-overall-0",
                     "content":{  
                        "id":"OnBoardingRequest-overall",
                        "title":"OnBoardingRequest-overall",
                        "type":"gadget",
                        "thumbnail":"fs://gadget/OnBoardingRequest-overall/thumbnail.png",
                        "data":{  
                           "url":"fs://gadget/OnBoardingRequest-overall/gadget.xml"
                        },
                        "styles":{  
                           "title":"OnBoardingRequest-overall",
                           "borders":true
                        },
                        "options":{  
                           "role":{  
                              "type":"STRING",
                              "title":"Gadet Role",
                              "value":"",
                              "options":[  

                              ],
                              "required":true
                           }
                        },
                        "locale_titles":{  

                        }
                     }
                  },
                  {  
                     "id":"OnBoardingRequest-overall-task-breakdown-0",
                     "content":{  
                        "id":"OnBoardingRequest-overall-task-breakdown",
                        "title":"OnBoardingRequest-overall-task-breakdown",
                        "type":"gadget",
                        "thumbnail":"fs://gadget/OnBoardingRequest-overall-task-breakdown/thumbnail.png",
                        "data":{  
                           "url":"fs://gadget/OnBoardingRequest-overall-task-breakdown/gadget.xml"
                        },
                        "styles":{  
                           "title":"OnBoardingRequest-overall-task-breakdown",
                           "borders":true
                        },
                        "options":{  
                           "role":{  
                              "type":"STRING",
                              "title":"Gadet Role",
                              "value":"",
                              "options":[  

                              ],
                              "required":true
                           }
                        },
                        "locale_titles":{  

                        }
                     }
                  },
                  {  
                     "id":"OnBoardingRequest-overall-task-breakdown-0",
                     "content":{  
                        "id":"OnBoardingRequest-overall-task-breakdown",
                        "title":"OnBoardingRequest-overall-task-breakdown",
                        "type":"gadget",
                        "thumbnail":"fs://gadget/OnBoardingRequest-overall-task-breakdown/thumbnail.png",
                        "data":{  
                           "url":"fs://gadget/OnBoardingRequest-overall-task-breakdown/gadget.xml"
                        },
                        "styles":{  
                           "title":"OnBoardingRequest-overall-task-breakdown",
                           "borders":true
                        },
                        "options":{  
                           "role":{  
                              "type":"STRING",
                              "title":"Gadet Role",
                              "value":"",
                              "options":[  

                              ],
                              "required":true
                           }
                        },
                        "locale_titles":{  

                        }
                     }
                  },
                  {  
                     "id":"OnBoardingRequest-overall-task-breakdown-0",
                     "content":{  
                        "id":"OnBoardingRequest-overall-task-breakdown",
                        "title":"OnBoardingRequest-overall-task-breakdown",
                        "type":"gadget",
                        "thumbnail":"fs://gadget/OnBoardingRequest-overall-task-breakdown/thumbnail.png",
                        "data":{  
                           "url":"fs://gadget/OnBoardingRequest-overall-task-breakdown/gadget.xml"
                        },
                        "styles":{  
                           "title":"OnBoardingRequest-overall-task-breakdown",
                           "borders":true
                        },
                        "options":{  
                           "role":{  
                              "type":"STRING",
                              "title":"Gadet Role",
                              "value":"",
                              "options":[  

                              ],
                              "required":true
                           }
                        },
                        "locale_titles":{  

                        }
                     }
                  }
               ],

In those check for id which corresponds to your gadget names and see whether you have a name which you do not have at the moment. 在那些中检查与您的小工具名称相对应的ID,并查看您是否具有当前没有的名称。 May be you have deleted it and now its not using anymore. 可能是您已删除它,现在不再使用它了。 if its there remove the whole a, or b or what ever the corresponding section. 如果在那里删除整个a或b或相应部分。 Please take a backup before doing so. 请先备份。 Then save it . 然后保存。 And it should work. 它应该工作。 As a workaround you can delete the dashboard and create a new one and add the gadgets. 作为一种解决方法,您可以删除仪表板并创建一个新的仪表板并添加小工具。 Hope this helps 希望这可以帮助

Yes, I can delete them in the registry, but I can't edit them in the dashboard editor. 是的,我可以在注册表中删除它们,但是不能在仪表板编辑器中对其进行编辑。 I can't even change their name, or press the delete button. 我什至无法更改其名称,也不能按Delete键。 When I press the name of the page to expand the settings of the page, it doesn't show anything, and the error in the console is the following: 当我按页面名称扩展页面设置时,它什么都没有显示,并且控制台中的错误如下:

index.js:179 Uncaught TypeError: Cannot read property 'site' of undefined
at Object.component.destroy (index.js:179)
at Object.destroyComponent [as destroy] (ues-dashboards.js:93)
at destroyComponent (designer.js:449)
at designer.js:471
at async.js:567
at async.js:246
at async.js:122
at _each (async.js:46)
at async.each (async.js:121)
at _asyncMap (async.js:245)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM