Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Having Multiple Queries in a Web Template but displaying only one.

Hi,

I have 5 queries in my Web Template, using WAD 7.0. I want to show just one query in the output and hide the others.

How do i hide the query is my question.

I can use push-button or radio-button, thats not a problem. And also, when i change my selection, i should see another query and the one being displayed should be hidden.

I am using the same Web Template, but want to change the query.

Can someone guide me.

Former Member
replied

Hi Vishal,

No, you need not do any java scripting for this. The command is enough to take care of your situation.

Perhaps an example can help you. Suppose you have Query1 & Query2, and Button1 and Button 2.

For Query1, through the item properties, set Visiblility=Visible, for Query2, set Visibility=Hidden.

This will take care of your initial situation.

Now, take button1, assign the command 'Set webitem properties'. In the command settings, set item binding=query1, and then in the next page of command settings set visibility=hidden. Now, click the button -Next COmmand-> Insert -assign the command 'set webitem properties' once again. Here, select the item binding as query2, then in the command settings, set visibilty=visible. What you have done now is assigning 2 commands to the same button, both getting trigerred with a single click.

Now, this command setting will take care of making query1 hidden and query 2 visible.

Similarly, do the settings for the button 2, with query1=visible and query2=hidden.

Now, the result will be that on clicking button1 and button2, you can toggle between your queries.

Hope this helps..

Regards,

Neethu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question