on 07-23-2010 7:19 AM
Hello,
on the header of opportunities we have an own button which opens the corresponding record in SAP recordsmanagement with
ls_button-text = 'Presales-Akte'(001).
ls_button-type = cl_thtmlb_util=>gc_icon_foldershortcut.
ls_button-tooltip = 'Presales-Akte'(001).
ls_button-page_id = me->component_id.
ls_button-enabled = lv_enable.
ls_button-on_client_click = 'OpenRMPopUp()'.
In the table assignmentblock of opportunities BP_BPBT/AccountOpportunitiesOV i want to have for each line an icon which does the same.
I already realised the icon with link to an eventhandler.
But i don´t know how to call this "on_client_click" inside of the eventhandler.
Could one of you experts please assist?
Thanks a lot.
Best regards
Manfred
Hello Manfred,
if it is OneClickActions you are talking about it is not possible without modification.
cheers Carsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Manfred,
first you need an implementation of IF_HTMLB_TABLEVIEW_ITERATOR.
In method RENDER_CELL_START you need some code like this:
case p_column_key.
WHEN 'COLUMNOFINTREST'.
p_replacement_bee = cl_htmlb_button=>factory(
id = '123'
text = 'Presales-Akte'
tooltip = 'Presales-Akte'
onclientclick = 'myfunction()'
).
.
The table of intrest has to know the iterator, you have to reference it using the attribute iterator in the html part of your component. In the BSP forum are lot of threads about the usage of a table view iterator.
Regards, Arne
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.