Skip to Content
0
Former Member
Jun 19, 2007 at 12:01 PM

Text Element not working...Please Help!!!!

14 Views

Hello Friends,

I have a navigation block in a web report. I want to track the filter values of a particular characteristic(ZC_FLTFLG) that the user sets, because based on the value of this filter I would be activatng the respective hierarchy. For that I am using a Text Element. Given below is the text element:

<SPAN id="ZC_FLTFLG" style="DISPLAY: none">

<object>

<param name="OWNER" value="SAP_BW"/>

<param name="CMD" value="GET_ITEM"/>

<param name="NAME" value="TEXTELEMENTS_1"/>

<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>

<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>

<param name="GENERATE_CAPTION" value=""/>

<param name="SHOW_COMMON_ELEMENTS" value=""/>

<param name="SHOW_VARIABLES" value=""/>

<param name="ELEMENT_TYPE_1" value="FILTER"/>

<param name="ELEMENT_NAME_1" value="ZC_FLTFLG"/>

<param name="ONLY_VALUES" value="X"/>

ITEM: TEXTELEMENTS_1

</object>

</SPAN>

In the Javascript i am trying the following code:

var flag = document.getElementById("ZC_FLTFLG").innerHTML;

alert(flag.value);

But I am getting blank(nothing) values in the alert.

Please help in this issue. Its really important and urgent. Thanks!

Regards,

Prem.