Hi Carsten,
have you been able to find a solution for your requirement?
My problem is slightly different.
I want to render the data for a table view by using an AJAX callback (in order to increase the performance). These are the steps I've done so far:
- Creating the BSP element (CL_CHTMLB_CONFIG_CELLERATOR) with the factory method in the HTML
- Saving the element in the controller class of the view as global attribute
- Render the element (No data was retrieved yet)
- Creating an AJAX callback to call the view's controller class
- Fetch the request with interface IF_CRM_WEB_CALLBACK~HANDLE_REQUEST
Now I have access to the BSP element I've saved in the controller class. In the method HANDLE_REQUEST I retrieve the data. Now I wanted to get the HTML code by using the method IF_BSP_BEE~RENDER_TO_STRING of the BSP element and send it back with a server response.
Unfortunately, this method throws an exception because there's no request instance.
Do you have any hints in order to achieve this my requirement?
Best regards,
Sebastian