Hi Nikhil,
Yes, it is possible to increase the number of interaction records that are being displayed.
The code that is limiting the number of interaction records to 4 is present in the Custom Controller ICCMP_BT_IRHIST/CuCoIRHist. The code is present in the method GET_LAST_INTERACTIONS of the implementation class of the custom controller.
The below code results in only a few Interaction Records based on the confirmed partner;
TRY.
CREATE OBJECT lr_query_service.
CATCH cx_crm_unsupported_object.
me->typed_context->btordercusthist->clear_collection( ).
RETURN.
ENDTRY.
lr_query_service->set_query_parameters( it_parameters = lt_parameter ).
lr_queryres_col = lr_query_service->get_query_result( ).
If all the Interaction Records are to be fetched from the database, then the search query 'BTQuery1O' needs to be executed. The parameters for partner number and object_type are to be passed.
Once, result query is obtained, the same collection can be set to the context node BTORDERCUSTHIST of this custom controller.
Finally, the code to limit the number of Interaction records to 4 which is given below needs to be commented;
* restrict to 4 result entities
lr_bo = lr_queryres_col->find( iv_index = 5 ).
WHILE lr_bo IS BOUND.
lr_queryres_col->remove( iv_bo = lr_bo ).
lr_bo = lr_queryres_col->find( iv_index = 5 ).
ENDWHILE.
Regards,
Jekin