cancel
Showing results for 
Search instead for 
Did you mean: 

How to set browser window title?

HariPanakkal
Advisor
Advisor
0 Kudos

Hello..

Is there a way to change browser window title at runtime? I am using WD ABAP with FPM

Please suggest an API.

Thanks in Advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Hari,

For changing the application title you need to configure, which i assume u know and have configured.

now you can use the following code to change the title.

DATA lo_idr TYPE REF TO if_fpm_idr.

    • get idr instance*

lo_idr ?= cl_fpm_service_manager=>get_service( cl_fpm_service_manager=>gc_key_idr ).

IF lo_idr IS NOT INITIAL.

lo_idr->set_application_title(

EXPORTING

iv_title = lv_heading

iv_title_tooltip = lv_heading ).

ENDIF.

where lv_heading is the new heading.

for any other question on FPM post it in Floorplan Manager for WebDynpro Abap fourm

Hope this will help you.

Thanks & Regards,

Arvind

HariPanakkal
Advisor
Advisor
0 Kudos

Thanks Arvind.

But using idr object I can set only identification area title, not the browser window title. Browser window title is set statically from iView name of in portal, and PFCG contect if in NWBC client.

But in my case, I want to set it at runtime, for eg. in case of Purchase Order window, I want to set it as 'Purchase Order:<PO number>

Is there any API to set this?

Thanks again,

Hari

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

There is an API for this, but it doesn't ship until NetWeaver 7.02.

wd_this->wd_get_api( )->get_component( )->get_application( )->set_window_title( l_window_title ).

Answers (0)