Displaying  Window Title Dynamically

Hi Gurus,
I have to display window title which is coming from T100 table. Based on the entered message number from t100 table i need to display the respective messagetext from  respective messageno from T100 table.Please let me know how to display window title dynamically from table T100.
Points will be rewarded
Thanks,
Kishor

Rather than reading from T001, you can just use the "message" verb to get the content and variable substitution done for you... so this may help:
report zlocal_jc_sdn_titlebar1.
data:
  g_title                 type sy-ucomm.
parameter:
  p_gday                  type sy-datum.
* Events:
initialization.
  perform initialization.
at selection-screen output.
  set titlebar 'MY_TITLE' with g_title. "MY_TITLE just contains &
*&      Form  initialization
form initialization.
  message e398(00) with 'Hello' sy-uname 'today is' sy-datum
    into g_title.
endform.                    "initialization
Jonathan

Similar Messages

  • CHANGE COLOR OF THE WINDOW TITLE

    Hi,
    I am working on forms6.
    Can I change the color of the window title dynamically? Please help.
    Thanks.
    Phebe.

    private void initLookAndFeel(){
    try{
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    UIManager.put("MenuItem.background",SystemColor.info);
    UIManager.put("Menu.background",SystemColor.info);
    SwingUtilities.updateComponentTreeUI(this);
    }catch(Exception e){}
    }

  • Setting a dynamic urxvt window title

    Hi,
    I'm using urxvt windows for alot of apps and I don't like to have 6 windows in the taskbar that all say "urxvt [Number]").
    That's why I would like to have either the name of the last app started in urxvt or at least a tail output of what's currently in there.
    I understood that with
    printf '\33]2;%s\007' "foo"
    I can set the window title to foo but that was it.
    Does anyone know if/how I can put something dynamic to the console title bar?
    Doesn't have to be urxvt, but would be cool.
    Thanks in advance.
    Last edited by Zoranthus (2007-02-04 14:34:39)

    Following skymt suggestion, I found this script which should make the preexec() and precmd() work in bash too, but I'm too newbie to figure out how the whole works
    #!/bin/bash
    # preexec.bash -- Bash support for ZSH-like 'preexec' and 'precmd' functions.
    # The 'preexec' function is executed before each interactive command is
    # executed, with the interactive command as its argument. The 'precmd'
    # function is executed before each prompt is displayed.
    # To use, in order:
    # 1. source this file
    # 2. define 'preexec' and/or 'precmd' functions (AFTER sourcing this file),
    # 3. as near as possible to the end of your shell setup, run 'preexec_install'
    # to kick everything off.
    # Note: this module requires 2 bash features which you must not otherwise be
    # using: the "DEBUG" trap, and the "PROMPT_COMMAND" variable. preexec_install
    # will override these and if you override one or the other this _will_ break.
    # This is known to support bash3, as well as *mostly* support bash2.05b. It
    # has been tested with the default shells on MacOS X 10.4 "Tiger", Ubuntu 5.10
    # "Breezy Badger", Ubuntu 6.06 "Dapper Drake", and Ubuntu 6.10 "Edgy Eft".
    # This variable describes whether we are currently in "interactive mode";
    # i.e. whether this shell has just executed a prompt and is waiting for user
    # input. It documents whether the current command invoked by the trace hook is
    # run interactively by the user; it's set immediately after the prompt hook,
    # and unset as soon as the trace hook is run.
    preexec_interactive_mode=""
    # Default do-nothing implementation of preexec.
    function preexec () {
    true
    # Default do-nothing implementation of precmd.
    function precmd () {
    true
    # This function is installed as the PROMPT_COMMAND; it is invoked before each
    # interactive prompt display. It sets a variable to indicate that the prompt
    # was just displayed, to allow the DEBUG trap, below, to know that the next
    # command is likely interactive.
    function preexec_invoke_cmd () {
    precmd
    preexec_interactive_mode="yes"
    # This function is installed as the DEBUG trap. It is invoked before each
    # interactive prompt display. Its purpose is to inspect the current
    # environment to attempt to detect if the current command is being invoked
    # interactively, and invoke 'preexec' if so.
    function preexec_invoke_exec () {
    if [[ -n "$COMP_LINE" ]]
    then
    # We're in the middle of a completer. This obviously can't be
    # an interactively issued command.
    return
    fi
    if [[ -z "$preexec_interactive_mode" ]]
    then
    # We're doing something related to displaying the prompt. Let the
    # prompt set the title instead of me.
    return
    else
    # If we're in a subshell, then the prompt won't be re-displayed to put
    # us back into interactive mode, so let's not set the variable back.
    # In other words, if you have a subshell like
    # (sleep 1; sleep 2)
    # You want to see the 'sleep 2' as a set_command_title as well.
    if [[ 0 -eq "$BASH_SUBSHELL" ]]
    then
    preexec_interactive_mode=""
    fi
    fi
    if [[ "preexec_invoke_cmd" == "$BASH_COMMAND" ]]
    then
    # Sadly, there's no cleaner way to detect two prompts being displayed
    # one after another. This makes it important that PROMPT_COMMAND
    # remain set _exactly_ as below in preexec_install. Let's switch back
    # out of interactive mode and not trace any of the commands run in
    # precmd.
    # Given their buggy interaction between BASH_COMMAND and debug traps,
    # versions of bash prior to 3.1 can't detect this at all.
    preexec_interactive_mode=""
    return
    fi
    # In more recent versions of bash, this could be set via the "BASH_COMMAND"
    # variable, but using history here is better in some ways: for example, "ps
    # auxf | less" will show up with both sides of the pipe if we use history,
    # but only as "ps auxf" if not.
    local this_command=`history 1 | sed -e "s/^[ ]*[0-9]*[ ]*//g"`;
    # If none of the previous checks have earlied out of this function, then
    # the command is in fact interactive and we should invoke the user's
    # preexec hook with the running command as an argument.
    preexec "$this_command"
    # Execute this to set up preexec and precmd execution.
    function preexec_install () {
    # *BOTH* of these options need to be set for the DEBUG trap to be invoked
    # in ( ) subshells. This smells like a bug in bash to me. The null stderr
    # redirections are to quiet errors on bash2.05 (i.e. OSX's default shell)
    # where the options can't be set, and it's impossible to inherit the trap
    # into subshells.
    set -o functrace > /dev/null 2>&1
    shopt -s extdebug > /dev/null 2>&1
    # Finally, install the actual traps.
    PROMPT_COMMAND=preexec_invoke_cmd
    trap 'preexec_invoke_exec' DEBUG

  • Dynamically updating the window title?

    Is there a way to dynamically update the JFrame window title of my program?

    The "substring" method allows you to get any subpart
    of a String (and thus, in effect, "subtract" characters
    from a String).
    Please take a closer look at
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html
    Please don't ask every little question.

  • Can I dynamically display Page title over a static header image?

    Is there a way to Dynamically Display Page Title Text Over my static site Header Image? here is a link so you can see what I am talking about. http://www.bridgestoprosperity.org/See-Our-Work/afghanistan/afghanistan.htm where Afghanistan would be the text to be replaced automatically on each page.  Please note, currently, I must create individual headers, insert the page title in photoshop, etc. I am hoping to figure out a way for all this to happen dynamically perhaps by calling the text from the page title info.
    Thank you,
    Allan

    Hi, Allan,
    I realize my suggestion is off your point, and you probably have already thought of some of this, hence your question... But, rather than going the dynamic route, Why not create a Header Image without a title on it and use it as a div background image? Replace this
    <img src="/See-Our-Work/afghanistan/Images/header/afghanistan-header.jpg" name="topnavbar_r1_c1" width="779" height="114" border="0" alt="bridges to prosperity: afghanistan">
    with the styled div, for instance:
    <div id="header"><h2>Afghanistan</h2><h3>Bridges to Prosperity: USA</h3><div>
    At this point, you can use a more generic image for the background, one that does not have "Afghanistan" embedded in it, and you may style the #header thus:
    #header {
         width: 779px;
         height: 114px;
         border: 0;
         background-image: url(/See-Our-Work/Images/header/header.jpg;)/* for instance */ 
    and the header Headline styles thus:
    #header h2, #header h3 {
         color: white;
         text-align: right;
         font-family: Arial, Helvetica, sans-serif;
    Then you can place your html (<h2>, <h3> etc.) in the same div, only on the "surface".
    Using the tags <h2> and <h3> will maintain their usefulness to Search Engines; as hiding them in images does not.
    If you still wished to vary the header image, depending on the contents of the page, you can actually control all of this from the CSS file, if you add an id attribute to the <body> of each page.
    For instance, for your example page, if you did this:
    <body id="afghanistan">
    You could then do this in your CSS file:
    #header {
         width: 779px;
         height: 114px;
         border: 0;
    body#afghanistan #header {
         background-image: url(/See-Our-Work/afghanistan/Images/header/afghanistan-header.jpg);
    You could then proceed to have a different background image for each page. (Not your original intention, but now possible).
    <body id="pakistan"> would use a CSS style declaration like:
    body#pakistan #header {
         background-image: url(...pakistan-header.jpg...etc.);
    I am not aware of being able to pass content (other than background images) using CSS, so I would go into each page and put the Headline in html.
    But if you were using multiple background images in the header div (one image for afghanistan, another for pakistan, in my example), you can use the same <body id="afghanistan"> for ALL pages about Afghanistan, and thus have the continuity of the same image for all. Likewise, you could id all pages about Pakistan <body id="pakistan">.
    I hope this gives you some ideas...
    Z

  • Display forms title as a part of IE window title

    Hi,
    Does anyone know how to display forms title as a part of IE window title in Webforms 10g?
    For example: if I am on the Order Entry form, the IE title would be Order Entry - Microsoft Internet Explorer.
    Thanks all,
    L

    Thanks Terrible :-)
    Yes, I did change the pageTitle in the formsweb.cfg to have the Application name. And you are right that is the one time only...
    I would like to somehow passing a forms title as a variable that is appended to the Application title at runtime.
    Gerd, you mention about the java applet which can interact back to the IE-engine. Have you done one before? I am new to this concept.
    Thanks all for your help :-)
    L

  • Dynamic browser window title

    Dear all
    In my Forms10g deployment, I have a unique browser window title for each separate form (i.e. one value of pagetitle per form in formsweb.cfg).
    If form A calls form B, and then control returns to form A, is it possible to dynamically alter the browser window title, perhaps by referring to the called form's entry in formsweb.cfg?
    Many thanks in advance.

    Check out webutil for this.
    Regards
    Grant Ronald
    Forms Product Management

  • Programmatic Windows Title Bar

    Hello,
    I would like to Programmatically change the display of the windows title bar of my application so that it reads the name of the file I currently have open inside of it. I can not find any documentation for dynamic changes, only static ones using the VI properties window. I know this completely possible because I have used LV programs in the past that do this. Is there a vi property that I am missing or something?
    Thanks,
    Glen D

    Here's a vi that shows one way of doing it.
    Attachments:
    Title_bar.vi ‏15 KB
    Title_bard.png ‏3 KB

  • How to set the WebDynpro application title (IE windows title)?

    Hello all,
    I would like to set the WebDynpro application title according to the current transaction ID. This title is the IE windows title that is shown on the upper left-corner of the IE browser.
    Rule: [Object Instance Information] u2013 [Application Title] u2013 [Browser Title]
    For example: Trans. <No.> - <My App> - Windows Internet Explorer
    I would like to set <No.> dynamically on run-time according to my current transaction number.
    I have this piece of code that gets a reference to the application info:
    data: lr_app_info TYPE REF TO if_wdr_rr_application.
    lr_app_info ?= wdr_task=>application->application_info.
    And there is lr_app_info->get_description() method to have the description of the application, but there is no set method.
    The application description can be hardcoded in:
    tx. SE80, opening the WebDynpro component, then accessing its WebDynpro application. In the properties tab, there is a description field. I need to append transaction ID to it.
    Do you know any way to implement this? This issue is for WebDynpro ABAP.  
    Best regards and thanks in advance,
    Fouad.

    Hello Satra,
    Thanks for your reply. I already had a look into that thread, but my question is not related to the windows title of the WebDynpro  component.
    My question is related to the title of the Internet Explorer that we all see on the top left-corner. For WebDynpro , this is the WebDynpro  application title. How can we change it?
    I hope my question is clear now, and I wish someone can help me soon.
    With kind regards,
    Fouad.

  • Garbage Characters in CDE Window Title Bar

    I recently patched our Solaris 8 Sun workstations (a mixture of Blade 150, Ultra10, Blade 1500, and Blade 2000) with the recommended patch cluster from December 19th, 2005. At the same time, I updated the systems' Java to 1.4.2_10, and installed Update 5 to StarOffice7, which is still on the systems along with the newer StarOffice8.
    When initially installed before these recent patches, StarOffice8 behaved correctly. After updating the systems, when I open StarOffice8 in a CDE session, I get garbage characters in the title bar of the window. The letters and fonts in the application menus are normal. StarOffice8 windows under Gnome sessions are titled correctly.
    I've read some emails about issues with LC_CTYPE and setting it to en_US.ISO8859-15, using a wrapper script to start soffice. The current setting on my machines is en_US.ISO8859-1. That solution doesn't work consistently on different machines (or even on the same machine).
    In fact, even without attempting to solve the problem, there is inconsistent behavior. On one Ultra10 which I have as a testbed machine, StarOffice8 behaves correctly, whether I'm logged in as a normal user, or as root. On a Blade 1500, it behaves correctly when logged in as root, but not as a normal user. I've also patched StarOffice8 with Update1 which was released today, but it doesn't fix the problem.
    Anybody else having similar problems after recent patching? Or have any suggestions for a solution?
    Jeff Bailey

    More Info on Unsolved Problem:
    If I use Mozilla to open a document file, with soffice set as the helper application, the CDE window title displays properly. If I leave that instance of StarOffice open, and open new documents using the menus within StarOffice, subsequent CDE titles also display normally. Also with that original Mozilla-driven StarOffice application still open, if I use "soffice whatever.doc" on a command line, those CDE windows appear normal.
    Mozilla is set to use "en_US" as the language for webpages, with Western ISO-8859-1 as the default character coding. The Solaris 8 workstation's /etc/default/init file is configured as:
    TZ=US/Eastern
    CMASK=022
    LC_COLLATE=en_US.ISO8859-1
    LC_CTYPE=en_US.ISO8859-1
    LC_MESSAGES=C
    LC_MONETARY=en_US.ISO8859-1
    LC_NUMERIC=en_US.ISO8859-1
    LC_TIME=en_US.ISO8859-1
    While the Mozilla "wrapper" is a workaround for now, I don't see it as a final solution.
    Jeff Bailey

  • Window title and borders for Render Window (3D Picture Control)

    Hi all,
    some more questions on the 3D picture control.
    I use the external render window, because in the solarsystem.vi demo, the 3d picture control appears to be very slow. The render window is much faster there. (I haven't tried it for my application though.)
    I'd like to display a full screen 3D animation. How the hell do I get rid of the window title bar (I can set it to empty, but the bar itself remains), and the borders of the render window?
    Regards
    Matthias

    The update speed of the solarsystem example is 2 ms (in the timeout event). This would result in 500 updates per second, witch is totally redundant. Put it on 33 ms, and you'll still get smooth updates, and much better performance! No monitor will update 500 times a second, and your eye can only see 25-30 frames per second anyway.
    With this, you could probably use the normal 3d control (indicator actually). The window doesn't have any way to remove the title bar.
    (You can do some things with window API's, but removing the titlebar is only possible by creating a new class, a new window, and then it would be impossible to tell LabVIEW to use this window...)
    If you'd make the render window full screen, how would you close your application? There is no way (or I'm missing it) to get events back from the render window.
    Regards,
    Wiebe.

  • DATABASE ITEM VALUE AS WINDOW TITLE

    Hai Everyone,
    I want my Window title to display customer ID and customer name ,how can i do it.........???????????.
    I tried with SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,'ORDER.CUSTOMER_ID'); in WHEN-NEW-FORM-INSTANCE.It didn't work.
    Kindly help.

    well the problem is here i think:
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,'ORDER.CUSTOMER_ID');
    why the item name as a string?!?
    also why copy the value of the item to a variable, and set the title to this variable?!?
    why not simply use the item?!?
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,:ORDER.CUSTOMER_ID);
    if you want to use this code in pll's or mmb's you can use name_in built-in:
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,name_in('ORDER.CUSTOMER_ID'));
    regards

  • Q:  Window Titles for Identically Named Objects and Views

    How does such an application described on
    http://java.sun.com/products/jlf/at/book/Windows8.html#50028
    behave when there are 4 Windows and Window #2 is closed ?
    Will 3 and 4 renumbered to 2 and 3 ? or Do they stay and the next Window opened becomes #2 ?

    Aside from testing it yourself, reading the link,
    you the programmer must add "something" to identify
    each windows...
    How shall I test it ? - I don't think SUN is giving
    SMC away for free ...Don't need SMC, it was used as an example, It could be a text editor with multiple windows pointing to the same file object...
    >
    so following that logic, the next window that gets
    opened will be "5"...
    How do you know ? - Is there a reference
    implementation of a swing program ???
    Best explained in this statement from the link...
    If multiple primary windows show views of the same object, distinguish each of the windows by appending the suffix :n to the object name in the window title
    So lets say that I am using multiple Windows (like JFrame) to display the same object... Then as part of the opening sequence for each window would do a check to see if it is the same object, if so, then it would increment an int like int windowNumber; then use the setTitle("myObjectname" + windowNumber)
    since the int windowNumber increments by one each time a new window opens up displaying the same object, then logically it I have 4 windows open, they would be numbered 1-4 with the next one being 5 regardless of whether the other windows are open or not...
    Unless I wrote some code that upon closing a windows, it re-numbers the window... Which brings us to this question below...
    you would need to program something ( like a method
    ) that renumber your windows...
    Really ?!? - That's why I'm asking: HOW should it be
    renumbered ???Well this would be the fun part...
    each window would have a int variable to indicates is number if its the same object...
    each window object will be kept in a list...
    upon closing a windows, it will check all windows containing the same object who ID number is greater than the window ID number of the closed window and decrement them by one... so if window with ID number 2 gets closed, then window with ID number 3,4,5 6 gets decremented by one making its 2,3,4,5 respectively...
    Which means that you will have to create a method that upon closing a windows with an ID number, call the decrement method that iterates through the list and decrements the ID number...
    psuedo code:
    upon windows close call renumber menthod...
    renumberMethod ( windowList,ID , object)
    for (int i=0; i < windowList.size() -1; i ++){
                if ((windowList.getObject() ==object)&&(windowList[i].getID() > ID){
    windowList[i].decrementID();}
    //... some code...
    decrementID(){
    --IDnumber; // where ID number is an instance variable of the Window object
    setTitle(ObjectName + IDnumber);
    Or something along these lines...
    - MaxxDmg...
    - ' He who never sleeps... '

  • Pop up Window Title Problem

    hi
    i have Jspx page and in the page i have command link when click on command link a new popup window is opening in that pop up window i have 4 submenus....
    when click on each sub menu link page will be open in same pop up window.
    here when first time popup window is opening it is displaying correct title but i m click on other sub menu link it is displaying the the previous title only .. Title name is not changing..
    plz any body help...
    thanks
    Harish

    Hi user609929,
    can you write your window popup's source code and the windows popup call's source code , please? If you don't, we can not help you!
    Thank's

  • Windows Vista 's Window Title Bar [Blur Effect]

    Hello guys
    im trying to make a blur effect like windows vista's window
    title bar, where one can see the background application in a blury
    way.
    How can i do the same thing?
    please guide
    thanks in advance

    That's unfortunate it was removed in Java 5. We use Web Start for headless applications (no GUI windows) and so at times would have multiple instances running on the same machine each using a different JNLP. Previously, we could see which instance was which by the console displaying the description tag information on the console's title bar. This was a great feature of JWS that now appears to be less functional. Sun, is there a way to get this back if you are listening?
    The s: command doesn't display the JNLP description tags which we helped to identify the application. We want to use Windows task manager to see a list of all applications and from this list end any JWS process easily from the window. Without the title on the console window, there is no way to uniquely identify a particular application.
    Regardless, our frustration in using JWS has increased with this new introduced limitation.

Maybe you are looking for