on 06-22-2009 5:22 PM
Hi,
How can I insert If condition into WEBAPI I created.
Basically my requirement is to Filter on Product Hierarchy nodes.
For that purpose I followed the below steps.
Step1: In the Variable Form
I created a Combo Box with Global List of Hierarchy Nodes
Hierarchy Node ---Text
Step2: I created a WEBAPI using below code
'FILTER_NODE_IOBJNM=0HIER_NODE; FILTER_VALUE=' & @Product & '; FILTER_COLLAPSE=; FILTER_IOBJNM=ZPRODUCT;'
And it is working correctly when the user selects the corresponding node and the relevant node results are displayed.
In BW as it is a custom Hierarchy there is no node for ALL which includes all the nodes.
My requirement is when the user selects ALL from the dropdown list of product it should display all the Hierarchy nodes available in Global List.
So for that I reason I am planning to inset a IF...Condition in my WEBAPI...,I tried in different syntax is not working.
I created any Entry with blank key in Global List for all
Please update me with the required syntax
IF (Product=u2019 u2018,N1:N2:N3:N4, 'FILTER_NODE_IOBJNM=0HIER_NODE; FILTER_VALUE=' & @Product & '; FILTER_COLLAPSE=; FILTER_IOBJNM=ZPRODUCT;')
(If product is null then it should display results for all nodes else apply the filter condition)
I am using VC 7.1
Thanks in advance
Please update
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.