I am using 5.0 RC and want to move the additionRoles in the Account screen to the rightone column.
As you can see on the image, I added a QGroupBox called WW Roles. The reason I want to do that is that we have many additional roles and it takes up too much screen space.
I added the new group called WW Roles and also a QGridLayout and named it "additionalRoles". I was hoping that the addition roles from the source code would populate my ny group.
But The additional roles are not displayed where i want them and now there are between the Type and Roles groups.
I removed the items that originally displayed the additional roles.
my code in crmaccount.js
var layout15 = mywindow.findChild("gridLayout_15");
if ( layout15)
// get rid of the old layout
var rel_layout = mywindow.findChild("gridLayout_5");
var roleGroup = toolbox.createWidget("QGroupBox",rel_layout,"moreRoles");
roleGroup.title = "WW Roles";
var layout_add_role = toolbox.createLayout("QGridLayout", roleGroup);
layout_add_role.name = "additionalRoles";
Can this be done through scripting and can anyone help.