Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: How to add a tooltip to a TableView header Column

$
0
0

Hi Anji,

 

It would be much easier from htm page.

 

Below is the code to be written on .htm page to get the tooltip.

 

<%

 

DATA: lv_fieldname TYPE string,

       lv_field_col_no type string,

       lv_id1 type string,

       lv_id2 type string.

 

lv_fieldname = 'FACILITYID'.

lv_field_col_no = '1'.

 

CONCATENATE controller->component_id '_' lv_table_id '_col_' lv_field_col_no '-' lv_fieldname '-TH' INTO lv_id1.

CONCATENATE controller->component_id '_' lv_table_id '__header_bee__' lv_field_col_no INTO lv_id2.

 

%>

<script>

document.getElementById("<%= lv_id1 %>").setAttribute("title", "Field tooltip");

document.getElementById("<%= lv_id2 %>").setAttribute("title", "Field tooltip");

</script>

 

Below is the output:

eg1.png

 

Thanks,

Ritu


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>