cancel
Showing results for 
Search instead for 
Did you mean: 

Clickable icon

Former Member
0 Kudos

Hi expert,

I need to fill a column in the team view application.

In one colunm, i need to display a clickable icon.

DATA: ls_key_objects TYPE hrwpc_s_keyobjec,

ls_column_content TYPE hrwpc_s_keycolcont,

ls_column_sort TYPE hrwpc_s_sortcolcont.

l_icon_type = 'ICON_WIZARD'.

link_tooltip = text-006.

MOVE text-005 TO ls_column_content-content .

MOVE l_icon_type TO ls_column_content-iconname .

MOVE link_tooltip TO ls_column_content-tooltip .

Here the problem, is that when the icon is dipslayed, nothing happens. But if i put the line with iconname in comments, i have a text that open a new view when i click on it.

How Can I display in the column a clikable icon ?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi kraiem,

I also face the same problem. With text the link works but with icon it doesn't work. If you have solved the issue, can you please help me?

Thanks

Former Member
0 Kudos

Thanks

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Instead of coding in that way ,while creating binding for the table,for the column which you want to place

clickable icon u put BUTTON in the CELL EDITOR OF TABLE COLUMN.

will button not suffice your requirement.

Priya

Former Member
0 Kudos

can you put more details how to do that ?

Here the column is filled by a FM so not in the view editor ?

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

To create a button in one of the columns of your table.

1.Right click on the Table UI element.

2.Select Create binding

3.A window opens up.You can see all the columns under the context attribute and the in CELL EDITOR OF THE TABLE COLUMNselect how your column should be like .i.e either input field,text view or button.

there is drop down which shows list of values in the CELL EDITOR OF THE TABLE COLUMN .you select the button from the Drop down.

Priya

Former Member
0 Kudos

Priya, as i said i know how to create a button in the view.

Here the problem, i have to create a custom column in the team view and to fill the column, i have to create the code manually.

Former Member
0 Kudos

I see in the help for the img action, this

If you want to store a hyperlink for the text or icon in a column, specify the service the system can use to obtain information about the link. You create services in Customizing for the Column Framework under Services -> Define Services.

Did someone made this step in the past or any ideas how to define the service for that ?