on 07-01-2008 10:06 AM
Hi All,
I am developing a webdynpro component which is using a standard component.
I need to change the text of a PAGEHEADER which is in the view of a standard component.How to do that?
Regards,
Lakshmi.
Edited by: Lakshmi Atukury on Jul 1, 2008 11:07 AM
Lakshmi,
Create a enhancement for the standard component by pressing ctrl+f4.
then go to wddomodifyview and create a postexit (scroll to the right of the wddomodifyview and you will find postexit.just click that and it will open the code editor for the postexit)
write the below code in the postexit of the wddomodifyview
if first_time eq abap_true.
data lr_detail_group_header type ref to CL_WD_PAGE_HEADER.
data display_name_txt type string.
lr_detail_group_header ?= view->get_element( 'TEST' ). where TEST is the ID of the pageheader
display_name_txt = 'Employee Data'.
lr_detail_group_header->SET_TITLE( display_name_txt ).
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the link provided does not solve your problem then please post the complete error message.
Sorry wrong thread - too many tabs open. Please ignore.
Edited by: Thomas Jung on Jul 1, 2008 9:38 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Although you can use the Enhancement Framework as suggested, for something as simple as changing the text on a page header you probably can just use Component Configuration:
[http://help.sap.com/saphelp_nw70/helpdata/EN/47/5e9442d644ce6ae10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/47/5e9442d644ce6ae10000000a155106/frameset.htm]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You can use enhancements to do it. Take a look on this: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70d4cef8-b7ed-2a10-66a3-c3a95715c8f1].
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.