!--a11y-->
Web Item Attributes 
You can access the current attribute values of a Web item using this JavaScript function. For example, you can specify whether a Web item is visible. This will help you to create a Web application in which you can switch between two views, for example between a chart and a table, using a link.
|
JavaScript Function |
SAPBWGetItemProp |
|
Parameter |
Description |
|
Name |
Logical name of the Web item |
|
Return value |
Array with Web item properties The information is stored as follows: new Array(itemName, new Array(attributeName1,attributeValue1), new Array(attributeName2,attributeValue2), ...) |

Specifying whether a Web item is visible:
<SCRIPT language="JavaScript">
<!--
var prop = SAPBWGetItemProp("myItem");
var hidden = true;
if (prop != null){
for(i=1;i<prop.length;i++){
if (prop[i][0] == "HIDDEN") hidden = (prop[i][1] == "X");
}
}
--->
</SCRIPT>