on 12-10-2008 8:51 PM
Hi friends,
I have crated an OVS search help. .and its working fine when i hit F4.
but when i hit search button.. the result table is showing more number of rows(blank), though the result has just 2 records returned.
there are many no of blank rows. i wnat to get rid of this.
i also tried to give the default no of rows in my componet (OVS), layout table.
but still its not decreasing.
can someone help me howto solve this.
Niraja
Hi Niraja,
For ur case , you just need to make a small change in the code you have written.
In the Phase 0 (i.e co_phase_0.) when you are setting the configuration please change the RowCount to -1.
WHEN if_wd_ovs=>co_phase_0.
ovs_callback_object->set_configuration(
row_count = -1 ).
In Case you have not implemented this phase do implement the above code in the event handler.
I hope this way your problem will be solved.
Thanx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi u can refer to below link
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/ovs%252bsearch%252bhelp
hope it may help u
regards reeha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niraja,
The OVS would display many number of blank rows but only the ones containing data would be looking like editable (they aren't editable though...) with a bright white background. The rest of the rows would appear in greyed out manner. Isn't it how it appears for you?
Regards,
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the event handler of OVS, in configuration phase i.e. if_wd_ovs=>co_phase_0
set_configuration function is there, in this one export parameter row_count is there.
In this u can set the no of rows which u want in the output. if u does not want the blank rows then make this parameter as '-1'.
Like in the below coding ,
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 2
row_count = -1 ).
Thanks,
Pankaj Aggarwal
Edited by: Pankaj Aggarwal on Dec 11, 2008 6:57 AM
Hi Niraja,
When you implement event handler for OVS search, you must have seen the code that gets automatically generated when you assign OVS event to that event handler. i.e.
case ovs_callback_object->phase_indicator.
THE FIRST PHASE WHICH SET CONFIG PARAMETERS
--------------------------------------------
when if_wd_ovs=>co_phase_0. "configuration phase, may be omitted
in this phase you have the possibility to define the texts,
if you do not want to use the defaults (DDIC-texts).....
and so on.......
so here inside co_phase_0 you can set the requried data by calling this method:
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 2
row_count = 20 ).
Here I have hard coded no. of rows to 20 you can just set it to variable which may be holding your rowcount.
I hope this will help you.
Regards,
Neha Modi
Hi Niraja,
Guess not as great a master as you are though. I dont get as to why the user would have any problem to select a row. The button is displayed at the bottom end of the OVS help window below the waveline so I dont understand as to why you say that the user has to scroll to find that bottom while that button is always visible. One more thing is that the user needn't do a lead selection & click the copy button as he can directly click on the row to copy a row. Am sorry if you have implemented any other special functionality & am going wrong.
Regards,
Uday
Hi Niraja,
You can refer the below blog.
[https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9502] [original link is broken] [original link is broken] [original link is broken];
Hope this will help.
Thanks
Shruti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.