cancel
Showing results for 
Search instead for 
Did you mean: 

getting a filter value using JavaScript

Former Member
0 Kudos
348

Hi all,

I've created a WAD template that contains a web item of type "Hierarchical Context Menu".

How can I get the filter value filtered by this web item using JavaScript?

Best Regards,

meir aharoni

Accepted Solutions (0)

Answers (1)

Answers (1)

michael_koch9
Active Participant
0 Kudos

HI,

better use a filter item(variable changable in query navigation or char without a variable) or a text element. Specify the item your infoobject.

Set the property to "only values", "for forms" and "no description" put a Layer around the web item:

<div id="hierarchy_value">...item...</div>

with help of this javascript you get the filter value:

<script language="JavaScript">

var val = document.getElementById("hierarchy_value").innerHTML

alert(val);

<script>

Important you have to set (or call) the javascript code behind the item.

Regards Marcus