I have developed a custom component and view of result table type. so when i run this component then in webui HOME page iam getting this information message as "More than 5 entries found; limit search criteria or change settings". I tried deleting this message from global message container also but its not working.
Any idea why thie message is coming??
Thanks for your prompt reply..
I have writrten my login in DO_INI_CONTEXT..refer below how iam filling my data....
lr_core ?= cl_crm_bol_core=>get_instance( ).
lr_core->load_component_set( 'BT' ).
lr_query ?= cl_crm_bol_dquery_service=>get_instance( 'BTQAct' ).
ls_parameter-name = 'MAX_HITS'.
ls_parameter-value = '05'.
append ls_parameter to lt_parameter.
lr_query->set_query_parameters( it_parameters = lt_parameter ).
data: lv_date type string.
lv_date = sy-datum.
call method lr_query->add_selection_param
iv_attr_name = 'END_DATE_RANGE'
iv_sign = 'I'
iv_option = 'LT'
iv_low = lv_date.
lr_coll ?= lr_query->get_query_result( ).
if lr_coll is bound.
me->typed_context->btqract->collection_wrapper->set_collection( lr_coll ).
The source of the message you are receiving are the following lines of your code:
ls_parameter-name = 'MAX_HITS'. ls_parameter-value = '05'. append ls_parameter to lt_parameter. lr_query->set_query_parameters( it_parameters = lt_parameter ).
By this code, you are setting maximum number of results for the query to 5. And since your search fetches more than 5 results, the corresponding GenIL is adding that message. Basically, whenever any search fetches results more than the number specified in max_hits, this message is added. This is standard in CRM Web UI.
So, you can get rid of this message by:
1. removing above piece of code (the default max_hits is 100)
2. set a max hits greater than 5 if you have some specific requirement on number of records to be fetched
Thanks for ur reply.
I have changed my report and set the max_hits to 100. Now iam not able to see that message but another problem is now that for some user that particular assignment block is display and for some its not. there is no problem on authorization point of view..I tried to set the external breakpoints also but tht view is not getting called only.
I guess its because i have set max_hit to 100 and the query is fetching more than 100 results !!!! Is this the issue??
Any idea in this issue.
If you wanna get rid of this message, you need to find where its coming.
To find that set the parameter BSPWD_USER_LEVEL to 9 in Su3 user params.
then when you hover your mouse on the message in webui, u wil be able to mgg type, id, number, with that you can trace down.
I guess this might be coming from the search method of this BOL object. You need to search for the message usig crm_message_search and delete it using crm_message_delete.
Hope it helps. Satish