Creating a dialog window

Hi
I am trying to create a pop up window or dialog window that contains a text area and a button. The window opens once a button is clicked. I am having trouble programming the window and I was hoping if someone may be able to help me..Thanks
buster101

Just to clarify, I can program the layout of the window, however its the interaction between the button and the window that is giving me problems.

Similar Messages

  • Error: Could not complete Create LOV Dialog Window...

    Using Jdeveloper 10.1.2 UIX to drop a MessageLovInput onto an Input Form I get the following error:
    Could not complete Create LOV Dialog Window because it would result in an invalid document.
    Clicking on details reveals the following:
    oracle.bali.xml.model.XmlInvalidOnCommitException: Errors
    Errors:
    Element text not defined in parent contents [node = text ]
    invalid subtree:
    <contents>
    <text text="Find the collection (which contains the legal values for the lovInput) in the Data Control Palette. Select the attribute (of the collection) that will be set by the lovInput and drop it into this space as a 'LOV Table'. " />
    </contents>
         at oracle.bali.xml.model.XmlModel._validateSubtree(XmlModel.java:2646)
         at oracle.bali.xml.model.XmlModel._validateDocument(XmlModel.java:2583)
         at oracle.bali.xml.model.XmlModel.precommitTransaction(XmlModel.java:1467)
         at oracle.bali.xml.model.XmlModel._validateInCommit(XmlModel.java:2538)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:531)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:516)
         at oracle.cabo.ide.adf.LovModelXml._createLovPage(LovModelXml.java:125)
         at oracle.cabo.ide.adf.LovModelXml.createControl(LovModelXml.java:55)
         at oracle.cabo.ide.adf.UixModelXml.populateFragment(UixModelXml.java:165)
         at oracle.cabo.ide.adf.UixAdfDocumentFragmentProvider.preInitializeNode(UixAdfDocumentFragmentProvider.java:38)
         at oracle.bali.xml.model.datatransfer.XmlKeyDocumentFragmentProvider._createDomNodeFromKey(XmlKeyDocumentFragmentProvider.java:97)
         at oracle.bali.xml.model.datatransfer.XmlKeyDocumentFragmentProvider.createFragment(XmlKeyDocumentFragmentProvider.java:38)
         at oracle.bali.xml.model.XmlModel.getImportedDocumentFragment(XmlModel.java:1771)
         at oracle.bali.xml.model.XmlModel.getFragmentForImportIfPossible(XmlModel.java:1801)
         at oracle.bali.xml.model.XmlModel.importData(XmlModel.java:1078)
         at oracle.bali.xml.model.XmlView.importData(XmlView.java:773)
         at oracle.bali.xml.gui.swing.dnd.ModelDropHandler._transferData(ModelDropHandler.java:624)
         at oracle.bali.xml.gui.swing.dnd.ModelDropHandler.drop(ModelDropHandler.java:235)
         at java.awt.dnd.DropTarget.drop(DropTarget.java:398)
         at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:542)
         at sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextPeer.java:52)
         at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:805)
         at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:743)
         at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
         at java.awt.Component.dispatchEventImpl(Component.java:3494)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:3269)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3123)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Opening the UIX page, the following code has been generated; not a <listOfValues> tag in sight!
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    I have checked Metalink but can't find this error there either. Based on examples on OTN I have tried to create the LOV window manually but it does not work as expected:
    1) The window is not empty when opened - i.e. data has been retrieved.
    2) The filtering does not work.
    3) The selected value does not update the Input Form.
    I have pasted the code below in case anyone can point me in the right direction to work around the Jdeveloper error. However, I think Jdeveloper should create the LOV window correctly.
    Thanks in advance for your help.
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <listOfValues title="Organization"
    searchText="Enter search string here">
    <contents>
    <!-- indexed children -->
    <table model="${bindings.OrganizationView1}" id="OrganizationView13">
    <contents>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.OrganizationView1,'Name')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.Name}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.OrganizationView1,'Address')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.Address}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.OrganizationView1,'Url')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.Url}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.OrganizationView1,'Phone')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.Phone}" columns="10" readOnly="true"/>
    </contents>
    </column>
    </contents>
    <tableSelection>
    <singleSelection model="${bindings.OrganizationView1Iterator}" text="Select and ">
    <primaryClientAction>
    <firePartialAction targets="OrganizationView13" source="OrganizationView13" event="select"/>
    </primaryClientAction>
    </singleSelection>
    </tableSelection>
    </table>
    </contents>
    <filterChoice>
    <choice name="filterBy">
    <contents>
    <option text="Name" value="name"/>
    <option text="Address" value="address"/>
    </contents>
    </choice>
    </filterChoice>
    <headerInstructions>
    </headerInstructions>
    <searchInstructions>
    </searchInstructions>
    </listOfValues>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    <event name="goto sort" source="OrganizationView13">
    <invoke method="handleTableUiEvent" javaType="oracle.cabo.adf.rt.AdfUtils">
    <parameters>
    <parameter javaType="oracle.adf.model.binding.DCIteratorBinding" value="${bindings.OrganizationView1Iterator}"/>
    <parameter javaType="oracle.cabo.servlet.expl.ControllerImplicitObject" value="${uix}"/>
    </parameters>
    </invoke>
    </event>
    <event name="select" source="OrganizationView13">
    <set target="${bindings.OrganizationView1Iterator}" property="currentRowIndexInRange" value="${ui:tableSelectedIndex(uix, 'OrganizationView13')}"/>
    </event>
    <event name="lovFilter">
    <compound>
    <invoke method="setWhereClause" javaType="oracle.jbo.ViewObject" instance="${bindings.Name.viewObject}">
    <parameters>
    <parameter javaType="string" value="${empty param.filterBy ? 'NAME' : param.filterBy} LIKE '${param.searchText}'"/>
    </parameters>
    </invoke>
    <invoke method="executeQuery" javaType="oracle.jbo.ViewObject" instance="${bindings.Name.viewObject}"/>
    </compound>
    </event>
    </handlers>
    </page>

    Thanks for the response. OK... This is the first day I have been able to get back to the problem.
    My system I am running Photoshop on is a Power Mac G4, AGP Graphics ATY Rage 128Pro chip set 16MB VRAM LCD 1280x1024 32-bit color, 500MHz, 1.75GB of memory, 1 MB L2 Cache, 100 MHz Bus Speed. I had installed the latest security update and repaired the permissions the day the problem started.
    Now to day I started the system and went in and created a Guest Account. I logged into the guest account and started Photoshop. Low and behold it worked just fine. So I logged out of guest and logged into my main user account And started Photoshop. Wouldn't you know it.... It works just fine. I can open any file I want with now problems.
    I got to thinking after I had done all of this that I wished I had tried to open a file in Photoshop today prior to creating the guest account to see if it still had the problem in my main user account.
    I did not change anything else on the system and all seems to work fine now. So at his point I am really not sure what the problem was.
    Again thanks for taking the time to respond to this issue.

  • How to create a dialog window with no button that opens along with the main window?

    When the main window is open, the dialog window opens up immediately and can be closed by key press. At other times, when the next step, ie: decision, comes to, the another dialog window pops up again and is again closed by key press. Does anyone know how to do? Use the sub-Vi? notification method? occurrence method?
    And another thing: how to create a reusable dialog window with no button so that different messages can be sent to it and it can closed by key press. And how to pass the string to the title of the dialog window programmatically?

    For your functionality (If I understand it right), nothing needs to be in the event structure. Pressing any key just triggers the event, thus finishing the VI (there is no while loop).
    Could you tell me what you mean my "it won't run properly"? Make sure that the front panel of the subVI is closed before starting the main VI. Remember that the subVI is set to "open when called" and "close afterwards if originally closed". So, if you had the panel open already, it won't of course close when finished!
    (Actually, the problems is worse when you have the subVI panel open when starting the main VI. you get a catch22 and labVIEW locks up because (1) the subVI is set to dialog and grabs all attention but (2) it has not been
    called, thus the event cannot be triggered. So don't do that!!!! As a quick workaround, add the modification shown in the attached image to ensure the panel of the subVI is closed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    CloseNoButtonDialog.gif ‏3 KB

  • Exception while Creating Confirmation Dialog Window

    Hi,
    Iam trying to create a confirmation Pop up window on the click of a "Save" button. I followed the procedure mentioned in the following link :
    http://wiki.sdn.sap.com/wiki/display/WDJava/CreatingConfirmationDialogBoxinWebDynproJava
    But when i click on Save button, iam getting this exception -
    com.sap.tc.webdynpro.services.exceptions.CreationFailedException: add of choice failed! (eventhandler: null)
    at the following line :
    IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(
      /* dialogText, evtHndlr, buttonText OR evtHndlr.getName() */
      wdComponentAPI.getTextAccessor().getText("GoHomeConfQuestion"),
      evtHndlr,
      wdComponentAPI.getTextAccessor().getText("GoHomeConfCancel")
    Can any one please suggest me where iam going wrong and what is the cause of this exception?
    Thanks in advance.
    Regards,
    Maggie

    Sample code
    dialog part
    IWDConfirmationDialog createDialog=wdComponentAPI.getWindowManager().createConfirmationWindow("You are going to Submit.  Are you sure?",ctrl.findInEventHandlers("create"),"YES");
              createDialog.addChoice(ctrl.findInEventHandlers("doNothing"),"NO");
              createDialog.open();
    you have to create event not the metod
      public void create(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //your action
      public void doNothing(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin doNothing(ServerEvent)
    //your action
        //@@end

  • [CS2/CS3] - Resizable dialog window

    Hello,     I would like to create resizable dialog window with only few widgets, please does anybody have some sample of resources, how to do it or some link ?  Thank you for all answers, marxin

    Could you please advise me where to place additional widgets like TreeView and so on ?
    Here is my resizable dialog resource with treeview on it:
    resource AI2DialogWidget (kSDKDefDialogResourceID + index_enUS)
        __FILE__,
        __LINE__,
        kAI2DialogWidgetID, // WidgetID
        kPMRsrcID_None, // RsrcID
        kBindAll, // Binding
        Frame(0,0,406,412) // Frame (l,t,r,b)
        kTrue,
        kTrue, // Visible, Enabled
        kFalse, // erase background
        kInterfacePaletteFill, // fill color
        kAI2DialogTitleKey, // Dialog name
            ErasablePrimaryResourcePanelWidget
                __FILE__,
                __LINE__,
                0,
                kPMRsrcID_None,
                kBindAll,
                Frame(0,0,290,400) // Frame
                kTrue,
                kTrue,
                kFalse, // Erase background
                kInterfacePaletteFill, // Erase to color
                    /* Tree view for tests! */
                    AI2SectionsTreeViewWidget
                        kAI2SectionsTreeViewWidgetID,
                        kPMRsrcID_None, // WidgetId, RsrcId
                        kBindAll,
                        Frame(0,0,289,399) // Frame
                        kTrue,
                        kTrue, // Visible, Enabled
                        kTrue, // EraseBeforeDraw
                        kInterfacePaletteFill, // InterfaceColor
                        kFalse, // Display root node
                        kTrue, // Use H Scroll bar
                        kTrue, // Use V scroll bar
                        20, // fVScrollButtonIncrement
                        20, // fVThumbScrollIncrement
                        20, // fHScrollButtonIncrement
                        20, // fHThumbScrollIncrement
                        2, // Items selectable, 0 = No Selection, 1 = Single Selection, 2 = Multiple Selection
                        kFalse, // Allow children from multiple parents to be selected
                        kFalse, // Allow discontiguous selection
            //<FREDDYWIDGETDEFLISTUS>
            DefaultButtonWidget
                kOKButtonWidgetID, // WidgetID
                kSysButtonPMRsrcId, // RsrcID
                kBindRight, // Binding
                Frame(309,14,389,34) // Frame (l,t,r,b)
                kTrue,
                kTrue, // Visible, Enabled
                kSDKDefOKButtonApplicationKey,  // Button text
            CancelButtonWidget
                kCancelButton_WidgetID, // WidgetID
                kSysButtonPMRsrcId, // RsrcID
                kBindRight, // Binding
                Frame(309,44,389,64) // Frame (l,t,r,b)
                kTrue,
                kTrue, // Visible, Enabled
                kSDKDefCancelButtonApplicationKey, // Button name
                kTrue,  // Change to Reset on option-click.
            //</FREDDYWIDGETDEFLISTUS>
            DialogOnlySizeBoxWidget
                kDialogWindowSizeBoxWidgetID,
                kSysWindowSizeBoxPMRsrcId,
                kBindRight | kBindBottom,
                Frame(389,394,407,412)
                kTrue,
                kTrue,
                kADBEIconSuiteButtonType,

  • Scripting a dialog window

    Hello.
    I'm using InDesign CS4 and I use JavaScript for scripting.
    I would like to create a dialog window that will open when my script is run.
    From that dialog the user can browse for the xml file he wants to import.
    After the import the script will continue running and place the information from
    the xml file to the proper text frames etc. etc.
    Could someone please guide me to the right direction or possibly give me a ready solution
    if it's not too much to ask.
    Any help is appreciated.

    for step 1, use File.openDialog () to get the File object.
    Harbs
    http://www.in-tools.com
    Innovations in Automation

  • Dynamically Create (and reference) Dialog Window Groups

    I'm trying to setup a dialog window that can be easily added to via a CSV file.  The only problem I've run into is; I'm not quite sure how to create the groups dynamically.  Basically, the script setups up a bunch of texture features and then gives the option to save and/or strip that feature.  Below is the basic idea of what I'm trying to do, but the groups are not able to be created in the way that they are shown:
    featArray = [];
    featArray[0] = new Array("Feature Display Name","feature sub-group",'texture',"feature action",'feature type');
    featArray[1] = new Array("Feature2 Display Name","feature2 sub-group",'texture',"feature2 action",'feature2 type'); //etc.
    for(var z in featArray) {
        if(featArray[z][2] == 'texture') {
            w.p1.sp1.add('statictext',undefined,featArray[z][0]);
            w.p1.sp1.g[z] = w.p1.sp1.add('group');
            w.p1.sp1.g[z].orientation = 'row';
            w.p1.sp1.g[z].add('checkbox',undefined,'Save');
            w.p1.sp1.g[z].add('checkbox',undefined,'Strip');
            w.p1.sp1.g[z].children[0].id = featArray[z][0].toLowerCase() + "-save";
            w.p1.sp1.g[z].children[1].id = featArray[z][0].toLowerCase() + "-strip";
    If you change the g[z] to g1, it will create each field correctly (visually), but there is no way to properly reference the check boxes to see which are checked.  Any ideas how, or even if, it is possible to dynamically create a different group for each line of the featArray?  And if so, how to then reference the check boxes in those groups later on?  Thanks in advance for any help!

    You just use the array ie:
    featArray = [];
    featArray[0] = new Array("Feature Display Name","feature sub-group",'texture','feature group','feature type');
    featArray[1] = new Array("Feature Display Name2","feature sub-group2",'texture','feature group2','feature type2'); //etc.
    var w = new Window('dialog','test');
    w.p1= w.add("panel", undefined, undefined, {borderStyle:"black"});
    var x = new Array();
    var count =0;
    for(var z in featArray) {
        if(featArray[z][2] == 'texture') {
            w.p1.add('statictext',undefined,featArray[z][0]);
    w.p1.g = w.p1.add('group');
    w.p1.g.orientation = 'row';
    x[count] = w.p1.g.add('checkbox',undefined,'Save');
    count++;
    x[count] = w.p1.g.add('checkbox',undefined,'Strip');
    count++
    x[0].onClick=function(){
        alert("Checkbox 0 clicked");
    x[1].onClick=function(){
        alert("Checkbox 1 clicked");
    x[2].onClick=function(){
        alert("Checkbox 2 clicked");
    x[3].onClick=function(){
        alert("Checkbox 3 clicked");
    w.test = w.add('button',undefined,'Press to Test');
    w.add('button',undefined,'Cancel');
    w.test.onClick=function(){
    for(var w =0;w<x.length;w++){
        alert("Checkbox " + w + " value = " +x[w].value);
    w.center();
    w.show();

  • Open File dialog window when setting the value of a path type input argument in a VI call

    Hi,
    I am new to TestStand (running 4.0) and I want to create a sequence of VIs to turn on, setup and measure a device. One of my VIs sends a configuration file to my device. An input argument to this VI is the path of the config file. I would like to make it simple to modify this path when setting up the sequence by popping up the File Open dialog window and choose my file. Is this possible? I do not want to manually change the file during execution, just to have multiple calls of one VI, each call opening a different file according to the path given to it during the setup. 
    So far I have only succeeded in manually entering the absolute path each time I add this step. What makes it even more annoying is the fact that LabVIEW interprets the path with the escape codes, rendering the path unusable. Manually adding a 2nd backslash at each '\' occurence adds another step to the process. I tried both String and Path type of inputs, and the SearchandReplace() or ToUpper() (trying to bypass the escape codes) functions in TestStand don't seem to help m.
    Your help is very much appreciated,
    Fred

    Eudaemonic,
    If you want to create a series of easy to configure step types so others can develop sequence files easily, you could use custom step types. When you create a custom step type you implement your own configuration dialog. Since you have control over what controls you expose in your configuration dialog, you can design it so the desired path is selected using a open file dialog. Refer to chapter 13 of the TestStand reference manual for more information about custom step types.
    If you do not want to create a custom step type but you still want to give access to your sequence developers to pre-configured steps, you can use templates. A step template is a snapshot of a step that you can reuse later. Let's assume that instead of asking your users to edit the step to enter the desired path, you create several step templates with different pre-configured paths and based on their applications requirements they could use the appropriate template. Refer to the NI TestStand Help for more information about the Templates list on the Insertion Palette.  
    Hope it helps.
    Antonio Lie. 

  • Print dialog window in report generation

    Hi...
    I would like to create a report from my database and send it to printer. Basicly i want to use something like print report.vi in labview examples. But the sample is print directly to the default printer, how can i display print dialog window so i can select the printer and set another properties.
    Thank you

    After some searching, I found this thread:
    http://forums.ni.com/t5/LabVIEW/Printer-selection/​td-p/23136
    Some VIs were posted which look like they should do what you need.
    Matt Lee
    National Instruments
    Applications Engineer

  • 500   Internal Server error while creating decision dialog type object

    Hi All
    I am working on one CAF application and creating Create an Alternative Block Type. Inside this block I am creating decision dialog type object.When i reached at 4th step [Set Configuration] and editing [Decision Options]. After giving [Option ID]  when i clicks on add button.
    Following errors occuring
    500   Internal Server Error
    Detailed Error Information
    Detailed Exception Chain
    java.lang.NullPointerException
         at com.sap.caf.eu.gp.ui.actions.decpage.VEditOption.onActionAddRule(VEditOption.java:290)
         at com.sap.caf.eu.gp.ui.actions.decpage.wdp.InternalVEditOption.wdInvokeEventHandler(InternalVEditOption.java:235)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:297)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:706)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:660)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:228)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:47)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Those who have encountered such problem please provide me some help.
    With Thanks
    Ramshanker

    Refers to issue below... there is a patch available...
    ParserException when using a Decision Dialog CO
    SAP Note Number: 990460 
    Symptom
    ParserException with the attached stack trace occurs when a Decision Dialog CO is created or executed
       com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
        at com.sap.engine.lib.xml.parser.XMLParser.scanAttList(XMLParser.java:1566)
        at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1687)
        at com.sap.engine.lib.x ml.parser.XMLParser.scanDocument(XMLParser.java:2792)
    The following messages can be found:
    Failed to get Related Model Object for the object com.sap.caf.eu.gp.ui.actions.decpage.CDecisionPageInterfaceViewdecisionPageUsage1
    Or
    Failed to get Related Model Object for the object com.sap.caf.eu.gp.ui.co.exec.decision.COExecDecision
    Reason and Prerequisites
    Affected versions:
    Netweaver 04s SP 07 to SP 09
    Solution
    <b>A.) The issue is cleared in these deliveries:
    NW04s SP 09 Patch 1
    B.) Possible workaround before the release of mentioned deliveries:
    Redeploy the following component from SAP-EU SCA (if redeployment does not help undeploy and deploy again)
    caf/eu/gp/ui/actions</b>
    Header Data
    Release Status Released for Customer
    Released on 19.10.2006
    Priority Correction with high priority
    Category Program error
    Primary Component BC-GP Guided Procedure
    Release
    Soft. Component Release Track From Release To Release And Successors
    SAP-EU   7.00   7.00   7.00    
    Correction Instructions
    No correction instruction available 
    Support Packages
    No Support Packages available 
    Related notes
    No related notes available 
    Attributes
    No attributes available 
    Attachments
    No attachments available
    Reason - Side Effects
    SAP Notes / Patches corrected by this Note

  • Creating a new window from and action event

    Hey I have a problem i would like most of my menu items to create a new window containing a set text and i was thinking of creating a new container with a JTextArea but for some reason its not working. if someone could help me that be great... so my question is how do create another window (TextArea) with my tokenized array info in it open up when Print File or Print Total is the event??
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.util.StringTokenizer;
    import javax.swing.plaf.*;
    class PhoneProject extends JFrame implements ActionListener
         private static final int WIDTH = 260;
         private static final int HEIGHT = 160;
         private static final int X_ORIGIN = 402;
         private static final int Y_ORIGIN = 299;
         ArrayList internalCalls = new ArrayList();
         ArrayList externalCalls = new ArrayList();
         PhoneCall internal;
         PhoneCall external;
         JMenu query = new JMenu("Query");
         JMenu proccess = new JMenu("Proccess");
         String inRecord;
         int numExtension;
         int numCallType;
         int numSeconds;
         int totalIntTime;
         int totalExtTime;
    public static void main(String args[])
              PhoneProject frame = new PhoneProject();
              frame.setVisible(true);
    public  void LoadArray(File myFile) throws IOException
              FileReader fr = new FileReader(myFile);
              BufferedReader br = new BufferedReader(fr);
              while ((inRecord = br.readLine()) != null)
                   StringTokenizer tokenizer = new StringTokenizer(inRecord);
                   String extension = tokenizer.nextToken();
                   String callType = tokenizer.nextToken();
                   String seconds = tokenizer.nextToken();
                   numExtension = Integer.parseInt(extension);
                   numCallType = Integer.parseInt(callType);
                   numSeconds = Integer.parseInt(seconds);
                   if (numCallType == 0)
                        internal= new PhoneCall(numExtension, numCallType, numSeconds);
                        totalIntTime = (totalIntTime + numSeconds);
                        //System.out.println(totalIntTime + "int");
                        internalCalls.add(internal);
                   if (numCallType == 1)
                        external = new PhoneCall(numExtension, numCallType, numSeconds);
                        totalExtTime = (totalExtTime + numSeconds);
                        //System.out.println(totalExtTime + "EXT");
                        externalCalls.add(external);
                   System.out.println(internal.getSeconds());     
         public PhoneProject()
              Container contentPane;
              setBounds(X_ORIGIN, Y_ORIGIN, WIDTH, HEIGHT);
              setTitle("Phone Analyzer");
              setResizable(true);
              contentPane = getContentPane();
            contentPane.setLayout(new BorderLayout());
              JMenu file = new JMenu("File");
              JMenuItem  item;
              item = new JMenuItem("Open");
              item.addActionListener(this);
              file.add(item);
              item = new JMenuItem("Exit");
              item.addActionListener(this);
              file.add(item);
              proccess.setEnabled(false);
              item = new JMenuItem("Print File");
              item.addActionListener(this);
              proccess.add(item);
              item = new JMenuItem("Print Totals");
              item.addActionListener(this);
              proccess.add(item);
              item = new JMenu("Low and High");
              item.addActionListener(this);
              proccess.add(item);
              JMenuItem subItem = new JMenuItem("Compare");
              subItem.addActionListener(this);
              item.add(subItem);
              query.setEnabled(false);
              item = new JMenu("Average Total Utilization");
              item.addActionListener(this);
              query.add(item);
              JMenuItem itemInt = new JMenuItem("Internal");
              itemInt.addActionListener(this);
              item.add(itemInt);
              JMenuItem itemExt = new JMenuItem("External");
              itemExt.addActionListener(this);
              item.add(itemExt);
              item = new JMenuItem("Highest Internal Utilization");
              item.addActionListener(this);
              query.add(item);
              item = new JMenuItem("Highest Total Utilization");
              item.addActionListener(this);
              query.add(item);
              JMenuBar menuBar = new JMenuBar();
            setJMenuBar(menuBar);
            menuBar.add(file);
            menuBar.add(proccess);
            menuBar.add(query);
              contentPane.add(new JTextArea("Phone Report"));
      public void actionPerformed(ActionEvent event)
           String menuName;
           menuName = event.getActionCommand();
           if (menuName == "Open")
                JFileChooser chooser = new JFileChooser();
                int returnVal = chooser.showOpenDialog(this);
                if (returnVal == JFileChooser.APPROVE_OPTION)
                     try
                        File myFile = chooser.getSelectedFile();
                        this.LoadArray(myFile);
                        proccess.setEnabled(true);
                        query.setEnabled(true);
                     catch (Exception e)
         if (menuName == "Print File")
    JTextArea display = new JTextArea();
              display.setText("Hello");testing to see if it works
              display.setVisible(true);
         if (menuName == "Print Total")
                                               JTextArea display = new JTextArea();
              display.setText("Hello");//testing
              display.setVisible(true);
           if (menuName == "Exit")
                System.exit(0);
    }Phone.txt
    2000 0 300
    2000 0 538
    2000 1 305
    2000 1 729
    2005 0 205
    2005 0 305
    2005 1 592
    2005 1 594
    2010 0 364
    2010 0 464
    2010 1 904
    2010 1 100
    2020 0 234
    2020 0 839
    2020 1 999
    2020 1 210
    Assignment: Array Based GUI Assignment
    Telephone call data has been collected from a company's telephone switch. You have been asked to analyze it and produce various statistics.
    Input File
    The input file is a sequential file. It is in no specific order. The file contains an extension number, type of call, and the length of call in seconds. A record is produced each time a call is made from that extension. You should create your own test file.
    Field     Type     Description
    Extension     Integer     Extension number. This is a 4 digit number. Valid Extensions are 2000 to 2020.
    Type     Integer     Value of 1 means internal, any other value is an external call.
    Time     Long     Length of call in seconds
    Example:
    �     2000,1,60 : ----->>>> Extension 2000 had an internal call that lasted 60 seconds
    �     2000,1,356: ----->>>> Extension 2000 had an internal call that lasted 356 seconds
    �     2019,2,65: ------>>>> Extension 2019 had an external call that lasted 65 seconds
    �     2001,1,355: ----->>>> Extension 2001 had an internal call that lasted 355 seconds
    Process
    1.     Use 2 arrays to accumulate the time of calls for each extension, both internal and external.
    2.     The reports and queries are to be produced from the arrays.
    Hints:
    �     Create 2 arrays: one for internal calls and one for external calls.
    �     Load the arrays in Form Load: do not do any calculations here.
    �     The report and queries can totally be produced from the arrays.
    Output: Report
    Telephone Useage Report
    Extension Internal External
    2000 4500 3500
    2001 19350 22981
    2002 2333 900
    2003 3144 122
    Totals 99999 99999
    Output: Queries
    On the form add add query capability.
    1.     Average Total Utilization: Internal Calls: 9999 (total length of all internal calls / number extensions)
    2.     Average Total Utilization: External Calls: 9999
    3.     Extension with the highest internal call utilization: Ext xxxx; 9999 seconds.
    4.     Extension with the highest total utilization.
    Form Design
    The design of the form is up to you. However, use the following guidelines:
    �     use menus (preferred) or command buttons
    �     use a common dialog box to ask for the file name
    �     use a list box or text box to display the output
    the caption on the form should include your name

    hi
    u can try like following code
    if (menuName == "Print File")
              new mytextframe();
    class mytextframe extends JFrame{
         JTextArea display = new JTextArea();
         public mytextframe()
              setSize(300,300);
              setVisible(true);
              add(display);
              display.setText( "ello");
    }

  • Save As & Open Dialog Window for some documents hangs when custom VSTO plugin is installed

    Hello,
    I have created a VSTO application which uploads a word document to Document Management Server. The problem is not with this plugin, but after the plugin is installed, for certain documents when user makes some modification to the document and clicks on File
    -> Save As or File ->Open, the Save As/Open Dialog window, does  not show up and the Word application will be hung (spinning) as it should do if the Save As dialog window would have been shown. The only option is then to kill the WinWord process
    from Task Manager. When I kill the WinWord process from task manager, I see the Save As Dialog window appear for a split second before the WinWord Process shuts down.
    If I uninstall the VSTO application, everything works fine.
    Details on the application:
    Target Framework: .NET Framework 4
    Platform Target: x86
    OS (Developer and End User): Windows 7 Enterprise SP1 64 bit
    Microsoft Office: Microsoft Office Professional Plus 2010 Version: 14.0.6129.5000 (32-bit)
    Help!!
    Regards,
    Yogesh 

    Hi Eugene,
    Thanks for your reply.
    Yes I have tried an empty add-in project as well. Added a label to the ribbon and displayed a static text. I am able to reproduce the issue with this add-in as well. The issue is only reproducable if I deploy the add-in using a setup and deployment project.
    While building the project, Visual Studio installs the add-in by default. If I open the problematic documents with the "developement" version of the add-in installed, it seems to be working fine.
    Regards,
    Yogesh
    Hello,
    >>Yes I have tried an empty add-in project as well. Added a label to the ribbon and displayed a static text. I am able to reproduce the issue with this add-in as well.
    The issue is only reproducable if I deploy the add-in using a setup and deployment project.
    Since it could be reproduced if you deploy any add-in with a setup project, it seems this issue may be related to the your environment.
    It will be helpful if you could share the following information with us.
    The configuration about that setup project and your add-in.
    Whether your user account has admin privilege or not.
    To narrow down this issue, you could consider installing that add-in with setup project in a clean machine.
    If it could reproduce this issue, then we could focus on that setup project instead.
    If not, then we'd better focus on your environment to narrow down this issue.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can no longer do Cmd N within the Save As dialog window

    Hey guys
    For some reason I haven't been able to make new folders within the Save As dialog window by pressing Command N after installing Leopard, I have to manually click the New Folder button. Were commands changed? Is it a bug? I would appreciate if someone can tell me how to get this command back.
    Thank you

    Glad to hear you aren't crazy, but apparently some programmer somewhere was. I always use the button when I'm in Save as to create a new folder, something I do rarely, so I assumed it worked the way it did everywhere else, and, of course when I tried it here in Leopard it did work the way I assumed it ought to. Evidently there was an, umm, how to put this nicely....interface inconsistency (that sounds polite, I think) that was corrected in Leopard. There, I'm sure the original programmer won't be offended. Not to mention his boss, or whoever is supposed to be in charge of Human Interface Guidelines Compliance issues. Whoever it is seems to take frequent vacations....
    Francine
    Francine
    Schwieder

  • Edit open/save as dialog window

    is there a way to edit the Open/Save As dialog window shortcuts in DW/FW?
    Thanks
    GN

    Take a look at this:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_17216&sliceId=1
    Bryan Ashcraft (remove BRAIN to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "eliblow" <[email protected]> wrote in
    message
    news:fjkqvv$gig$[email protected]..
    >I would like to create open Save As dialog using
    ColdFusion. The user will
    >be
    > clicking a button and the dialog will pop up asking the
    user if he want to
    > save
    > the file. I know that it can be done using JavaScript,
    but I am not sure
    > how it
    > could be done with CF. any suggestions?
    >
    > Thank you in advance.
    >

  • Help with creating a new window

    Hi there
    Could anyone help me with the coding to create a new window in java? Basically its when i click on a button a new window pops up
    thanks

    Icer_age828 wrote:
    Could anyone help me with the coding to create a new window in java? Basically its when i click on a button a new window pops upWe need more information on what you mean here, what you know and what you don't know. Do you understand the basics of Java? Are you talking about using Swing? If so, what exactly do you mean by a "new window"? You can create a simple dialog via the method JOptionPane.showMessage(...) method. Do you mean to create and show a new JDialog? JFrame? Do you know about ActionListeners and how to add them to jbuttons? Given your post, I think that your best bet would be to start going through the Sun Java Swing tutorial from the beginning. Look here .

Maybe you are looking for