Skip to Content

Title Bar Text

Hi All,

Is there any way to change the title bar text of a window at run time

Regards

sandip

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 17, 2005 at 03:11 PM
    • WARNING : NOT STANDARD WEB DYNPRO API ****

    But the answer is yes. You have to use the window class, which is the implementation of WDWindow. But there is not supposed to be support for this.

    import com.sap.tc.webdynpro.clientserver.window.Window;
    
    IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("MyWindow");
    IWDWindow newWin = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);
    ((Window)newWin).setTitle( "Look ma, titles" );
    newWin.open();
    
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2005 at 10:19 AM

    Hi Sandip,

    This is impossible using standard WD API.

    You can only "statically" assign title using Window Designer (for newly opened window) or set meaningfull name to Application (this name used as title of top-level window)

    VS

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sandip,

      I also agree with VS, we can do dynamic programming only in wdDoModifyView in the view controller implementation. And there we dont get any handle for the window object. So if you know the Window title at the design time you can secify that in the "Title" property of the window object. Thats all we can do till now with the Window object. No way to do any dynamic property setting.

      regards,

      Shubhadip

  • author's profile photo Former Member
    Former Member
    Posted on Feb 17, 2005 at 01:44 PM

    > Hi All,

    > Is there any way to change the title bar text of a

    > window at run time

    >

    > Regards

    > sandip

    Hi!

    There is a way to do this. Creat in the context a attribute of type string. In the property of the text element enter as text the context element. Now when ever you change the context attribute the text will be changed,too.

    Happy programming

    Markus

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.