cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the browser title Window or View Dynamically.

Former Member
0 Kudos

Hi

I have several application calling my applicationm and i need the browser that lauches the application to have different Titles on the Browser Title.

How can I change the Title from the Window or View?

Please advice.

Thank you.

Regards,

Vinod

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

The browser title gets pulled from the WD Application Description. Currently there is no API to change the browser title from within WDA. Next year in 7.02 we do add such an API. Here is an example of what will be possible in 7.02:

data l_window_title type string.
  case lv_transaction_type.
  when wd_assist->create_mode.
  l_window_title = `Create Sales Order`.
  when wd_assist->display_mode.
  l_window_title = `Display Sales Order: ` && so_id.
  when wd_assist->change_mode.
  l_window_title = `Change Sales Order: ` && so_id.
  endcase.

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

Setting the title on a View is easier. You can just use a Tray or Group UI element as the root of your view and set the title property of the UI element dynamically by context binding to the property.

Former Member
0 Kudos

Thank you Thomas.

Point awarded.

Where can i get documentation on the latest version of WD 7.02.

Whats new in it?

Regards,

Vinod

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Well 7.02 isn't released until next year, so there isn't a lot of public documentation available yet. I gave a session at TechEd (UP201) that gave details of new features. You won't see documentation or other public SDN documents like this until closer to the release date.

Former Member
0 Kudos

Ok. Thanks.

Cheers

Vinod