cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

pass cmd by url

Former Member
0 Likes
550

Hello,

I understand that to set filter values in template, I can use <param> or sap_bw_url.

What I am unclear is how to apply sap_bw_url. Does using it mean I need to write JS code?

Are the 2 commands equivalent of each other?

And what does setting filter values really mean?

Does it mean the filtered value will become the default or cannot be set with other values once I restrict by the command? Is it just the initial default value and changeable when user selects a dropdown list?

Please help me if possible.

Alfonso.

View Entire Topic
Former Member
0 Likes

Hi,

Usually we use this feature to put a default/ initial selection, so the user doesn't have to get prompted with the selection screen, mostly on cockpit scenario. the filter value still can be changed if you refresh the query, etc.

For the implementation we use JS to generate the url.

Former Member
0 Likes

Thanks Eddo. But how could I permanently filter to 'all' values for View A and allow filtering any values for View B when both share the same filter object like dropdownlist?

Former Member
0 Likes

Alfonso,

When you add the value in the <param> tag , it means that the valule is fixed , however , if you want to change the value at runtime , like the user selecting a value from the dropdown and then generating a template based on the value selected , you could use the command URL. teh command URL has to be generated using JScript , but then it involves mainly string operations and is pretty simple.

Arun

Former Member
0 Likes

Arun,

I tried the restriction using <param...filter_value..>

But this simply set it as initial value when report is launched. When filtering is set by using the dropdownlist, in another tab, this <param...filter_value...> is overwritten. So, it is not a solution.

My requirement is dynamic. it the restriction must be reverted back to original as set in <param...filter_value...> whenever this tab is clicked.

Could anyone pls share with me the JS command to dynamically set filter value for an infoobject whenever a particular tab is selected?