cancel
Showing results for 
Search instead for 
Did you mean: 

Tooltips or mouse over for Char & KF

Former Member
0 Kudos

Hi WAD gurus,

I know this is pretty old query but I am strugling to get a solution. My client want to show some tooltips or mouseover for char & KF in Web template (WAD). I tried the following steps:

1. Open the WAD and open the properties of my table where I want to display the tooltip. The last point in the properties list is reserved for the tableinterface class (param name "MODIFY_CLASS"). This class has to be written by my new class.

2. Implement an ABAP class. Create a class in the ABAP Development Workbench and inherit the super class from class CL_RSR_WWW_MODIFY_TABLE.

3. As I want to modify the caption cell, redefine the method CAPTION_CELL. By using cell content (c_cell_content) for each column (I_X).

4. In the table properties set the modify class to the one i had just created.

But it is not working. Please let me know where I am making the mistake.

Regards

Mahendra

Message was edited by:

Mahendra Mahapatra

Any Suggestion

Message was edited by:

Mahendra Mahapatra

Message was edited by:

Mahendra Mahapatra

Message was edited by:

Mahendra Mahapatra

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Set a breakpoint in the class and make sure the template goes thru the class.

Former Member
0 Kudos

Thanks Deepu.

Class is working fine.

1. As per the CAPTION_CELL it insert the Title ="tooltip".

2. But When the webtemplate runs it generates javascripts code & default title as HTML <a> link.

So the <td> title dosen't work. For more info see the below sample output code

===========================================================

<td Title = "Country" nowrap class="SAPBEXchaText"><a href="Javascript:;" onContextMenu="SAPBWM(event,2,2,'0COUNTRY','','','',0,0);;return false;" title= 'Context Menu for Country' > Country </a> </td>

==========================================================

See the above code where my "Z" class adds "Title = "Country"" but the <a> has a title="Content Menu for Country". So the mouseover just shows the <a> title value i.e "Content Menu for Country" which is auto generated by some other class.

Please let me know if can help me out to fix this issue.

Regards

Mahendra

Hi Guys need some suggestion & guidance on this open issue.

Message was edited by:

Mahendra Mahapatra

Former Member
0 Kudos

Hi Mahendra and WAD guru,

Is ur problem solved? I have the similar problem. Can u give me step by step approach.

Former Member
0 Kudos

Nope not yet. I am waiting for WAD Guru's suggestion.

Regards

Mahendra

Message was edited by:

Mahendra Mahapatra

Former Member
0 Kudos

You will have to probably add a mouseover event which will display the tooltip. to the anchor tag which generates the link. You can do this using a replace on the C_CELL_CONTENT.