locked
screen resolution RRS feed

  • Question

  • We are having an issue with screen resolution, specifically with the hierarchy explorer view page.  When viewing a hierarchy, there is very little room between the hierarchy itself and the clipboard.  Beneath the clipboard, there seems to be a decent amount of white space.   I checked out the ExploreHierarchy.aspx page but it did not appear that this was configurable.  Is it wrapped up in compiled code?  I guess I am wondering if this is something I can customize, and if so, how. 
    Wednesday, February 9, 2011 1:40 AM

Answers

  • Hi Baracus

    here is a little hack to display the clipboard upper :

    1) edit C:\Program Files\Microsoft SQL Server\Master Data Services\WebApplication\Common\Hierarchy.ascx

    2) find :

     

    <div style="width:400px; white-space:nowrap;">
     <sc:Tree ID="objTree" 
    
    

     

    3) insert this tag: height:320px (feel free to modify the px amount)

     

    <div style="width:400px;height:320px; white-space:nowrap;">
     <sc:Tree ID="objTree" 
    
    regards,

     



    Xavier Averbouch
    Avanade , FRANCE
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    Wednesday, February 9, 2011 10:56 AM
  • Hi Baracus and Xavier:

    You can move the clipboard section

     

    <asp:Panel ID="pnlClipboard" runat="server" meta:resourcekey="pnlClipboardResource1">
    

     

    ...

     

    </asp:Panel>
    

     

    upside the Hierarchy Section

     

    <div style="width:400px; white-space:nowrap;">
    

     

    ..

     

    </div>
    

     

    and you will get the clipboard to be upside the  hierarchy explorer view iframe. but anyway, this won't solve the main problem (why the hierarchy explorer view iframe uses so little space from the screen!!!).

    I've done a research, and the solution that Xavier propose, won't help (at least didn't for me), because if you take a look in the hierarchy.aspx generated html code, you'll see something like this

     

    <div style="width:400px;height:320px;white-space:nowrap;"> 
    <div id="ctl00_PlaceHolderMain_Hierarchy_objTree" class="MDMTree"
     style="background-color:Red;font-size:8pt;height:206px;width:1397px;">
    

     

    the 

    id="ctl00_PlaceHolderMain_Hierarchy_objTree"
    

     div tag is the one which rules the height of the hierarchy explorer view iframe, and seems to be generated dynamically (if you press the "show/hide attribute" buttom, you'll notice that the width param of the id="ctl00_PlaceHolderMain_Hierarchy_objTree" will change)

    I did try to:

    a) Modify the  WebApplication\Site.css with something like

     

     #ctl00_PlaceHolderMain_Hierarchy_objTree {height:600px;}
    ...didn't work

     

    b) Modify the WebApplication\Common\Hierarchy.ascx with something like

     

    <div style="width:400px;height:500px;white-space:nowrap;"> 
     <sc:Tree ID="objTree"  
     runat="server"  
     BackColor="red"  
     DataKeyOnClient="true" 
      Font-Size="8pt"  
     HoverNodeCssClass="Hover1" 
     Indentation="20"  
     LoadOnDemand="false"  
     ShowCheckBoxes="true" 
      ShowLines="true"  
     Width="400"	
    height="500" >
    
     ...didn't work

     

    c) Modify the  WebApplication\Explorer\Includes\ExplorerHierarchy.aspx with something like

     

    <iframe id="frHierarchy"
     height="900px" 
    name="frHierarchy" meta:resourcekey="frHierarchyResource1" valign="top" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" runat="server"></iframe></td>
    
    ...didn't work

     

     d) Modify the WebApplication\Explorer\Includes\Hierarchy.aspx with something like

     

    <asp:Content ID="pageContent" ContentPlaceHolderID="PlaceHolderMain" runat="server"> 
     <table cellspacing="0" cellpadding="0" align="left" border="1" height="800px">	 <tr>	
    	 <td valign="top"> 		
     <MDM:Hierarchy runat="server" id="Hierarchy"  ShowNavigation="True" ShowClipBoard="True" Editable="True">
    </MDM:Hierarchy>		 </td>	 </tr> </table></asp:Content>
    
     ... didn't work

     

    e) Modify the WebApplication\Common\Hierarchy.js with something like

     

     function ToggleShowHide(item){ 
    var hierFrame = parent.document.getElementById(parent.Hierarchy_frHierarchyID); 
     var entFrame = parent.document.getElementById(parent.Hierarchy_frEntityID); 
     var hierarchyMetadataFrame = parent.document.getElementById(parent.Hierarchy_frMetadataID); 
     if (entFrame.width != 0) 
    {  var HWidth = (screen.width - 24);  
    hierFrame.width = HWidth;	
    hierFrame.height=600;  
    entFrame.width = 0;  
     entFrame.style.visibility = 'hidden';  
     if (hierarchyMetadataFrame)  { 
       hierarchyMetadataFrame.width = 0;  
     hierarchyMetadataFrame.style.visibility = "hidden"; 
      } 
     } else { 
      var HWidth = ((screen.width) * .4); 
     var EWidth = ((screen.width) * .58); 
      hierFrame.width = HWidth;	
    hierFrame.height=600;  
     entFrame.width = EWidth;
    entFrame.height=600;  
     entFrame.style.visibility = 'visible';  
     if (hierarchyMetadataFrame)  { 
       hierarchyMetadataFrame.width = EWidth;	
     hierarchyMetadataFrame.height=600;   
     hierarchyMetadataFrame.style.visibility = 'visible'; 
     } 
    }	
     return true;}
    
    ...didn't work also......

     

     The only workaround that I found was...

    When i was playing with screen resolutions, I notice that the height is calculated based on it, so i followed the next steps

    1. Change my resolution to 1600x1200

    2. Opened MDS, and then a Hierarchy

    3. Change my resolution back to 1440x900

    That steps gets me a bigger (not enough) hierarchy iframe. I know that this workaround it's unacceptable for a client, and not even applicable to all computers (if your video card or your monitor doesn't allow bigger resolutions you can't use it) .

    I'll appreciate if you can share the solution (if you guys found it) or if a Microsoft Tech can tell us what to do.

    Well I hope that i can save some time to other with the same problem (at least for not trying the same as me)

    Cheers

    Francisco Villegas Athens
    Business Intelligence and Performance Management Consultant
    Chile

    Wednesday, March 2, 2011 5:40 AM

All replies

  • Hi Baracus

    here is a little hack to display the clipboard upper :

    1) edit C:\Program Files\Microsoft SQL Server\Master Data Services\WebApplication\Common\Hierarchy.ascx

    2) find :

     

    <div style="width:400px; white-space:nowrap;">
     <sc:Tree ID="objTree" 
    
    

     

    3) insert this tag: height:320px (feel free to modify the px amount)

     

    <div style="width:400px;height:320px; white-space:nowrap;">
     <sc:Tree ID="objTree" 
    
    regards,

     



    Xavier Averbouch
    Avanade , FRANCE
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    Wednesday, February 9, 2011 10:56 AM
  • Hi Baracus and Xavier:

    You can move the clipboard section

     

    <asp:Panel ID="pnlClipboard" runat="server" meta:resourcekey="pnlClipboardResource1">
    

     

    ...

     

    </asp:Panel>
    

     

    upside the Hierarchy Section

     

    <div style="width:400px; white-space:nowrap;">
    

     

    ..

     

    </div>
    

     

    and you will get the clipboard to be upside the  hierarchy explorer view iframe. but anyway, this won't solve the main problem (why the hierarchy explorer view iframe uses so little space from the screen!!!).

    I've done a research, and the solution that Xavier propose, won't help (at least didn't for me), because if you take a look in the hierarchy.aspx generated html code, you'll see something like this

     

    <div style="width:400px;height:320px;white-space:nowrap;"> 
    <div id="ctl00_PlaceHolderMain_Hierarchy_objTree" class="MDMTree"
     style="background-color:Red;font-size:8pt;height:206px;width:1397px;">
    

     

    the 

    id="ctl00_PlaceHolderMain_Hierarchy_objTree"
    

     div tag is the one which rules the height of the hierarchy explorer view iframe, and seems to be generated dynamically (if you press the "show/hide attribute" buttom, you'll notice that the width param of the id="ctl00_PlaceHolderMain_Hierarchy_objTree" will change)

    I did try to:

    a) Modify the  WebApplication\Site.css with something like

     

     #ctl00_PlaceHolderMain_Hierarchy_objTree {height:600px;}
    ...didn't work

     

    b) Modify the WebApplication\Common\Hierarchy.ascx with something like

     

    <div style="width:400px;height:500px;white-space:nowrap;"> 
     <sc:Tree ID="objTree"  
     runat="server"  
     BackColor="red"  
     DataKeyOnClient="true" 
      Font-Size="8pt"  
     HoverNodeCssClass="Hover1" 
     Indentation="20"  
     LoadOnDemand="false"  
     ShowCheckBoxes="true" 
      ShowLines="true"  
     Width="400"	
    height="500" >
    
     ...didn't work

     

    c) Modify the  WebApplication\Explorer\Includes\ExplorerHierarchy.aspx with something like

     

    <iframe id="frHierarchy"
     height="900px" 
    name="frHierarchy" meta:resourcekey="frHierarchyResource1" valign="top" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" runat="server"></iframe></td>
    
    ...didn't work

     

     d) Modify the WebApplication\Explorer\Includes\Hierarchy.aspx with something like

     

    <asp:Content ID="pageContent" ContentPlaceHolderID="PlaceHolderMain" runat="server"> 
     <table cellspacing="0" cellpadding="0" align="left" border="1" height="800px">	 <tr>	
    	 <td valign="top"> 		
     <MDM:Hierarchy runat="server" id="Hierarchy"  ShowNavigation="True" ShowClipBoard="True" Editable="True">
    </MDM:Hierarchy>		 </td>	 </tr> </table></asp:Content>
    
     ... didn't work

     

    e) Modify the WebApplication\Common\Hierarchy.js with something like

     

     function ToggleShowHide(item){ 
    var hierFrame = parent.document.getElementById(parent.Hierarchy_frHierarchyID); 
     var entFrame = parent.document.getElementById(parent.Hierarchy_frEntityID); 
     var hierarchyMetadataFrame = parent.document.getElementById(parent.Hierarchy_frMetadataID); 
     if (entFrame.width != 0) 
    {  var HWidth = (screen.width - 24);  
    hierFrame.width = HWidth;	
    hierFrame.height=600;  
    entFrame.width = 0;  
     entFrame.style.visibility = 'hidden';  
     if (hierarchyMetadataFrame)  { 
       hierarchyMetadataFrame.width = 0;  
     hierarchyMetadataFrame.style.visibility = "hidden"; 
      } 
     } else { 
      var HWidth = ((screen.width) * .4); 
     var EWidth = ((screen.width) * .58); 
      hierFrame.width = HWidth;	
    hierFrame.height=600;  
     entFrame.width = EWidth;
    entFrame.height=600;  
     entFrame.style.visibility = 'visible';  
     if (hierarchyMetadataFrame)  { 
       hierarchyMetadataFrame.width = EWidth;	
     hierarchyMetadataFrame.height=600;   
     hierarchyMetadataFrame.style.visibility = 'visible'; 
     } 
    }	
     return true;}
    
    ...didn't work also......

     

     The only workaround that I found was...

    When i was playing with screen resolutions, I notice that the height is calculated based on it, so i followed the next steps

    1. Change my resolution to 1600x1200

    2. Opened MDS, and then a Hierarchy

    3. Change my resolution back to 1440x900

    That steps gets me a bigger (not enough) hierarchy iframe. I know that this workaround it's unacceptable for a client, and not even applicable to all computers (if your video card or your monitor doesn't allow bigger resolutions you can't use it) .

    I'll appreciate if you can share the solution (if you guys found it) or if a Microsoft Tech can tell us what to do.

    Well I hope that i can save some time to other with the same problem (at least for not trying the same as me)

    Cheers

    Francisco Villegas Athens
    Business Intelligence and Performance Management Consultant
    Chile

    Wednesday, March 2, 2011 5:40 AM