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,

 

<%

 

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 INTOlv_id2.

 

%>

<script>

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

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

</script>

 

In the above code,

1. write your fieldname in lv_fieldname.

2. The column no of that particular field in your your table view in lv_field_col_no. For e.g. If you displaying 4 coulmns in your table view and want to change the tooltip of your 3rd column then write:

 

lv_field_col_no = '3'.


3. lv_table_id is your table view id. This you can get from 'id' attribute of the table view htm code.

4. Write all the above code after table view htm code as it will need table view id.


Check at debug time if lv_id1 attribute is something like:


                  C1_W1_V2_TableviewID_col_1-FACILITYID-TH

               (componentid_ tableview id_col_no_fieldname-TH)


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>