Set Window Title in Forms 9i

I am running Forms9i,
I am using "separateFrame=false" to avoid having two windows Open.(explorer & java)
Does anyone know if there is a way to modify the default title of the
web browser(formsweb.cfg => pageTitle) programatically,
I want to update the title with the current database that I am connected to.
Could I somehow make a java call to do this for me ? Does forms store the Calling window object anywhere ?
Any suggestions would be appreciated.
Thanks.

Tamas,
if you go to otn.oracle.com/products/forms then you find the Oracle9i Demos in the sample section.
(http://download.oracle.com/otn/other/general/forms9iDemos9_0_0_1.zip) It requires Oracle9iDS to be installed and also requires an updated Oracle installer. This one can be obtained from Forms9i patch 1. The cookie demo is in the demos path and has the PJC source code as well.
Following is a simplyfied PJC (untested, so I it may not compile by the first attempt) that should do what you are trying to achieve
package oracle.samples;
import java.applet.Applet;
import netscape.javascript.JSObject;
import oracle.forms.handler.IHandler;
import oracle.forms.properties.ID;
import oracle.forms.ui.CustomEvent;
import oracle.forms.ui.VBean;
public class writeToBrowser extends VBean
public static final ID pWriteToBrowser = ID.registerProperty("SET_BROWSER_TITLE");
/* JSObject variables */
JSObject m_window=null;
JSObject m_document=null;
Applet m_applet;
/*Forms settings*/
IHandler m_handler;
/*Browser type */
boolean isMSIE= false;
public writeToBrowser()
public void init (IHandler handler)
try
super.init(handler);
m_handler = handler;
// get the forms applet handler
m_applet= m_handler.getApplet();
// get a handle to the applet window
m_window = JSObject.getWindow(m_applet);
We need to know the Browsertype. We are looking for MSIE and if this
string isn't found assume Netscape. This is needed because the Javascript
passing is different in Netscape
JSObject navigator = (JSObject) m_window.getMember("navigator");
String thisBrowser = (String) navigator.getMember("appVersion");
if (thisBrowser.indexOf("MSIE")>-1){
isMSIE=true;
else
isMSIE=false;
// For the Javascript we need a handle to the document
m_document = (JSObject) m_window.getMember("document");
catch (Exception e)
System.out.println("Error Initialising Bean");
System.out.println(e.toString());
System.out.println("Stack Trace\n-----------------------");
e.printStackTrace();
public boolean setProperty(ID ID, Object args)
if(_ID== pWriteToBrowser)
// HERE IS WHERE TO PUT THE JAVASCRIPT CODE
if (isMSIE){
m_document.setMember("title",(String) _args);
else{
// Netscape
m_document.eval("document.title=\""+(String) _args+"\"");
return true;
else{
return super.setProperty(_ID, _args);
How to implement
- In Forms you will have to register this PJC (after compiling it) with a Bean Container (can be hidden)
- Add the MAYSCRIPT=true parameter to the Forms start HTML file
- Set the Browser title from Forms by a call to
set_custom_property('Bean Item',1,'SET_BROWSER_TITLE','Hello World');
Important: to compile this sample, the JSObject class is needed. It is contained in Netscape Browsers java40.jar file (just do a search for this file and add it to your project)
Fra

Similar Messages

  • How to set window title using cfdocument format="FlashPaper" ?

    Does anyone know how to set the the browser window title when using:
    <cfdocument format="FlashPaper">
    #docContent#
    </cfdocument>
    The variable docContent is a fully formed html document, complete with <head> and <title> elements, yet <cfdocument> doesn't pick up the title I've specified. I'm wondering if anyone has done this before???
    Thanks!

    Yes, I tried that, but <cfdocument> replaces any content that I add. I cannot view the source for the page, but at least according to FireBug, when I view the page contents, I get:
    <html>
    <head>
    <title>print.cfm - print.cfm (application/x-shockwave-flash Object)</title>
    </head>
    <body marginwidth="0" marginheight="0">
    <embed width="100%" height="100%" type="plugin" src="http://127.0.0.1/tss/print.cfm?id=expeditions_staff&start=1" type="application/x-shockwave-flash">
    </body>
    </html>

  • Question about Setting Window Title/the use of AVWindowSetTitle()

    Hi everyone,
    I have a question about setting the title of the window in which the Acrobat viewer normally opens a PDF file.  The documentation states that AVWindowSetTitle() cannot be used in this case.  However, using it has worked with versions of Acrobat/Reader up until and including version 8.
    Everything breaks down starting with Acrobat 9.
    According to the documentation I am supposed to do the following: "To set the title of a window in which the Acrobat viewer opens a PDF file, you must replace AVDocOpenFromASFileWithParams() and pass the window title in tempTitle."
    Unfortunately, there are 2 problems I have with this approach:
         I do need to be able to change the document title on document Save, not only on document Open
         I do not know what AVDocOpenFromASFileWithParams() implementation has to look like if I have to replace it using HFTReplaceEntry().
    Is there a sample customized implementation of AVDocOpenFromASFileWithParams() somewhere that I could take a look at?
    Is there a way to change a document Title inside Acrobat/Reader window after a Save operation?
    Thanks a million,
      Lana2010K

         I am sorry.  I don't know how you tested this and came to conclusion that this works correctly in Acrobat X.
         I just tested our Acrobat plug-in with a trial version of Acrobat X and this did not work.
         When we open a file in Acrobat (doing it ourselves in the plug-in by adding another specialized open) we set the window title to something different from the default file name.  Then if a file gets edited and saved (File->Save), the window title gets reset to the file name. In the PDDocDidSave callback we call AVWindowSetTitle() to set it back to a more descriptive window title we need.  This has worked up until and including Acrobat 8, but does not work in either version 9.0 or 10.0.
         Also, I just modified the plug-in code to always change the Window Title of every document (even if opened through native File->Open) on document Save.  It does not work.
         Please help,
              Lana2010K

  • How can set window title programmatically

    how to set the window title programmatically
    for example the main vi i have a combo box  which stores some names
    exp: abc
            bcd
            cde
    then it will pass the data to another vi all the names use the same vi to display the data
    i want the window title to be the name of particular name user selected.
     can anyone help me?

    Hi jeyanthi,
    attached you will find an example.
    Hope it helps.
    Mike
    Attachments:
    Unbenannt 2_LV80.vi ‏13 KB

  • Add window title to Forms menu

    Hello!
    We haven't specified window title of the screen.
    How can i add the window title to Window menu?
    Thanks!
    Edited by: Aver on Oct 5, 2008 3:36 AM

    This?
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, TITLE, 'xxxxxxxxxxx');
    SET_WINDOW_PROPERTY('window_main', TITLE, 'yyyyyyyyyyy'); --change SDI window title                                                                                                                                                                                                                                                                                                                   

  • Setting the color of the window title in Forms 6i

    How does one control or set the color of the title of the MDI and module windows
    gordon
    [email protected]

    Gordon, I'm pretty sure this is actually outside the realms of Forms since the Window Manager is controlled by the O/S and so the only way you can set this is via the PC desktop (there is nothing exposed in Set_Window_Property that can do this).
    Hope this helps.
    Regards
    Grant Ronald
    Forms Product Management

  • Window title bar?

    Hi all,
    Does anybody know how to set the window title bar like the one
    used by window.MessageDialog e.g. without the small icon image at the
    left corner? If I set the window.IsToolWindow attribute to TRUE, the
    small icon image is not displayed but the title bar font is twice
    smaller (???).
    I'm using Forte 3.0.G.2 on NT4.0.
    Thanks in advance,
    Rejean
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    See
    How to hide forms title
    Re: Remove Window Title Bar (Forms 10g)

  • ADF launchDialog and window title

    Hello there
    is it possible to set Window title for dialog opened via
    AdfContext launchDialog?
    I am redirecting dialog to another servlet out of Faces context to show some pdf files in the browser.
    What properties are supported for the window properties parameter, except width and height?
    ferdo

    I used the handleLaunch method and then set up the url along with parameters that generates the pdf report:
    public void handleLaunch(LaunchEvent launchEvent){
    parametros = "P_CD_PARCEIRO=" + (codParceiro.getValue()==null?"":codParceiro.getValue()) + "&P_DT_INICIO=" + dtInicio + "&P_DT_FIM=" + dtFim +
    "&P_TP_DOCUMENTO=" + tpDocumento.getValue() + "&P_NU_DOCUMENTO=" + this.retiraMascaraCampo((String)("2".equals(tpDocumento.getValue())?numeroDocumentoCNPJ.getValue():numeroDocumentoCPF.getValue())) +
    "&P_CD_BANCO=" + codigoBanco.getValue() + "&P_CD_AGENCIA=" + codigoAgencia.getValue() +
    "&P_NU_CHEQUE=" + numeroCheque.getValue() + "&P_CD_CLIENTE=" + codigoUnidadeServico.getValue();
    String url = resource.getString("historicocobranca.url") + parametros;
    //Set the url value into the report page (Dialog)
    Object urlObj = url;
    launchEvent.getDialogParameters().put("url", urlObj);

  • The window title attribute for the page layout region has not been set

    Hi, I am a newbie to OA Framework extensions. Could you please advise me how to get rid of below error ?
    "The window title attribute for the page layout region has not been set. This attribute value will be used for the browser window title and should be set according to the UI standards. A default window title will be displayed for all such pages that violate the standards. Action: Set the window title or title attribute for the page layout region. The title attribute is used as a secondary source for the window title if the window title is missing."
    My requirement is to extend a VO and almost done with that but when i run the PG ( HomePG.xml ) file to ensure everything is fine , The target page is being displayed with above error. Just to let you know that i have already set the Titile and Window Title attributes for the HomePG.xml region i.e PageLayoutRN.
    One more thing i would like to share is that i was set the Window Title to 'Oracle Applications Home Page' , but target page name is being displayed as 'Oracle Applications'.
    Any suggestions ??
    Thanks.

    Hi all, I now getting below error when i click on notification from notification page ( AdvancWorklistPG.xml ) which should have taken me to the notification details page ( NotifDetailsPG ). Please note that i am running the page from Jdeveloper.
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT NtfEO.NOTIFICATION_ID,
    NtfEO.RECIPIENT_ROLE,
    NtfEO.BEGIN_DATE AS BEGIN_DATE_F,
    NtfEO.DUE_DATE AS DUE_DATE_F,
    DECODE(NtfEO.MORE_INFO_ROLE, NULL, NtfEO.SUBJECT, FND_MESSAGE.GET_STRING('FND','FND_MORE_INFO_REQUESTED')||' '||NtfEO.SUBJECT) AS SUBJECT,
    NtfEO.PRIORITY AS PRIORITY_F,
    NtfEO.STATUS,
    NtfEO.END_DATE AS END_DATE_F,
    NtfEO.USER_COMMENT,
    NtfEO.MORE_INFO_ROLE,
    NtfEO.FROM_USER,
    NtfEO.FROM_ROLE,
    NtfEO.TO_USER
    FROM WF_NOTIFICATIONS NtfEO
    WHERE NtfEO.NOTIFICATION_ID = ?
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:597)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.nav.OAPageButtonBarBean.processRequest(OAPageButtonBarBean.java:351)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:953)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1095)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2298)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1711)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01008: not all variables bound

  • Forms window title

    HI Gentlemen,
    Could you tell me what to do in order to override the "Forms Developer Runtime - Web" standard window title? I substituted in formsweb.cfg the pageTitle parameter, it appears for a moment correctly, but it then again reverts to the above text. It would be good to see which particular application is running.
    Thank you, regards from
    Miklos HERBOLY

    You sound to be having different applications set up in the formsweb.cfg. (Because, you said it would be nice to see the application name as page title.) Make sure, the following things are set:
    1) Set the pagetitle separately for each application/config section in formsweb.cfg.
    2) If you expect a unique page title for all the applications, then set the pageTitle in the default section.

  • Set browser window title in template page

    Hi,
    How I can set the window title in template page ?
    I know how to do it in regular page:
    <af:document id="d1" title="Dashboard">
    But in template I don't have a document tag.
    so I added this before the <af:form> :
    <html>
    <head>
    <title> My title </title>
    </head>
    </html>
    But the problem is that I want to insert in the title something like that:
    title="#{generalPage.serverName}"
    Any ideas how can i do it ?
    Thanks

    You don't set the title in the template, you set the title in the page that is based on the template.
    There you will have the af:document tag.

  • 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.

  • How to set the title of an urxvt window?

    Hello,
    I have read the manpage and FAQ on the urxvt website, but my problem persists:
    When I try to set the title of an urxvt window, for example:
    $ urxvt -title test
    then the new window shows for a second the title "test" and then switches  to "username@hostname:~".
    Yes, I have
    case $TERM in
    xterm*|*rxvt*|Eterm|eterm|rxvt-unicode|urxvt)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
    screen)
    PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
    esac
    in my .bashrc.
    But I think, the explicit command line option "-title" should break the .bashrc, right?
    The default setting by .bashrc is intentional, but in this specific case I would like to set the window title by hand.
    How can I do that?
    Last edited by indianahorst (2011-06-22 11:01:34)

    I would recommend that you not use the PROMPT_COMMAND to set your bash prompt at all.  Use the PS1 environment variable. By using PROMPT_COMMAND, you are invoking a subshell each time you hit return; which is most likely unnecessary.
    In fact, you are probably already setting PS1 in your .bashrc; and that is what is changing your window title.  You can set PS1 to a different value, and then it will not reset your window title with each command.
    Just set PS1 in your .bashrc to:
    PS1="[\u@\h \W]\$ "
    You can see a more complete list of the available \u, \H, etc. options here.
    If you do wish to reset the urxvt window title by setting PS1, do the following:
    PS1="[\u@\h \W]\$ "
    PS1="\[\e]2;\u \W\a\]$PS1"
    Edit:  As I look at this a little closer, I see that your PROMPT_COMMAND is indeed setting your window title.  You could change it to the following:
    PROMPT_COMMAND='echo -ne "${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}"'
    But I would still not use PROMPT_COMMAND and just set PS1 instead.
    Last edited by rockin turtle (2011-06-23 03:53:57)

  • How to set a window title...

    Let me start with the basics:
    If you create an extension, the Stage Manager will create the container for you and load the swf into the container. This container can be one of three types: Panel, Model Dialog, or Modeless Dialog. Any one of these containers have titles. The StageManager will create a title with the menu name you provide.
    So far so good.
    If you do not provide a menu name (so it shold not appear in the menu, the StageManager will create a title which appears to be either the exention id or the package id (depending on the app).
    Not so good, but let's continue:
    If you have an extension load a Window, you can set the title of the Window using the Window's title property.
    Good.
    This all basically amounts to: if you want to open a window and set its title, you are really better off using Windows rather than separate extensions.
    Not ideal, but mostly workable.
    Now for the problem:
    Fireworks opens new windows INSIDE THE MAIN PANEL!!! When you close this window, it closes the panel as well, and the panel is inaccessible until the next launch of the app. This is obviously a bug... Fireworks appears to only support panels and not model or modelless dialogs.
    I am trying to work around this issue by making my dialog its own extension. This solves the problem of Fireworks opening it within the main panel. However, I do not want my sub-extension to appear in the menus, so I do not want to give it a menu name. I do however, want to set the title of the window.
    What to do???
    Harbs

    I worked out a hack to (sort of) get around this issue:
                private function preinit():void{
                    Object(this.parent.parent.parent.parent).title = "I really should not need to make the title like this!!!";
    Is there a better workaround?
    Harbs

  • Problem while setting External Window Title

    Hello,
    This should actually be a straighforward task, but I don't understand why I am facing a problem.
    I am opening an external window (browser) and trying to set the title of the window. Here is the code
         IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Title");     
         win.setTitle("Title");     
         win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
         win.removeWindowFeature(WDWindowFeature.MENU_BAR);
         win.removeWindowFeature(WDWindowFeature.STATUS_BAR);
         win.removeWindowFeature(WDWindowFeature.TOOL_BAR);     
         win.setWindowPosition(100, 150);
         win.show();  
    The window opens well with the right URL. But the title does not seem to be changing at all. The URL is displayed instead of the title. Where could I be going wrong?
    I have placed this code within an action event
    We are using EP7 SP10.
    Thanks and Regards,
    Reena

    Hi Reema
    IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Title");
    win.setTitle("Title");
    in the above code createNonModalExternalWindow(url,"Title");  here it self you are setting the title , just comment this statement [win.setTitle("Title");]
    and see the <b>source</b> of the external window whether you can see the title as you mentioned or not
    Best Regards
    Chaitanya.A

Maybe you are looking for

  • [Windows 7] Windows Update Agent does not scan correctly

    Hi All, After manual installation of update Office 2010 SP2 (KB2687455) ... WUA does not report (KB2687455) as Installed: https://support.microsoft.com/en-us/kb/2687455 KB2687455 update is reported as: Update ID: 9c5e43a3-3ae9-434d-b105-a9d7902d5f9f

  • ISO-8859-1 / Invalid UTF8 encoding

    Hello! I have nearly the same problem like V Prakash (ISO8859 & UTF 8 default encoding) I am parsing a XML-Document with ISO-8859-1 encoding. The file has no XML-Declaration. I use the "setEncoding(String)"-method of class oracle.xml.parser.v2.XMLDoc

  • Exporting pdf with Markups as JPG???

    I can't get my markups to show up on my export to .jpg.  My version is Acrobat 7.0 Standard. Please help.

  • Go to command in background freezes session.  Any Ideas

    I have an issue where Logic 8 and 9 locks me out if I use my "go to" key command (set to .) after recording while Logic is still processing the recording. What happens is somehow in the background a second "go to" command is created, but it doesn't s

  • COPA User Defined Characteristics

    Hi Friends, I need to add a user defined characteristic in COPA for Internal Order Types Can any body guide me please if you have any guide with screen shots, I think i need to add characteristics with user defined WW>then add in Operating Concern>ad