Hi,
We need to add additional info panels to the "User Form" panel. When you click on "Users" and then select a user, you currently get two tabs: "User Form" and "Permissions". We need to track additional information about our users, and need to add a couple more panels.
With repositories, we can easily add panels because of the Sonia.repository.openListeners.push() function. I can find no similar operation for users.
One method I've investigated is listening for the "login" event, then registering a tab change listener:
main.getMainTabPanel().on('tabchange', tabChangeListener);
In the tabChangeListener() function, I can check if the tab's xtype is "UserPanel". However, when a user is selected, the panels that are displayed are created through this function:
Sonia.user.setEditPanel = function(panels){
var editPanel = Ext.getCmp('userEditPanel');
editPanel.removeAll();
Ext.each(panels, function(panel){
editPanel.add(panel);
});
editPanel.setActiveTab(0);
editPanel.doLayout();
};
I've tried getting the editPanel myself and adding a new panel, but the Ext JS documentation says something about this method not working for a particular layout, which I believe SCMM is using.
Any advice would be appreciated!
thanks,
Valerie