Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

If the key entry of characteristics is initial - BI Report displays char #. To change this symbol with empty value in Web Application Designer you need to follow the steps:

 

*Step 1:*
In WAD XHTML-view after the string:

<!-- insert data providers, items and other template content here --><br /> 

you need add new string with JavaScript-code:

 

Step 2:<br />Add this code to JavaScript Item (choose from miscellaneous):</p><div style="overflow-y: scroll; background-color: #e0e0ff; width: 483px; height: 220px"><p>function ModifyData( ) { <br />  var Elements=document.getElementsByTagName('td'); <br />  for(var i=0;i<Elements.length;i++) {<br />    if(Elements[i].innerText=='#') {<br />      if (Elements[i].innerHTML.charAt(1) == 'T' ) {<br />        Elements[i].innerHTML = Elements[i].innerHTML.replace('>#<','> <');<br />      } else {<br />        Elements[i].innerText=' ';<br />        Elements[i].style.whitespace='nowrap';<br />      }<br />    }<br />  }<br />}</p><p>function addLoadEvent(func) {   <br />  var oldonload = window.onload;   <br />  if (typeof window.onload != 'function') {   <br />    window.onload = func;   <br />  } else {   <br />    window.onload = function() {   <br />      if (oldonload) {   <br />        oldonload();   <br />      }   <br />       func();   <br />    }<br />  }   <br />}   </p></div><p> </p><p>Explanation:
1) Condition if (Elements[i].innerHTML.charAt(1) == 'T' ) need for correct replace # in hierarchy view.

2) Function +addLoadEvent +need for correct SAP_BI_Scripts works.

3 Comments