Filter a table view
Hi All,
In a compound layer with 2 table views, is it possible to filter only one of them? (if I apply the filter in Criteria Tab or Column formulla it applies to all the views, so I need to apply the filter after retriving the results)
Thanks,
Regards
Hi,
If you are applying filter under criteria it will effect the whole report.It mean what ever views you are using will get effected.
Can do in this way..didnt check but you can try ;)...
Use FILTER function to make filter get effected to only one column.Now pull two same columns on which you want filter.Now apply filter on column and other column without filter.
Use two pivot table view,you can use one column with filter in one view and the other column without filter in the other view and place the unwanted column in each view under excluded section.
FILTER(Table.Column USING Condition) in fx
If you are using table view i am not sure if its possible or not because we should use all the columns which are in criteria,but try making column with filter as hide in one view and column without filter as hide in other view under properties.
Regards,
Srikanth
Edited by: Srikanth Mandadi on Nov 11, 2010 4:55 AM
Similar Messages
-
Reg. Filter on Table view
Hi,
I am trying to analyze the filter functionality on Table view. The event which is getting triggered when we click on filter is - "Filter".
However, in none of the standard components, I don't see this event has been implemented.
Now, I am confused, where exactly this logic has been implemented, and how this is working.
Could you please help me out for the same.
Thanks,
SandeepHi Sandeep,
Answer to your questions are:
The filter functionality on Table view are handled by framework. Where exactly this logic has been implemented - It has std bsp component behind, you have to find it.
and how this is working - Table view has collection-> collection is converted into iterator-> iterator has methods like sort...etc...this way..
Thats it
Thanks,
Bhushan -
Sort and filter option missing in table view
Hi,
I am not able to see the sort and filter option for all the columns in table view. Could anyone please help me if i need to add something to see that option.
Thanks,
Kamesh BathlaHi,
Thanks for the reply, yes its web UI issue, i am having search and result view and i need sorting option for all the columns in result view. I thought that it is standard functionality, do i need to add something to html file or anyother place to see the sorting options?
Regards,
Kamesh Bathla -
How to Control the width of the Filter row in Table View
Hi !
I have a Table View with filter='application'. The filter works fine but I am not able to control the width of the columns of the tableview .
On filtering, if there are not items in the table view the columns shrink to the minum width....and it looks very odd.
Can you help me how to control the width of the Filter-Row in Table Veiw.
Thanks and Best Regards,
BindiyaHi Raja,
"FIXEDCOLUMN" did not help in the width of the column, but it just showed all the rows merged in the column.
I have a cloumn called "COUNTRY" and its width is set to "20". The Filter of the column "COUNTRY" is a dropdownlist whos value is update with new values.
On filtering if there is any row visible then the column width is adjusted to the maxmimum length of the dropdownlist ( this is because of the "EDIT" attribute in column definition ). But if there is no rows visiblel for the selected filter value then the filter row shrinks to the width = "20" and the dropdownlist is not visible completely.
Need to know how to control the width of the FILTER column.
Thanks and Best Regards,
Bindiya -
Query in table view -filter.
hi,
i have one probs. for using the filter in the tableview.
These r the following code i used.
<%
data: columnDefinitions type TABLEVIEWCONTROLTAB,
wa type TABLEVIEWCONTROL.
data filters type tableviewFilterTab.
field-symbols: <filter> like line of filters,
<wa> type IHTTPNVP2.
append initial line to filters assigning <filter>.
<filter>-columnName = 'connid'.
i want to fetch all connid value from DB in the dropdownlistbox ,insteed of giving manually.here manually i am giving the value to the dropdownlistbox.
i tryed in some ways,but still i am not getting.
can any one help me to sole the probs.
append initial line to <filter>-dropdownlistbox table assigning <wa>.
<wa>-name = '*'.
<wa>-value = '*'.
append initial line to <filter>-dropdownlistbox_table assigning <wa>.
<wa>-name = '0820'.
<wa>-value = '0820'.
%>
<htmlb:tableView id = "tv2"
headerText = "Books that match your query"
headerVisible = "true"
footerVisible = "false"
design = "ALTERNATING"
visibleRowCount = "30"
filter = "server"
sort = "server"
columnFilters = "<%=filters%>"
onRowSelection = "MyEventRowSelection"
selectionMode = "SINGLESELECT"
table = "<%= itab %>" >
with regards,
ravi.Hi Ravi,
Go through the weblog,
/people/sap.user72/blog/2005/05/05/bsphowto-filter-using-dropdown-in-tableview
Regards,
Azaz Ali. -
How to get the count of the entries in the table view
Hello experts,
I have got a requirement where i need to display the total number of entries present in the table view, since the result comprises of several pages. This requirement is even applicable for the filter options in the table view i.e., if i use a filter it should count the total number of entries that satisfy the filter criteria.
Thanks in advance,
Vijayalakshmihi,
its simple,just place an input field in the layout and display the cpunt in that field.
for that do as below,
first in the layout of the page where you are giving tableview tab,in the next line give
<b><htmlb:inputField id="Count"
value="<%=ln%>"
disabled = 'X'/></b>
to display the count in that input field which is disabled.
and if i am mot wrong in the Initialization event, you are writing select query right to populate internal table.
after that write,
<b>describe table it_mara lines ln.</b>
and define this ln in page attributes as type i.
do award points f it helps u,
regards,
Message was edited by:
sowjanya s -
Creating subtotal in a table view
Hi All,
Can I create a subtotal in a Table view based on particular column? Any help would be appreciated.
Thanks in advance,
RKHi,
I am using Siebel Analytics 7.5 version, I don't see the ∑ symbol on the column options (along with filter, properties, sorting, etc.). Is this feature is not available in this version.
Thanks in advance,
RK -
To determine the number of rows selected in a table view (BSP)
Hi,
My requirement is:
I would be selecting 1 row from a table view ( which is made multiselect for another requirement) , and press a button.
The functionality of button is to open a popup window based on the row selected.
I want to display an error message if more than 1 row is selected, and button is clicked.
Message will say that "you cannot select more than 1 row".
For this, I need to know how I can get the number of selected rows in a table view.
I tried using the below code.
But I feel this will work only in DO_HANDLE_DATA method.
The popup would open, even before control comes in this method.
CALL METHOD cl_hrrcf_iterator=>get_tv_index
EXPORTING
p_id = p_tableview_id
pt_form_fields = table_form_fields
IMPORTING
pt_indices = sel_row_index_tab.
Could you please provide me with a solution.
Quick replies will be highly appreciated.
Thanks,
Nisha Vengal.Hi ,
Your TV :
<htmlb:tableView id = "tv1l"
design = "alternating"
visibleRowCount = "10"
fillUpEmptyRows = "true"
onRowSelection = "MyEventRowSelection" <----This is the event you have to use
selectionMode = "MULTILINEEDIT"
filter = "SERVER"
table = "<%= some table %>" >
in DO_REQUEST:
DATA: tv TYPE REF TO cl_htmlb_tableview,
tv_event TYPE REF TO cl_htmlb_event_tableview ,
event TYPE REF TO if_htmlb_data.
event = cl_htmlb_manager=>get_event( request ).
IF event IS NOT INITIAL AND event->event_name = htmlb_events=>tableview.
tv_event ?= event.
CASE event->event_server_name.
WHEN 'MyEventRowSelection'.
count = count + 1 .
if count ne 1 .
errmsg = 'Your message'.
endif.
ENDCASE.
ENDIF.
in View/Layout:
<% if errmsg is not initial. %>
<s cript t y p e = t e x t / j a v a s c r i p t >
a l e r t ("<%= errmsg %>") .
</ s c r i p t>
<% clear errmsg. %>
<% endif. %>
errmsg is a class attribute of type string and count is also a class attribute of type c .
Regards,
Anubhav.
Reward if useful
Edited by: Anubhav Jain on Sep 19, 2008 3:08 PM -
OBIEE 11G help with report narrative and table view
Hi,
I have a report designed like the below, I have used "narrative view" for customer detail and "table view" for order detail. In the narrative view I can say row = 1 and it picks up the first record of the customer detail, but order detail shows all rows. How can I control it so the order detail shows only the detail record of the customer associated. Also how do I go to the second record and so forth. Please help. If this is not possible and if there are any alternates, please let me know. Thanks for your time and help.
Customer Number:
Customer Name:
Customer Address:
Order Detail:
Line number | Order No | Order description | Order Statusssk1974 wrote:
Hi,
I have a report designed like the below, I have used "narrative view" for customer detail and "table view" for order detail. In the narrative view I can say row = 1 and it picks up the first record of the customer detail, but order detail shows all rows. How can I control it so the order detail shows only the detail record of the customer associated. Also how do I go to the second record and so forth. Please help. If this is not possible and if there are any alternates, please let me know. Thanks for your time and help.
Customer Number:
Customer Name:
Customer Address:
Order Detail:
Line number | Order No | Order description | Order StatusWhy don't you do this?
1) Build a dashboard prompt for Customer Number. and save to a PV.
2) Build a report with all the columns for customer and order (in Criteria View) with a filter for the PV to capture the dashboard prompt.
3) Build a pivot table with Customer Number and Customer Name in the Rows section. Put the Customer Address in the Measures section and change the Aggregation Rule to Max.
This will serve as the summary table showing only the information of the customer selected.
2) Build Pivot Table:2 with the Order details.
3) In the Compound Layout, put Pivot table one on the top and Pivot Table:2 below it.
When a customer is selected, you will have the customer data with the order details under it for that customer only. -
How to read specific entry in standard table view :
Hi Friends,
Can anybody please give me code on how to read a record in table view having 5 records.
I have a requirement on how to read the specific address out of 5.
I tried doing in ON_NEW_FOCUS method.
Thanks,
ChitrakantHello,
Try to do it in the DO_PREPARE_OUTPUT mathod before calling super->do_prepare_output( ). What we need to do is,
1. get the collection from context node ( get_collection_wrapper )..
2. filter the entity based on the value ( using iterator !!! )
3. set back to context node
4. call super->do_prepare_output.
Hope it helps.
Regards,
Sandeep Kumar B -
Dear SAP Gurus,
I am working in SAP BSP. I have a table view, in that, I have concatenated date and time field.
I want to create a filter there. Since it is concatenated, the filter is not working.
Please help and guide me how to resolve it.
Regards,
Abu.I agree with Graham...you can implement iterator concept to tackle the requirement...
in TableView element there is a parameter name "Iterattor" which can hold instance of any iterator class...
you can use local or global class to write logic...
correct method can be "Column_Rendering" (can not remember exact name, please check in the interface avaialble in TableView element)
Thanks -
Cannot select the fields for table view WB2_V_MKPF_MSEG2
Hi, I have a program where the query is using join statement of MSEG and MKPF. As part of the performance enhancement I use Table View WB2_V_MKPF_MSEG2 instead.
Validation: Entries in MSEG and MKPF is the same as in WB2_V_MKPF_MSEG2 = OK (via SE16)
But upon debugging the program on SY-SUBRC breakpoint, I can see 5 rows appended in internal table T_MSEG "BUT" the entries are all blank.
The entries in my SE16 are exact data that's appearing on the filter statement in my SQL query below. SE16 is giving correct output, but using table view in my SQL does not give me the correct output.
(Note: This is my first time to use table view in ABAP-SQL)
SELECT MATNR_I BWART_I MENGE_I
FROM WB2_V_MKPF_MSEG2
INTO CORRESPONDING FIELDS OF TABLE T_MSEG
WHERE MATNR_I IN R_MATNR3
AND MATNR_I IN R_COMPNTS
AND WERKS_I EQ P_WERKS
AND BWART_I EQ '931'
AND BUDAT IN S_GSTRP
AND MJAHR EQ W_DOC_YEAR.
IF SY-SUBRC EQ 0.
ENDIF.
THANKS, appreciate your inputs.
Regards,
JunHi Suhas,
I just did a short test just now:
REPORT ZTEST_SELVIEW.
TABLES: WB2_V_MKPF_MSEG2.
TYPES: BEGIN OF Y_MSEG,
MATNR LIKE MSEG-MATNR,
BWART LIKE MSEG-BWART,
MENGE LIKE MSEG-MENGE,
END OF Y_MSEG.
DATA: T_MSEG TYPE STANDARD TABLE OF Y_MSEG.
SELECT MATNR_I
BWART_I
MENGE_I
FROM WB2_V_MKPF_MSEG2
INTO CORRESPONDING FIELDS OF TABLE T_MSEG
WHERE MATNR_I EQ '000000000000004000'
AND WERKS_I EQ '0288'
AND BWART_I EQ '931'
* AND BUDAT EQ '20071117'
AND MJAHR EQ '2007'.
IF SY-SUBRC EQ 0.
ENDIF.
In my debug, T_MSEG contains the same number of rows that my SE16>WB2_V_MKPF_MSEG2(using the hard coded statement in my SQL) "BUT" each rows does not have any entries. Bottomline, I can't only see blank entries in ITAB T_MSEG but the rows are being selected properly, so the itab contains x-number of rows with blank entries.
Thanks. -
Hi Experts,
Im using MVC. I get the data's from MBEW and displays in to one Table view. My table view displays the data's like,
MATNO DESCRIPTION QUANTITY PRICE
M-10 PENCIL 1 10.00
The Quantity field is in Edit mode. Now user change the Quantity from 1 to 5. So,
MATNO DESCRIPTION QUANTITY PRICE
M-10 PENCIL 5 10.00
I want to catch these changed Table view data's in to my Internal Table. Please
Any body give me the idea.
Thanks,
Points Assured.use this HTMLB Tag
<htmlb:tableView id = "ID"
table = "//model/gt_vac"
filter = "SERVER"
keyColumn = "MATNR"
sort = "SERVER"
selectionMode = "SINGLESELECT"
visibleRowCount = "20"/>
Hope this helps.
donot forget to include extension names on top of the view.
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="phtmlb" prefix="phtmlb" %>
Amandeep -
Filter Pivot table data based on custom calculated item in obiee 11g
Hi,
I have requirement as below. Please provide your valuable suggestions
Please note that "Diff" is the calculated item using the formula "$2-$1"
Pivot table View:
Sales ID 20120207 20120220 Diff
1 0 0 0
2 100 0 -100
3 100 200 100
4 100 100 0
5 200 300 100
6 0 0 0
Requirement:
1) Filter rows where measure for both Effective dates(20120207 & 20120220) is equal to 0
2) filter rows where measure for effective date 20120220 is equal to 0 & measure for effective date 20120207 is not equal to 0
3) filter rows where diff is equal to 0
expected Output:
Sales ID 20120207 20120220 Diff
3 100 200 100
5 200 300 100
Please provide an workaround to implement in OBIEE 11.1.1.6.0
Thanks
Edited by: Nagendran Rajendran on Jul 19, 2012 11:42 AM
Edited by: Nagendran Rajendran on Jul 19, 2012 11:54 AMHi,
Many thanks for your Response.
Actually, I have only three columns in the *"Selected Columns"* Section of Answers and they are
Opportunity Id Effective Date Current
Effective Date is based on Dashboard Prompts with 2 Presentation Variables say Effective Start & End Date and that has been used in answers to have a Revenue Variation report for these 2 dates ONLY.
So, As per my Requirement,
1) I have created a Pivot table by having Opportunity ID in Rows Section, Effective Date in Columns Section and Current in Measures Section
2) Created a Calculated Item for Revenue Difference using the formula $2-$1
So, Everything worked fine so far.
and Next Requirement is to filter the rows from the Pivot results which i have mentioned in the post and they are
Pivot table View:_
Sales ID 20120207 20120220 Diff
1 0 0 0
2 100 0 -100
3 100 200 100
4 100 100 0
5 200 300 100
6 0 0 0
Requirement:_
1) Filter rows where measure for both Effective dates(20120207 & 20120220) is equal to 0
2) filter rows where measure for effective date 20120220 is equal to 0 & measure for effective date 20120207 is not equal to 0
3) filter rows where diff is equal to 0
expected Output:*
Sales ID 20120207 20120220 Diff
3 100 200 100
5 200 300 100
Please provide an workaround to implement in OBIEE 11.1.1.6.0
Edited by: Nagendran Rajendran on Aug 8, 2012 4:53 PM -
There was one other thread from years ago detailing this same problem. The only clue was to check whether select all privs were enabled for the user on dba_objects. They are for the user accessing the system. In fact, all tables/views/procs/funcs can be viewed in the tree view of DBVisualizer. For whatever reason, OSD does not show anything.
I'd appreciate any clues! Thank you!
OSD Version Version 4.1.0.18
OS: Windows 7/64
Java: 1.8.0
Connecting to Oracle 11g 11.2.0.3.0Thank you, Gary.
I updated the post with the version info. I did not explicitly install this JDBC driver, so whatever the OSD came with? Unless it is using whatever is installed on my machine, in which case would be the thin driver.
I did check out that post, and I appreciate you sharing it. I did click the 'include synonyms' filter, but behavior remained unchanged.
I would prefer to use OSD, and that is what our dev team was expecting to use, but we just can't see the information. We are using an ID that does not 'own' those tables, per se. But, why would DBVisualizer show these tables, when OSD does not?
Maybe you are looking for
-
J2IUN is of less amount when compared to their payable GL's of BED, ECS a
Dear gurus, For the month J2IUN amount less when compared to their payable GL's of BED, ECS.SECS.what is the resons for this and Possible solution for the above. Thanks Venky
-
I have an old version of itunes on my computer. My current iPhone will only support OS 10.6.8, how can I upgrade to that system instead of the latest version?
-
Is it possible to access the http web interface over the fa1 management interface?
Hello All, I am remotely connected into a Cat 4500 + Supervisor V module via console cable and point to point connection from laptop to fa1 management interface on SupV. SupV module is running IOS 15.0(2)SG8. I am not able to physically chan
-
Adobe X error when using the email button
I recieve an error stating "An error occured while sending mail" I have set Outlook to be the deault, uninstalled Adobe X, repaired Office, etc. Nothing seems to help. It was working untl my last update. Any help would be great. Windows XP SP3 Office
-
Interfacing SRF04 range finder with LABview
Hi all, I have a project to use the SRF04 ultrasonic range finder to measure the height of the person, I already interface it to the computer with using the labview but the problem is that the readings are strange and I can not calculate the distance