Update vs Dialog WP

Something that I'm not getting it completely...
I'm going through SM66 and I'm seeing Dialog WPs with Reads, Inserts, Updates, Deletes.
I also see Update WPs with sequential reads, besides the "natural" inserts and updates.
I'm kind of seeing that Dialog WP inserts and updates are to log/vb tables, but still I'm not completely enlightened. Shouldn't the Update process all the change DB activity?
Anyone can shed some light in this?
Thanks

Hi Pedro,
This was known as asynchronous update.
Below is the process
1)Firstly, the program locks the database entry against other users. For this purpose, the enqueue work process is addressed . This generates a corresponding entry in the lock table. The user is informed whether the update was successful, or whether the lock could not be set because of other users.
2. If the lock is set, the program reads the entry that is to be changed and modifies it. If the user has created a new entry, the program checks whether a record with the same key values already exists.
3. In the current dialog work process, the program calls a function module using CALL FUNCTION ... IN UPDATE TASK, and this writes the change details as an entry in table VBLOG.
4. When the program is finished (maybe after further dialog steps), a COMMIT WORK statement starts the final part of the SAP LUW. The work process that is processing the current dialog step starts an update work process.
5. Based on the information passed to it from the dialog work process, the update work process reads the log entries belonging to the SAP LUW from table VBLOG.
6. The update work process passes this data to the database for updating, and analyzes the return message from the database. If the update was successful, the update work process triggers a database commit after the last database change and deletes the log entries from table VBLOG. If an error occurrs, the update work process triggers a database rollback, leaves the log entries in table VBLOG, flags them as containing errors, and sends an SAPmail to the user, who should then inform the system administrator..
Dialog part of SAP:
1)CALL FUNCTION ENQUEUE -->CALL FUNCTION ... IN UPDATE TASK-->Save and commit.
2)After commit the data will write in DB which incall update work process.
Thanks,
Karthik

Similar Messages

  • Update available dialog box appears behind app window

    We have an app that checks for an update each time it launches. This has worked quite well until our latest rev, which included an upgrade to Flash Builder 4.0, the 4.0 sdk, and the AIR 2.0 overlay.
    Now the update dialog box appears behind our application window, which means our users are not going to see it.
    Has anyone else seen this problem?
    Our code looks something like this:
            private function initUpdate():void
                appUpdater = new ApplicationUpdaterUI();
                appUpdater.configurationFile = new File("app:/update-config.xml");
                appUpdater.initialize();
                appUpdater.addEventListener(UpdateEvent.INITIALIZED, autoUpdate);
            private function autoUpdate(ev:UpdateEvent):void
                appUpdater.isCheckForUpdateVisible = false;
                appUpdater.checkNow();
                appUpdater.removeEventListener(UpdateEvent.INITIALIZED, autoUpdate);
    Do I need to try to control the order of the windows? Never had to do that before? Or perhaps "delay" the initialization of the appUpdater() by calling it later in the startup process.
    Any other thoughts are appreciated.
    Kevin S.

    Yes, thanks. That's what I did to solve the problem. I inserted a timer and delayed the call to check for updates for .25 of a second, and now the Update Available dialog is appearing on top of the application window.
    Kevin S.

  • Since the NEW version has been installed, I've receive an update notice of a critical update. Each time I select to apply that update the dialog display never apply any update, it looks to be in a processing state but never completes.

    Any Firefox updates are set to automatically update on my computer. I currently have version 4.0.
    Since the NEW version has been installed, I've receive an update notice for a critical update several times. Each time I select to apply that update the dialog display never apply any update, it looks to be in a processing state but never completes. Of late I've had 2 unexpected issues surface. (1) a Flash Player stopped flashing, an "player stopped" message appeared, "send error report" and a reload player message was included. (2) I just received a error message > 400 "Bad Request" when the browser first opened. This has never happened before.
    Michael Armstrong
    mikes16arms

    It is a Remote Desktop Client Update 3.7.1
    Thank you for answering. I apologize it has taken me so long to get back in here.
    I just realized that I wrote that I installed from app store originally, but I must correct that statement. I never paid for the app so it must have come preinstalled on my 2011 iMac. I was confused since the update is through the store so I assumed I downloaded it. Sorry for any miscommunication.
    So to be clear, even though I have never remotely administered / accessed my computer and I no longer have ARD on my computer, it is normal to have the client update appear in my App Store. Is that correct?
    I appreciate your assistance.

  • Field value not updated in Dialog Programming

    Hi experts
              My problem is when i change the field value in dialog programming, the text value is not updated, its showing the same value what exist in database.
       I have done coding as follows, what i need to change in coding, Pls give me the suggestion.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1200.
    PROCESS AFTER INPUT.
    CHAIN .
        FIELD :  zrecpt-zrno.
        MODULE vali_zrno ON CHAIN-INPUT.
      ENDCHAIN.
    module header_data10.
    MODULE STATUS_1200 OUTPUT.
        SET PF-STATUS 'ZRECT'.
        SET TITLEBAR 'ZRECT'.
    ENDMODULE.              
    MODULE vali_zrno INPUT.
    if zrecpt-zrno  is not initial.
        select single * from zrecpt
                        where zrno = zrecpt-zrno.
    endif.
    ENDMODULE.
    MODULE header_data10 INPUT.
    CLEAR : it_zrecpt.
      REFRESH : it_zrecpt.
      MOVE-CORRESPONDING zrecpt TO it_zrecpt.
      APPEND it_zrecpt.
    ENDMODULE.
    Thanks in advance.
    Regards
    Rajaram

    Hello...
    IN PAI,,
    You were not updating into any database..
    you were just appending to an internal table...
    now either move the internal table values to the database ...
    or you can simply move from the values entered...[text boxes ]
    pls chk.....

  • EHPI update, reinstall dialog instances

    The EHPI installation book as well as the central note 1302772 say that if you are using EHPI and you have dialog instances that you need to De-install and Re-install the dialog instance if you have dual stack or java only stack.
    Can anyone explain WHY this has to be done,  This seems to be a lot of unneccessary work.  In our enviironment the kernel directories are shared per the SAP design.  The dialog instances are shutdown during down time. 
    I just got done doing and update on one of my sandbox systems and afterwards I started up my dialog instance(without reinstalling it) with no problems.
    I did searches about tlhis but found no similar question
    I am updating from NW 7.0 sp18 to Nw EHP1 sp8.

    Hi Harold,
    This forum is highly informative. Did SAP actually update that no re-install is necessary?
    We are done upgrading our SAP ERP 6.0 (ABAP only) system to EHP5 from EHP3.
    Dont we need to upgrade our instance?
    The SAP guide says just re-install with same SID and same instance number.
    It seems very surprising that guide is so largely flawed.
    Secondly there is a catch that we are on oracle 11.2.0.2
    The installation master is asking for 10g Client.
    it will be helpful if you can clarify a bit as what SAP replied precisely.
    Thanks and Regards,
    Karan Shah

  • 10.4.7 Update Restart Dialog

    Hope someone can help because this is baffeling me.
    I installed the 10.4.7 update last night and at the end of it I recieved a semi transparent message with a symbol of a power button in the background of it which said "You need to restart your computer. Hold down the power button for several seconds or press reset button."
    I did this and when powering the computer back up it showed the grey apple logo boot screen with the silver pinwheel spinning constantly. Being worried I checked and repaired the disk and repaired the permissions. Now when I switch on my Mac Mini (G4) It shows the transparent restart computer dialog again and again no matter how many times I restart it.
    Any help or ideas would be greatly appreciated. Thanks
    Mac Mini G4   Mac OS X (10.4.6)  
    Mac Mini G4   Mac OS X (10.4.6)  

    Overall, I was pretty impressed by the ease of resetting everything after the archive and install. All my third-party applications were untouched, but I did have to reinstall the driver for my Canon scanner.
    My iLife apps seemed to be restored to the current versions, but I had to update QuickTime. I also couldn't use iMovie HD without at least 10.4.2, but I just waited until I had a chance to do the 10.4.6 combo upgrade.

  • How can I change my iTunes Store to the USA, so my apps will update? Dialog says my account is not valid in the Canadian store, switch to US. But it won't let me do it.

    My app updates in iPad won't install, when I hit update, it says my account is not valid in the Canadian store, and I must switch to the US store before purchasing. So, I sign out of Canadian store, and try to sign into US store, and that won't work either.
    It says my Apple ID is not valid in the US store, but it must be, because that's where I made my purchases of all those apps in the first place.
    Is it possible I am missing something here? Is this my fault? Can anybody offer a suggestion as to why I cannot sign into USA store?
    Thanks for any and all help.

    [Apologies to pdesteele for this slight OT bit, but it's all relevant to your question, I think ]
    We do have a place in the UK which we could use as an address, but for various reasons it gets a bit complex even though we still have a UK bank account. We moved to France when there were no iDevices and apps around, just bought the occasional music, so it wasn't a problem. Funny thing is I can't even download the free UK bank app because it's not available in the French store .
    I'll live with the problem for now as we plan to move back to the UK in a year or so - we miss the weather .

  • Adobe AIR runtime update dialog breaks application

    I'm working on a large project that utilizes a C++ application to house the core logic and an AIR application to display a UI. The C++ program launches the AIR UI and passes it several command line parameters, including locale and port number to call back to the C++ application with.  Under normal circumstances, this works great.
    However, when there's an Adobe AIR runtime update, things go bad.  The runtime intercepts the UI invocation, kills it, and displays the generic AIR "do you want to update?" dialog.  Whether the user presses update or cancel, the UI application eventually gets relaunched -- but without the command line parameters originally passed to it!  I presume this is a bug in the Adobe AIR runtime updater code.
    The end result of this is that the UI gets relaunched, but doesn't know how to localize itself or what port to call back to the C++ application with!  If the user relaunches, it works fine (because the update dialog won't intercept again), but by then the user experience has already been mangled.  We can't even display a localized error message to tell them to relaunch because we don't know what locale they're using any more, and we can't call back to the C++ application to ask.
    I'm trying to find solutions/workarounds to this issue.  Because AIR won't let us turn off the update check on a per-application basis, it seems like the only viable solution would be to turn off the runtime update check for the whole machine.  But altering machines settings for the benefit of one application is definitely bad form, and I'd prefer not to do that if any other viable workaround exist.
    Any ideas?

    I filed a bug report last night using that same form.
    The duplication steps are straightforward.  I can duplicate the following with 100% success on a freshly imaged Win 7 32-bit box, admin user account:
    1) Install older version of Adobe AIR framework (I tried both 1.1 and 1.5.1).  It will ask you to update.  Click "Update later".
    2) Pull up task manager and watch the process list
    3) Run ANY Adobe AIR app with some parameters (I used Adobe's Settings Manager as a sample because it's small)
    4) Note that your application appears in the task manager briefly
    5) Your app is terminated and "Adobe Air Installer.exe" appears in the task manager.  A dialog pops up asking you to update.
    6) Click cancel
    7) Your app is reinvoked without any parameters
    As for my specific case, by "session" I do mean a single launch.
    I'm not aware of an evoke event -- perhaps you meant invoke event?  The invoke event is not executing before the app terminates (in step 5 above).  I think the AIR app is just running long enough to load the runtime and then the runtime takes over from there.
    Thanks...

  • Updating dialog instance after upgrade to EHP5.

    Hi,
    We have finished the upgrade of our ERP 6.0 system from EHP3 to EHP5 on the central instance. Our systems are on HP-UX 11.31 / Oracle 11.2.0.2
    THe guide mentions that for application servers we need to re-install the dialog instance with same SID and instance number.
    This seems highly unnecessary for Unix.
    We also referred the forum [http://forums.sdn.sap.com/thread.jspa?threadID=1908515] which seems to be saying we dont need to update or re-install.
    Secondly, we had anyways started the updation of dialog install. The new dialog install is stuck since it asks for RDBMS Client DVD.
    We have to provide the 11.2 client DVD but the sapinst tool keeps asking for 10G client DVD.
    This leads to DB connectivity problem since we alrady tried giving the 10G client DVD for 10.2.0.5 and it fails at the last phase.
    Please suggest in case there is any clarity.
    THe error regarding DVD is as follows.
    You entered: /sap_cd/APP_Servers/11g_Client/51038966 Found the label SAP:::MM::CD51038966 but need the label ORACLE:10.0G:CLRDBMS::HPUX_IA64:
    Karan Shah

    Hi,
    You are correct. It is asking for a 10G client DVD. TH SAPinst will go ahead too but it fails ahead in the  installation. The error is pasted below. Quite clearly the DB doesnt connect due to 11g client requiremnts although the software is taking only 10g client DVD.
    <html> <head> </head> <body> <p> An error occurred while processing option <i>SAP NetWeaver 7.0 including Enhancement Package 2 > Software Life-Cycle Options > Application Server > Oracle > Dialog Instance( Last error reported by the step :Java EE Engine configuration error. DIAGNOSIS: See output of log file batchconfig.log: '
    Can not get DB connection. Batchconfig will only be able to execute offline tasks. '.)</i>. You can now: </p> <ul> <li> Choose <i>Retry</i> to repeat the current step. </li> <li> Choose <i>Log Files</i> to get more information about the error. </li> <li> Stop the option and continue with it later. </li> </ul> <p> Log files are written to <code>/tmp/sapinst_instdir/NW702/LM/AS/ORA/DI</code>. </p> </body></html>
    TRACE      2012-02-11 22:22:41.919 [iaxxgenimp.cpp:1245]
               CGuiEngineImp::acceptAnswerForBlockingRequest
    Please suggest.
    Thanks and Regards,
    Karan Shah

  • Programati​cally update the Report Option dialog in NI Test Stand 4.2.1

    Hello,
    I would like to know, what is the procedure to modify Customise the Report Option dialog window with custom default value before displaying the window to user.
    We are writing our own process model to customise report options, Database option and User Management module of Test Stand. I am unable to update the Dialog window with modified settings.
    Please help me.
    I followed the instructions mentioned in link http://forums.ni.com/t5/NI-TestStand/Programmatica​lly-change-station-option-in-TestStand-2-0-1/td-p/​...
    But this is customization for the single sequence and also this is not updating the Report Options Dialog window. Please find the screenshot which i want to customize.
    Solved!
    Go to Solution.
    Attachments:
    ReportOptionWindow.JPG ‏64 KB

    Hi
    The screenshoot you have posted is done my CVI- modelsupport2.dll with funcion DisplayReportOptionsDialogEx.
    in side is code there is ReadReportOptionDefaultsEx (this function will be also used in model sequence "Get Report Options")
    it will read "TestStandModelReportOptions.ini" .
    So there were 2 solutions.
    1. ) Changing ReadReportOptionDefaultsEx (Not recommend because changing stuff from NI is bad, by chaninging you are in charge off)
    2.) Just change the ini File for your needs.
    Hope this helps
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Updating Dialog Box

    Hi, I have this dialog box in my program, and in this dialog box, there's this dropdown menu for choosing some predefined fonts. What I did was that I set action listener for that menu but it seems that I can not change anything once the dialog box is shown(). please please help. I'm looking for some kind of update method, meaning that I'm looking for this method that would update my dialog after i change one of it's components.
    Thanx

    If you attached the Menu to your DialogBox and wrote the action Listener in the Dialog Box than you can easily handle menu in actionCommand(). I think you have forgotten to call menu.addActionListener(this).
    Otherwise if you want to handle the menu selection event in the Parent window of Dialog box than you should go for Modeless Dialog BOx not Model DialogBox.

  • Flash Player installation and update questions and answers

    How do I verify that I have the latest version of Flash Player?
    If you receive a message that tells you that Flash Player is out of date or a new version of Flash Player is available, you can verify this by visiting the Flash Player Help page with your browser.
    Simply click the "Check Now" button and you'll be presented with a short message and detailed information regarding your Flash Player installation.
    Where should I download the latest version of Flash Player?
    Because malware authors will often employ misleading tactics to make malware look like something you should trust, it's important to get your Flash Player updates directly from Adobe.
    Please verify that your Flash Player downloads and updates come from only the adobe.com or macromedia.com domains.  You can always download the latest version of Flash Player directly from https://get.adobe.com/flashplayer
    I've selected the automatic update option in Flash Player, why do I continue to get update notifications?
    Periodically, users are presented with the Flash Player update dialog notifying them that a new version of Flash Player is available for download from adobe.com.
    The automatic update mechanism is used for some updates, security patches that address zero-day vulnerabilities and when users, who have selected to be updated automatically, have not updated within 45 days after a regularly scheduled update release of Flash Player.
    What should I expect when I receive notification that Flash Player has an update available?
    When a major update to Flash Player becomes available you will be presented with a Flash Player update dialog
    After reviewing new features, pressing the Download button will open your default browser and load the Install Adobe Flash Player page.
    Clicking the "Update now" or "Install Now" button will then take you to the next page which will start the download process and give instructions for completing the Flash Player install.
    Finally, once the installation is complete your browser will display a page confirming a successful installation.
    If you encounter installation problems, we recommend you review our Windows and Mac OS installation help documents. Further questions and information can be found on the Flash Player installation forums.
    Why does Adobe Flash Player installer include the option to download additional software?
    Adobe offsets the ongoing development costs of Flash Player, which is made available for free, by offering users the option to download select software from Adobe partners.
    What options do I have when installing or updating Flash Player?
    You have a few different options available when updating Flash Player. We recommend that you choose "Allow Adobe to install updates (recommended)" when initially setting up Flash Player
    or by going into the Flash Player control panel and choosing this option in the Advanced tab.
    Once selected, most updates will occur in the background without requiring any interaction. For those regularly scheduled major update releases, you will be presented with an update notification dialog
    If you decide not to update, you will receive an automatic update within 45 days if you have the "Allow Adobe to install updates" option selected. Please note that when this update occurs, only Flash Player will be installed.
    If you want to be notified about every Flash Player update, select "Notify me to install updates" when initially installing Flash Player or from the Advanced tab in the Flash Player control panel.
    Finally, if you'd prefer not to receive any updates, select "Never check for updates (not recommended)". We do not recommend this option as we believe keeping your system up to date improves both security and stability when using Flash Player.
    For network Administrators we offer additional update options, including the ability to host your own internal Flash Player update server. Please see our Flash Player distribution page and Flash Player Administrator guide for details.

    Sunil, I just want to verify you are pointing me to the link under "Progress bar hangs during download / Unable to connect to server / Unable to download metafile."
    If yes, then that is the file I originally downloaded based on a March post I saw here.
    I just tried it again, and it (by "it" I mean the Flash Player Plug-in (All other browsers from download.macromedia.com) installed 11.6.
    After the installation process completed, the dialog box notified me it was version 11.6, and when I went back to, the "find version" page, 11.6 was confirmed.
    I did not download the exe for Internet Explorer, as I almost never use that browser.

  • The new ACR 5.5 update will not install in Elements 7.0

    Hello All:
    This situation is now becoming ridiculous (well, for me that is).  I just tried to install the new ACR 5.5 update and it is "unable to install" into Elements 7.0.  I downloaded the update several times, unzipped the install file, but when trying to install, it just gives me a message that it is unable to install and to hit the "quit" button.
    I have a Vista 64 Bit system with 12 Gigs of RAM.  I've installed Elements 7.0 and Lightroom 2.5 on my system - all with no problems.  For some reason, I could never get Photoshop CS-4 to install at all and I've been through the mill trying to install Photoshop - but nothing worked and had to eventually give up.  Trying to get Adobe support for CS installation on my 64 Bit system has been ridiculous in this regard as each and every time I called, I was connected with some techrep located in India who all they did was "parrot" back what I told them - how frustrating.  But as I mentioned, Elements 7.0 and Lightroom installed just fine.
    The previous ACR 5.4 installed just fine into Elements, but now...ACR 5.5 will not install.  It tells me that I do NOT have CS-4 installed so it cannot install.  What's up with that? Has Adobe stopped supporting the latest ACR upgrades for Elements?  What gives?
    Does anybody just have just the newest ACR 5.5 plug-in by itself that they can send me so I can just put it in my plug-ins folder (or a place where I can download it)?  Adobe used to just have the plug-in that you could unzip and copy and paste and put it into your plug-in folders - but not anymore.  Now they make it an 82 Meg install program and thus some of my problems.
    Can anybody help here?  Why does the install program look for CS-4, yet overlook Elements 7.0 completely.  Helpppppppppp.
    Ben

    Hi Benherrmann,
    Sorry to listen that you havent been able to install the Camera Raw 5.5 plugin.
    But as far as my knowledge goes for PSE, PSE never lists Camera Raw plugin for updates in the Updater Preferences dialog i.e., if you will launch Help->Check for updates, a updater window will open. If you will check the preferences of that updater dialog, it will tell you that it never checks for updates for Camera Raw plugin unlike what happens in Mac. In Mac Camera Raw updates does get installs just by installing PSE(v6 of course as there is no PSE7 for Mac. Hopefully there will be a v8 for Mac by the end of october as seen in the last release).
    Dont know exact reason why Adobe had configured it in that way? why there is some difference between Win and Mac.
    So it prompts me that somehow you need to install Ps CS4 on the machine to get the patch installation through updater. Although this is not Ps forum, would you mind telling what error/issues are you facing while installing Ps CS4?
    Regards,
    Ankush

  • 10.7.5 update progress bar "upgrading iCal calendars"

    I completed the 10.7.5 update on my MacBook Pro (2011) about ten minutes ago. Since then, after opening iCal, the progress bar "upgrading iCal calendars" has been sitting here. I do have a lot of historical calendar data, going back to 2003. Has anyone else had this problem? Will it finish if I let it go, or are my calendars already corrupt?
    I'm worried because I've had bluetooth/external speaker audio issues, followed some directions, tried to boot into safe mode, and wasn't able to (left the machine for 3 hours, progress bar stuck at about 25%).
    thanks,
    Kim

    After an hour, I tried to quit iCalendar. It was "application not responding," so I force quit, and got back in. In the title bar, it said it was updating, for maybe 45 seconds. Now it's fine and my historical data (stored locally) is there.
    I upgraded another machine, and the Updating progress dialog box appeared for less than a minute and then was fine.
    There's probably something underlying that's wrong with my main machine. Guess I'd better get on with cleaning up.

  • Problem with non modal ADM dialog

    I have problem with focus and mouse and keyboard event passing to non modal dialog if some modal window was opened and closed on Windows platform.
    I have this problem in my plugin, but also I did some tests with SDK WordFinder Plugin.There are 2 dialogs open there : CountDialog-non modal dialog and PromtDialog-modal one. I commented all lines in function DeleteCountDialog to leave this dialog on the screen. So, first, when "create page map" menu is selected, CountDialog is appearing and stays on the screen. At this stage, it can be moved and get focus when is clicked.After that, I click on "find word by word offset" and then PromtDialog is appearing. when I close Promtdialog by clicking on OK or Cancel, CountDialog is "freezing" - means, it can not be moved and does not get focus when I click on it.
    Is it known problem ? Is there is some workaround there ?
    thanks in advance,
    Lidia.

    Thanks a lot for your response.
    I did changes as you recommended, but still have the same result.
    So I have WordFinder from Acrobat SDK 8 with only one file changed:WordFinderDlg.cpp - see below.The result is the same:
    1. I open Acrobat->Open some file
    2. Click on "Advanced->Acrobat SDK->Word Finder->create Page Map" menu
    3. "count" non Modal Dialog is opened and working and then stays on the screen and can be moved without problem.
    4. Now I click on "Advanced->Acrobat SDK->Word Finder->find Word By Offset" - Modal Promt Dialog is opened. click some number and then click ok - choosen word is selected in Acrobat. From this moment, first "Count" dialog is frosen - can be selected, can not be moved.
    The only workaround I see here is to create non Modal dialog every time I close Modal one.
    Could you please advice ? May I please send to you project in zip ?
    I really need it ASAP ?
    thanks in advance,
    Lidia.
    ADOBE SYSTEMS INCORPORATED
    Copyright (C) 1994-2006 Adobe Systems Incorporated
    All rights reserved.
    NOTICE: Adobe permits you to use, modify, and distribute this file
    in accordance with the terms of the Adobe license agreement
    accompanying it. If you have received this file from a source other
    than Adobe, then your use, modification, or distribution of it
    requires the prior written permission of Adobe.
    \file WordFinderDlg.cpp
    - Implements a modeless progress dialog and a generic prompt dialog.
    // Acrobat headers
    #ifdef WIN_PLATFORM
    #include "PIHeaders.h"
    #endif
    #include "ADMAcroSDK.h"
    #include "resource.h"
    Constants/Declarations
    static ADMDialogRef countDialog;
    static AVWindow gAVWindow = NULL;
    // Global variables used for simplicity
    const ASInt32 MaxLen = 80;
    static char textStr[MaxLen];
    static char titleStr[MaxLen];
    static char msgStr[MaxLen];
    Modeless Progress Dialog
    /* UpdateCountDialog
    ** Updates the dialog with a new GUI function to show count number
    void UpdateCountDialog(ASInt32 cnt)
    ADMItemRef itemRef;
    itemRef = sADMDialog->GetItem(countDialog, IDC_COUNT);
    sADMItem->SetIntValue(itemRef, cnt);
    sADMDialog->Update(countDialog);
    /* CreateCountDialog
    /** GUI function to delete the count dialog
    void DeleteCountDialog(void)
    // destroy dialog
    /*if (countDialog) {
    sADMDialog->Destroy(countDialog);
    countDialog = NULL;
    // Release ADM
    ADMUtils::ReleaseADM();*/
    /* SettingsCountDialogOnInit
    ** Called to initialize the the dialog controls
    ASErr ASAPI CountDialogOnInit(ADMDialogRef dialogRef)
    ADMItemRef itemRef;
    itemRef = sADMDialog->GetItem(dialogRef, IDC_COUNT);
    sADMItem->SetUnits(itemRef, kADMNoUnits);
    sADMItem->SetIntValue(itemRef, 0);
    return kSPNoError;
    /* CreateCountDialog
    ** Creates the modeless dialog.
    void CreateCountDialog(void)
    // Initialize ADM.
    ADMUtils::InitializeADM();
    // Display modeless dialog.
    countDialog = sADMDialog->Create(sADMPluginRef, "ADBE:Wordfinder", IDD_COUNT_DIALOG,
    kADMNoCloseFloatingDialogStyle, CountDialogOnInit, NULL, NULL);
    Generic Prompt Dialog
    /* PromptOnOK
    ** Called when the user clicks OK. Stores the string entered by the
    ** user.
    static void ASAPI PromptOnOK(ADMItemRef item, ADMNotifierRef inNotifier )
    sADMItem->DefaultNotify(item, inNotifier);
    // get user input string
    ADMDialogRef dialog = sADMItem->GetDialog(item);
    ADMItemRef item1 = sADMDialog->GetItem(dialog, ID_PROMPT_FIELD);
    sADMItem->GetText(item1, textStr, MaxLen);
    sADMDialog->EndModal(dialog,IDOK,FALSE);
    AVAppEndModal();
    AVWindowDestroy(gAVWindow);
    /* PromptDialogOnInit
    ** Called to initialize the dialog controls.
    ASErr ASAPI PromptDialogOnInit(ADMDialogRef dialogRef)
    gAVWindow = AVWindowNewFromPlatformThing (AVWLmodal, AVWIN_WANTSKEY, NULL, gExtensionID, sADMDialog->GetWindowRef(dialogRef));
    AVAppBeginModal (gAVWindow);
    sADMDialog->SetText(dialogRef, titleStr);
    sADMDialog->SetDefaultItemID(dialogRef, IDOK);
    sADMDialog->SetCancelItemID(dialogRef, IDCANCEL);
    ADMItemRef itemRef;
    itemRef = sADMDialog->GetItem(dialogRef, IDOK);
    sADMItem->SetNotifyProc(itemRef, PromptOnOK);
    itemRef = sADMDialog->GetItem(dialogRef, ID_PROMPT_FIELD);
    sADMItem->SetUnits(itemRef, kADMNoUnits);
    sADMItem->SetMinIntValue(itemRef, 1);
    itemRef = sADMDialog->GetItem(dialogRef, ID_PROMPT_NAME);
    sADMItem->SetText(itemRef, msgStr);
    return kSPNoError;
    /* PromptForInfo
    /** Generic prompt dialog that gets a text string from the user.
    /** @return IDOK or IDCANCEL.
    ASInt32 PromptForInfo(const char *title, const char *msg, char *buf, ASInt32 bufLen)
    if (!buf || (bufLen == 0))
    ASRaise (GenError(genErrBadParm));
    // Initialize ADM.
    ADMUtils::InitializeADM();
    // init data
    buf[0] = 0;
    strncpy(titleStr, title, sizeof(titleStr) - 1);
    strncpy(msgStr, msg, sizeof(msgStr) - 1);
    // Dispaly modal dialog to get user input
    ASInt32 rc = sADMDialog->Modal(sADMPluginRef, "ADBE:Wordfinder", IDD_PROMPT_DIALOG,
    kADMModalDialogStyle, PromptDialogOnInit, NULL, NULL);
    // get user input data
    if (rc==IDOK)
    strcpy(buf, textStr);
    // Release ADM
    ADMUtils::ReleaseADM();
    return rc;

Maybe you are looking for

  • Determining Hours Displayed in Day and Week View

    Hi there, Even though I have determined the Day hours to be, for example, 7am to 6pm in iCal Preferences, and I have determined the number of hours to be shown on the screen to be, for example, 11 hours, I still have to scroll down to fit my Day's ho

  • BAM reports taking more time while fetching data from EDS

    I have created an external Data Source(EDS) in the BAM, and when i create an object with that EDS, it is taking very long to fetch data from the EDS( more than 20 mins.), but as the Database is installed on my local system, when i fire a query there,

  • Safari in Ipad is not showing live stock market

    anyone knows why the trading-online is not showing live update from ipad safari?

  • Nested CASE Statements in my SELECT of Query not calculating correctly

    Hi - Am doing simple query to calculate statistics on students per course, the WHERE includes a parameter for Academic Year, so need If Academic Year = x then calculate age in the 1st Sept of that Year, then count number of 19Yrs&Over. Have included

  • User specific currency translation

    Hi, There is a amount field in a report. The requirement is for different user different different currency value should appear. I mean user wise some predefined currency type. How to approach it. Plz suggest me. Regards, Kiran