Category: CRM WEB UI

Loading Jquery Correctly into BSP Application

Sometimes, we might want to use jquery in our bsp applications to create some pretty views with animation. But if you couldn't load it correctly, it might be very annoying. Thanks to SAP's Automatic Delta Handling (ADH) in BSP applications, when the page loads We can load it multiple times unnecessarily and call respective functions multiple times, after you might end up with a messed up view. Here are some tips to use jquery correctly, to keep you out from these troubles. First
Read More »

Implementing Character Limit Feature for TextArea Element in a BSP with JavaScript

Here is a good example of using JavaScript in WebUI BSPs. In this example, we will try to implement character limit functionality for a TextArea field in a bsp. First of all, we need to ID property of Html Element of the Text Field. To get that, we could use below code in .htm. DATA lv_textArea_id TYPE string. CONCATENATE controller->component_id '_search_message' INTO lv_textArea_id. The "search" phrase, in concatenate action, is the name of the context node of the property that ge
Read More »

How To Format Cell Color in BSP

It is quite simple to color cells in a BSP table using getter methods to achive a better look We start by generating the GET_P method of the attribute that we want to color conditionally   Then in the getter method, we use find method of the collection wrapper to determine current table line Next we set the value of the returning parameter under the condition(s) we provide and we are done METHOD GET_P_PARTNER_SERV. DATA: lr_collection TYPE REF TO cl_bsp_wd_collection
Read More »

How To Modify Configuration of Form View Dynamically

Here we want to modify the configuration of a form view. The idea is very simple, to convert the XML formatted configuration data to ABAP, modify and convert it back to XML We achive this in the .hml file of our view We start with the variables to be used DATA: lr_view_desc TYPE REF TO if_bsp_dlc_view_descriptor, lv_xml TYPE string, lv_xml_inp TYPE bsp_dlc_xml, ls_config TYPE bsp_dlc_table_descr, lt_adv_conf TYPE bsp_dlct_adv_conf_itm,
Read More »

How To Hide Overview Assignment Block Dynamically

It is possible to detach or reattach assignment blocks in a BSP overview page. First thing to do is determine the name of the assignment block that we want to hide. There are two possibilities for this purpose If the block we want to hide is a defined as a component usage in our BSP, the name of the assignment block should consist of the usage name and the interface name seperated by a dot 'component_usage_name'.'interface_view_name'. If the block is defined i
Read More »