Adding New Dialogs

I am trying to figure out how to display a second dialog after a button click in my main dialog. I have done the following to add a new dialog, but when I click my main button, nothing happens and InDesign crashes. Can anyone tell me what I am doing wrong. Is there a good description or code snippet that shows how to implement multiple dialog boxes?
..in the __ID.h file, I add a new dialog boss class, new controller and observer Impl, new dialog widget ID, and define a new rsrc id for the second dialog.
.. I create the new observer and controller files and add them to the project creating a new interface using the new Impl's.
..in the __.fr file, In the class description table I add a new class for the second dialog based on kDialogBoss and implementing the new controller and observer Impl. Create a new resource type based on Dialog using the new dialog boss. Then create a new resource of the new type with the new widget Id.
..In the observer code of the main dialog, I use CreateNewDialog based on a rsrcSpec using the resource id of the new dialog.
(Could this be any more complicated?)

Hi Liz,
The steps you have used for creating New dialog are correct.
Try adding following code in your __.fr file where kSecondDialogResourceID is the resource id of the new dialog.
resource LocaleIndex (kSecondDialogResourceID)
kViewRsrcType,
kWildFS,k_Wild, kSecondDialogResourceID + index_enUS
You also make the dialog Type as Modeless in CreateNewDialog()
IDialog* dialog = dialogMgr->CreateNewDialog(dialogSpec,
IDialog::kModeless);
Pls reply if your problem is solved.

Similar Messages

  • EP6 SP2 - Adding a new Dialog Instance

    Hi,
    I have two physical hosts. Host A was installed with State Controller, Dispatcher A and Server A.  Recently, I have added a new Host B with Dispatcher B and Server B.  Host A is the Central instance while Host B is the new Dialog instance.  When I startup the node Server B in Host B, it was trying to synchronise the files with Host A but it ran into an error during synchronization. In node Server B, it was complaining of some error during startup with the go.bat.  The error was :
    Start synchronizing application irj. More details about the synchronization can
    be found in INFO log files.
    Application irj was locally stopped.
    [com.sapportals.portal.prt.dispatcher.Dispatcher@10b0fd, 12/27/04 4:50:54 PM SGT
    , System_Thread_12] Exiting main initialization procedure because of exception:
    java.lang.NoClassDefFoundError: com/sap/portal/prt/sapj2ee/bridge/IAccessor
            at com.sapportals.portal.prt.runtime.Portal.getLogger(Portal.java:402)
            at com.sapportals.portal.prt.runtime.Portal.init(Portal.java:283)
            at com.sapportals.portal.prt.core.PortalCoreInitializer.coreInit(PortalC
    oreInitializer.java:54)
            at com.sapportals.portal.prt.dispatcher.PortalInitializer.<init>(PortalI
    nitializer.java:129)
            at com.sapportals.portal.prt.dispatcher.Dispatcher$doSetupPortalInitiali
    zer.run(Dispatcher.java:160)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.initDispatcher(Dispat
    cher.java:358)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.access$000(Dispatcher
    .java:40)
            at com.sapportals.portal.prt.dispatcher.Dispatcher$InitRunner.run(Dispat
    cher.java:113)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.init(Dispatcher.java:
    391)
            at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(Serv
    letContextFacade.java:3338)
            at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(Serv
    letContextFacade.java:2596)
            at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.deploy(Serv
    letsAndJspImpl.java:520)
            at com.inqmy.services.servlets_jsp.server.WebContainer.commitDeploy(WebC
    ontainer.java:258)
            at com.inqmy.services.deploy.server.DeployServiceImpl.synchronizeLocal(D
    eployServiceImpl.java:4441)
            at com.inqmy.services.deploy.server.DeployServiceImpl.synchronizeLocal(D
    eployServiceImpl.java:4370)
            at com.inqmy.services.deploy.server.DeployServiceImpl.synchronizeApplica
    tions(DeployServiceImpl.java:4293)
            at com.inqmy.services.deploy.server.DeployServiceImpl.makeSynchronizatio
    n(DeployServiceImpl.java:3943)
            at com.inqmy.services.deploy.server.DeployServiceImpl.afterContainerStar
    t(DeployServiceImpl.java:3935)
            at com.inqmy.core.service.context.event.ContainerEventListenerWrapper.ru
    n(ContainerEventListenerWrapper.java:146)
            at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
    WARNING: Dispatcher could not be set up:
    javax.servlet.UnavailableException: Initialization of Dispatcher failed
    javax.servlet.UnavailableException: Initialization of Dispatcher failed
            at com.sapportals.portal.prt.dispatcher.Dispatcher.initDispatcher(Dispat
    cher.java:370)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.access$000(Dispatcher
    .java:40)
            at com.sapportals.portal.prt.dispatcher.Dispatcher$InitRunner.run(Dispat
    cher.java:113)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.init(Dispatcher.java:
    391)
            at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(Serv
    letContextFacade.java:3338)
            at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(Serv
    letContextFacade.java:2596)
            at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.deploy(Serv
    letsAndJspImpl.java:520)
            at com.inqmy.services.servlets_jsp.server.WebContainer.commitDeploy(WebC
    ontainer.java:258)
            at com.inqmy.services.deploy.server.DeployServiceImpl.synchronizeLocal(D
    eployServiceImpl.java:4441)
            at com.inqmy.services.deploy.server.DeployServiceImpl.synchronizeLocal(D
    eployServiceImpl.java:4370)
            at com.inqmy.services.deploy.server.DeployServiceImpl.synchronizeApplica
    tions(DeployServiceImpl.java:4293)
            at com.inqmy.services.deploy.server.DeployServiceImpl.makeSynchronizatio
    n(DeployServiceImpl.java:3943)
            at com.inqmy.services.deploy.server.DeployServiceImpl.afterContainerStar
    t(DeployServiceImpl.java:3935)
            at com.inqmy.core.service.context.event.ContainerEventListenerWrapper.ru
    n(ContainerEventListenerWrapper.java:146)
            at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
      Synchronization of missing application [irj] successfully completed.
    Start synchronizing application MetaMatrix. More details about the synchronizati
    on can be found in INFO log files.
      Error : Background synchronization of application [MetaMatrix] did not succeed
    , because : java.rmi.RemoteException: Error occured while synchronizing applicat
    ion [MetaMatrix]. Committing deploy to container - EJBContainer failed.com.inqmy
    .services.deploy.container.DeploymentException: ID020230 Cannot load bean <com.m
    etamatrix.metadata.server.serverapi.MetadataServerAPIHome>, because Exception oc
    cured in object instantiation: java.lang.NoClassDefFoundError: com/metamatrix/ap
    i/exception/MetaMatrixComponentException; nested exception is:
            com.inqmy.services.deploy.container.DeploymentException: ID020230 Cannot
    load bean <com.metamatrix.metadata.server.serverapi.MetadataServerAPIHome>, bec
    ause Exception occured in object instantiation: java.lang.NoClassDefFoundError:
    com/metamatrix/api/exception/MetaMatrixComponentException
    Any help would be appreciated...
    Thanks.
    regards,
    Mike

    Hi..
    Do you plan have load balancing setup..then you can go for installating another dialog webas java for your existing portal..
    youcan get the installation document at service.sap.com
    https://websmp103.sap-ag.de/instguides..
    see the webas java installation
    You can install another webas java and connect to you existinfg portal as dialog instance...
    Thanks
    Gopal
    (avoid points if it is useful)

  • While adding new fonts, somehow dumped necessary fonts from OS 10.6 library. now have only blank menus, dialog boxes, even apple support site. How to fix?

    Imac Snow Leopard .....While adding new fonts, somehow dumped necessary fonts from OS 10.6 library. now have only blank menus, dialog boxes, even apple support site. How to fix?

    Thanks again baltwo,
    Thank you all very much,
    Strangely enough even though I had gotten the " Install failed....Mac OS X could not be installed on your computer....The install could not copy the necessary support files"  I had left it on the screen and left the room for awhile. I walked back into my computer room a few minutes ago and the window on the screen stated that the SL OS 10.6.4 had successfully installed. I am now very carefully checking things out to make sure the fonts are where they should be. With the exception of some updating it appears all may be well.
    PS. Below is a note I was writing to Kurt (also assisting me) to try and detail what had happened. Added it in case it could be of any value to you
    Kurt,
    Thank you for response. following is series of events to my best recollection.
    I would typically not have been this stupid/ignorant but was doing this in a hurry with someone asking me questions...wasn't paying attn. to what I was doing
    • downloaded new fonts
    • opened downloaded fonts, clicked font icons to open and install them.
    • typed "fonts" in spotlight (with the intention of moving new fonts into font folder)The Spotlight results window revealed 5 or 6 font folders. I ignorantly started to try a clean up by installing all fonts into a single folder (not thinking about system fonts)
    Sometimes when you are moving a folder the window you moved it from will jump around..well this occurred and I mistakenly released the folder on the desk top. This caused a copy to be made. After some investigation I realized it was a copy of the required system fonts that were still located in the original "spotlight results" window.
    • I attempted to delete the copy..when I did an administrator password box appeared I entered the password and the result was both system font folders were deleted (the original & the desk top copy I erroneously made)
    • Now windows open but are blank with sometimes faded mini sized icons. If I click one of the mini icons i get a new blank window. I am unable to give any instruction, have total blank menus, dialog boxes, etc.
    I can open the some of the items that have icons in the apple dock at bottom of page in the 

  • Organization Model : Adding new  relationships

    Hi friends,
    <b> Organization Model : Adding new  relationships to the existing list while assigning agents to a position </b>
    Using transaction PPOMW, after creating an organization unit we assign a position to it.
    When we right click the Position and select assign from the context menu, a dialog box appears where we have to choose relationships.
    Can we create and add new relationships to this list. say for e.g. Position: holder Site
    Please help.
    Jon

    Jon,
    This is definitely possible. I had a similar reqt where a new relationship Position: Holder Location was required.
    Here's how to go about it.
    1. We have to maintain the required entry in the table T77AR
    This can be done through Transaction Code: SM30 or OOVK
    Enter the table name T77AR and click Maintain button
    2. Select Relationship 008: Holder from the table
    Double Click on Relationship Characteristics from the frame on the Left Hand side. Here two entries are maintained.
    The details of each of the above columns are given below.
    A/B: Contains a code that represents a particular type of a relationship. there are two types, active(A) and passive(B) (reciprocal).
    The two types exist since most relationships have two corresponding sides, or perspectives. For example, consider the relationship between a father and son. There is only one relationship, but there are two distinct perspectives to that relationship.                            
    NOTE: Active and passive should not be assumed to mean superior and subordinate. Sometimes one side of a relationship does have a superior standing. However, it is also possible that both sides of a relationship have equal, and corresponding, standing. It is also possible that some relationships will be one-sided. This occurs when, for example, you create relationships with external objects.                            
    Relationship: Contains a code that represents the relationship between two objects.
    100% Check: You can specify in this field whether the 100% limit should be checked when percentages are entered for weighted relationships (infotype 1001).
    The value entered in this field will determine the type of message that is issued if the 100% limit is exceeded when a relationship is created. 
    You can choose between the following values:                     
    'E' = error                                                      
    'I' = information                                                
    'W' = warning                                                    
    ' ' = no check is carried out
    Check Work Schedule: You can use this field to control how the system is to treat relationships to persons in connection with the infotype "Work Schedule" (1011).                             
    Check obsolete: This field controls the system reaction when relationships are entered or changed in connection with the infotype "Obsolete - 1014".
    3. Now double click on the Allowed Relationships button from the frame on the left hand side.
    Here we maintain a new entry ‘Site’.
    Object: S
    Object type text: Position
    A/B: A
    Rel: 008
    Relationship Name: Holder
    RelObjType: F (Site)
    4. This entry now appears in the dialog box
    <b> R&D is the name of the game </b>
    Julius

  • We added an dialog abap instance to a system consisting of 3 DI and one CI

    We added an dialog abap instance to a system consisting of 3 DI and one CI.
    When trying to switch instance  from new instance in sm51 to old instance while being logged to an new instance directly  this is possible
    However when trying to switch instance in sm51 to new instance while being logged to an old instance  this is not possible.
    What could be the reason?

    jan,
    My first thought is whether the hostname of the new instance is availble to the old Dialog Instances (via the services file or DNS) ?
    Failing that, can you answer these questions...
    1) if you use SM51 to connect to an old instance from the new instance, can you then use SM51 to connect back to new instance ?
    2) When you access the new system from SM51, how does the logon fail ?
    invalid user / password ?
    Load balancing failure ?
    Connectivity failure ?
    You'll probably find the answer to your problem if you investigate down these three lines.  However, a more arcane cause could be the network topology...
    Are the instances on the same IP subnet ?
    Are the instances on the same domain or subdomain ?
    Check that there's nothing strange going on with the IP subnet mask.
    Good luck

  • Added new field to cube but data not passed from DSO

    Hope someone can help.
    (BI 7.0) We added new fields into a cube. The fields already existed in the DSO. When we ran the process chain in development for the first time after making this change, we notice that the 'historical' data for these fields is populated in the cube. When we do this in our quality system only new data passed to the cube is updated. In development in the sub-chain DTP request we see all previous requests listed under selections. In quality it is only the latest request. The only difference is that the DeltaInit flag in the DTP request in development is ticked (extraction mode) - but not in quality. Does anyone know whyb this is?

    hi peter,
    Adding fields to cube doesn't affect delta status...The delta DTP should be able to handle delta requests automatically.
    I guess in you quality system, the cube already got all requests updated from ODS before you importing the change request. And in develop system none of the requests in ODS were updated before the change.
    Regards,
    Frank

  • In ical I just added new calendars to a pre-existing calendar group, I can make events with these calendars, but not reminders, any suggestions?

    in ical I just added new calendars to a pre-existing calendar group, I can make events with these calendars, but not reminders, any suggestions?

    Hi,
    Lion has changed the way reminders (todos as was) work. They now seem to need to be in a seperate calendar.
    In iCal open the File menu and select New Reminder List... and select where to put it.
    Best wishes
    John M

  • Added new fields in vendor master in xk01 but data is not getting saved

    Hi experts,
    To add new fields in vendor master i have followed the following steps :
    1.) Appended a structure ZRTGS in LFA1 table with required fields and activated
    2.) Added new button in xk01( vendor master ) using spro -> logistics-general -> business partner -> vendors ->
    control ->adoption of customer's owaster data fields -> prepare modification free-enhancement of vendor master record
    Created a screen group ZR and defined label tab pages with function code ZRTGS and saved entries
    3.) Created a implementation for BADIs VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS.
    4.) Created a program with my own subscreen for the required fields
    The button is getting displayed in XK01, XK02 and XK03 respectively. Whenever the button is clicked the subscreen with
    the fields is also displayed. But whenever i try to save the data in either XK01 or XK02 it is not getting saved in to the
    database table LFA1.
    Request your help in this regard.
    Thanks in Advance.

    Hi,
    You may need to check this include .
    EXIT_SAPMM06E_008  -->Import Data from Customer Subscreen for Purchasing Document
    Thanks,
    vamshi

  • Adding new date field to already loaded data target.

    Hi,
        we have a cube containing date feild such as 0CALMONTH. the data is being loaded to the cube. now they have added new date feild (0FISCYEAR). how to get data to this feild. there is no data coming from source system for this feild. please can any one tell me how to include this feild and load data into it.
    with regards,
    sreekanth.

    Sreekanth,
       If Record creation date is the right field for deriving fiscal year, Why cant you derive the year from the date...by using automatioc time conversion...?? In update rules...??
      For exising data, you can do loop back to populate the data. see the below doc, for more info:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f421c86c-0801-0010-e88c-a07ccdc69601
    Hope it Helps
    Srini
    Message was edited by: Srini

  • I have a Ipod touch and recently added new music to my itunes library on my laptop. When I sync with my ipod, the new music does not show up on my ipod even though the sync process seems to be working.

    I have an Ipod touch and recently added new music to my Itunes library. When I sync with the library, the new music does not show up on my ipod. The sync process seems to be working and there is still plenty of space on the Ipod for new music so I'm not sure what the problem is!

    What happens when you try to sync?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        
    Do you have any Restrictions (Settings>General>Restrictions) set that would prevent syncing those songs?

  • Adding new albums to smart playlist PLEASE HELP

    Having a little trouble adding new albums to smart playlist that already exist. Can this be done?

    Having a little trouble adding new albums to smart
    playlist that already exist. Can this be done?
    I am trying to edit smart playlist but songs dont show up, they are in the library.

  • Adding new characteristics to cube with data

    Hi Gurus,
    i need to add some characteristics to a cube already in production, this cube is customized version of material stocks/movements cube (0ic_c03).
    i am looking for a way to add the new characteristics without having to do reinitialisation (opening stock,...), i am thinking about a loopback process but how do i manage to get the new characteristics populated for the historical data?
    Thank you.

    Hi,
    If you want to load historial data, you must take ECC down time and re-intialization is required.Becasue you are adding new object in Cube and for that you need to change the Update rules, then need to load historical data, so without down time and reinitialization it is not possible.
    Check like below.
    You have data in PSA, so try to delete data from Cube and then load from PSA. Because you may write code in Update rules on;y I think. So in that case, it may work.
    Thanks
    Reddy

  • Adding new fields to Item Data - PO (ME

    Hi All,
    Is it possible to add new custom fields to PO Item Data in Confirmations tab and these new fields are required only in PO Change (ME22N).
    How can we achieve this!
    Can anybody provide feasible solution for the same!
    can anybody tell me if this is possible!
    Thanks in advance.
    Thanks,
    Deep.

    Hi All,
    Thanks for the reply.
    Can anybody confirm BADI ME_GUI_PO_CUST will acheive desired functionality for above posted issue!
    Functionality: Adding new custom fields to confirmation tab. During Inbound delivery in confirmation tab (Item data) if 'Confirmation category' is selected then the new custom fields should show up below for input & they can be saved.
    if 'Confirmation category' is not selected then new custom fields should be invisible.
    Thanks,
    Deep.
    Edited by: Deep on Jul 24, 2009 4:49 AM
    Edited by: Deep on Jul 24, 2009 5:05 AM

  • Adding new fields to the data flow

    Hi,
    I am currently planning to add some new fields in one DSO and map it (with info source) in the update rules.
    Will adding new fields to Info source - Comm. structure affect all the update rules connected to it?
    The info source is connected to multiple DSO.
    (The data source is currently under enhancement for these fields). Once this is done, we have to replicate it to BW.
    Thanks,
    Naveen

    yes.
    Once the enhancement is done for data source in r/3 side, you will have to replicate the datasource in BW.
    Adding new fields will deactivate the update rules. You have to map the same in update rule and activate the same.
    This will require activation of  transformations, update rules, etc for related DSOs. Try to find out the where used list for the DSO where you want to add the new objects. Then check each objects whether these are activate after the changes. If these are inactive, you will have to activate all the objects.
    Cheers
    Chanda

  • Adding new data to update multiple series in charts - in one action

    I would like to know how to update a data series range in a chart all at once as can be achieved with Excel by
    manually entering row numbers to expand the data series range or
    by dragging a reference frame in a table to include additional data in the range.
    At present, the only way that I have discovered I can update a series is to manually change the cell reference detail for each series individually. This is achieved by selecting a single line and clicking several times on the Data reference cell in the Inspector Chart option by highlighting the cell reference details and then manually changing the cell reference for each series separately. This is tedious, time consuming and more than a little clumsy! What used to take me a few minutes to update my charts in Excel is taking me tens of minutes in Numbers.

    theguardian wrote:
    I would like to know how to update a data series range in a chart all at once as can be achieved with Excel by
    manually entering row numbers to expand the data series range or
    by dragging a reference frame in a table to include additional data in the range.
    Unless I'm misreading this, similar techniques work in Numbers.
    The original table contained only the sequential labels in column A and the data shown on the upper chart.
    I made two changes, similar to those in your list (but in the opposite order, hence the reversal in my numbering):
    2. Added data to cells B11:B15 (labeled J-N). (The data added is a copy of the first five data from the original series.) Selected the chart, then expanded the data series by dragging the control (small circle) down to include these cell (plus B16) in the charted range. The chart updated to include this data.
    1. Selected B11:B15, then went Table > Add Rows Below (keyboard shortcut: option-down arrow). Numbers added five rows to the table, and updated the chart to include those rows, as shown in the lower version of the chart. Paste the data into these new rows to add it to the chart.
    Although I had selected rows inside the charted range when adding new rows (to keep that "O" label on the x axis and show the 'space' before it), the five rows could as easily have been added to the end of the chart. Select B12:B16, press option-down arrow.
    Regards,
    Barry

Maybe you are looking for