Skip to Content
0
Former Member
Apr 26, 2010 at 10:46 AM

How to display data in tableview based on a dropdown filter selection

73 Views

Hi All,

I have implemented a flow logic based BSP page to display the SFLIGHTS table when I open this page it displays all records in the table SFLIGHTS. I would like the set a drop down box filter on CARRID and CONNIND. Only once the user selects the CARRID and CONNID and presses on display buttont the data for that selection in the drop down box should be displayed.

Can you kindly share the code how I can put 2 drop down boxes and make the data retrieval on the page occur based on the dropdown box selection. The layout page is as below. Appreciate if you could kindly share the code to implement this.

<%@page language="abap" %>

<%@extension name="htmlb" prefix="htmlb" %>

<htmlb:content design="design2003" >

<htmlb:page>

<htmlb:form>

<htmlb:tableView id = "tv1"

visibleRowCount = "10"

selectionMode = "lineEdit"

table = "<%= flights %>"

filter = "SERVER"

sort = "server"

iterator = "<%= iterator %>" />

</htmlb:form>

</htmlb:page>

</htmlb:content>

Thanks

Karen