cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically set application title

Former Member
0 Kudos

can anybody please be so kind and tell me howand where to dynamically set the application title of a webdynpro (ce 7.1 ehp1)

br,

martin

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi!

we need to set the title of the wd app depending on which system the app is running ...

external windows are created programmatically ...

we are speaking about an internal window ...

-> Web Dynpro

-


> Components

-


>Windows

-


> W_AnyWindow

in NWDS there is an option to give the window a title in the "window properties" but we

don't find a way to set the title programmatically or via context binding

cheers,

andi

Edited by: Andreas ZIERGOI on Jun 18, 2010 3:18 PM

Former Member
0 Kudos

Hello!

I have the same question.

Were you able to set the title dinamically? I could find the window with the following line of code, but do not know how to set the title of that:

IWDWindowInfo frameWorkWindowInfo = wdComponentAPI.getComponentInfo().findInWindows("FrameworkCompWindow");

Thanks and regards,

Peter

Former Member
0 Kudos

frameWorkWindowInfo .setTitle("Window Title");

Regards,

Himanshu

Former Member
0 Kudos

Hi Himanshu,

unfortunately the IWDWindowInfo interface does not have the method setTitle( ).

Sorry I forgot to mention that it is CE 7.10 SP8.

Regards,

Peter

Edited by: Peter Nagy on Aug 3, 2010 3:47 PM

Former Member
0 Kudos

Hi Peter,

It works on 7.1 SP 5 . Not very sure about SP 8 ...

Regards,

HImanshu

Former Member
0 Kudos

Hi Himanshu,

in the IWDWindowInfo specification I did not find the setTitle() method.

http://help.sap.com/javadocs/NW04S/SPS09/wd/com/sap/tc/webdynpro/progmodel/repository/IWDWindowInfo....

Best regards,

Peter

Former Member
0 Kudos

Hi Peter,

Indeed you are right.

It does not work in SP5 either. I understood it wrong.

Use the following:

IWDWindowInfo win = this.wdComponentAPI.getComponentInfo().

findInWindows("nameof win");

IWDWindow window = this.wdComponentAPI.getWindowManager().

createModalWindow(win);

window.setWindowPosition(WDWindowPos.CENTER);

window.setWindowSize(600,400);

wdContext.currentContextElement().setWin(window);

window.setTitle("title of window");

Win is a context attribute of type IWDWindow

Regards,

Himanshu

Former Member
0 Kudos

Hi Himanshu,

I would like to set the title of the internal window in the component which is not created by code as written above (so it is not a modal window):

"we are speaking about an internal window ...

-> Web Dynpro

-


> Components

-


>Windows

-


> W_AnyWindow

in NWDS there is an option to give the window a title in the "window properties" but we

don't find a way to set the title programmatically or via context binding"

Thanks and regards,

Peter

nikhil_bose
Active Contributor
0 Kudos

what is the use-case? Usually webdynpro is shown on Portal. For external windows, the title could be set for IWDWindow object.

cheers,

nikhil