How to continue the running process behind the model dialogue box options ?

How to continue the running process behind the model dialogue box options like this
In Updation of K7 user press the Cancel Button
New dialogue box appear with Yes/No options.
But the backend updation is going on... not Pause the updation.
Like this how to do ?
Please provide me code.

I don't know, if you mean you have done your form or you have solved the problem.
It's visible your code is only partly reflecting your screenshot, and that's okay to demonstrate the problem you have given a fine example.
As you marked my suggestion as solution this may not be needed anymore, but here's how I modified your code and used a self made QuestionBox instead of messagebox.
The essential part is defining a callback method and letting the QuestionBox call back there. It's not essential I used RAISEEVENT, but it's fine as it has all the behaviour and parameters needed to call back.
Public oTestFrm
oTestFrm=Createobject("MyForm_Model_to_NonModel")
oTestFrm.Show
Define Class MyForm_Model_to_NonModel As Form
onxx = 0
Add Object lbl_DispValue As Label With Top=90, Left = 120, Width = 50, Height=30, Caption=''
Add Object cmd_Start As CommandButton With Top=120, Left = 120, Width = 50, Height=30, Caption='Start'
Add Object cmd_Stop As CommandButton With Top=120, Left = 190, Width = 50, Height=30, Caption='Stop', Enabled =.F.
Procedure cmd_Start.Click
This.Enabled =.F.
Thisform.cmd_Stop.Enabled =.T.
Thisform.onxx = 0
Do While Thisform.onxx < 90000000
DoEvents
Thisform.onxx = Thisform.onxx +1
Thisform.lbl_DispValue.Caption = Transform(Thisform.onxx)
Enddo
This.Enabled =.T.
Thisform.cmd_Stop.Enabled =.F.
Thisform.lbl_DispValue.Caption = ''
Procedure cmd_Stop.Click
* Here, I want NO PAUSE -- (Show running numbers continuously...)
* how to control Model to NonModel in Messagebox.
QuestionBox('Really stop the process', Thisform, 'handleanswer')
Endproc
Procedure handleanswer
Lparameters tlYes
If tlYes && means Stop
Thisform.onxx = 99999999999999999
Endif
Endproc
Enddefine
Procedure QuestionBox()
Lparameters tcMessage, toCaller, tcCallback
If Not Pemstatus(_Screen,"oForms",5)
_Screen.AddObject("oForms","Collection")
Endif
oMsgBox = Createobject("QuestionBoxForm", tcMessage, toCaller, tcCallback)
_Screen.oForms.Add(oMsgBox)
oMsgBox.Show(2)
Endproc
Define Class QuestionBoxForm As Form
Autocenter = .T.
AlwaysonTop = .T.
Minwidth = 200
Add Object label1 As Label With AutoSize=.T., WordWrap =.T.
Add Object cmdYes As CommandButton With Caption = "Yes", Width=40
Add Object cmdNo As CommandButton With Caption = "No", Width=40
Procedure Init()
Lparameters tcQuestion, toCaller, tcCallback
Thisform.label1.Caption = tcQuestion+" ?"
This.AddProperty("oCaller",toCaller)
This.AddProperty("cCallback",tcCallback)
This.Width = Max(This.Minwidth, Thisform.label1.Width)
Thisform.label1.Left = (This.Width-Thisform.label1.Width)/2
This.Height = Thisform.label1.Height+48
This.cmdYes.Left = This.Width/2 - 10 - This.cmdYes.Width
This.cmdNo.Left = This.Width/2 + 10
This.cmdYes.top = Thisform.label1.Height+24
This.cmdNo.top = This.cmdYes.top
Endproc
Procedure cmdYes.Click
#Define clYes .T.
Raiseevent(Thisform.oCaller,Thisform.cCallback,clYes)
Thisform.Release()
Endproc
Procedure cmdNo.Click
#Define clNo .F.
Raiseevent(Thisform.oCaller,Thisform.cCallback,clNo)
Thisform.Release()
Endproc
Enddefine
I didn't yet introduced a timer for counter display updates. As you see the counter hangs a bit, if you mouse over your form, but it is a way of multithreading without using a separate thread and instead keep the rest of the application active by DOEVENTS
in the long running loop code.
Bye, Olaf.
Olaf Doschke - TMN Systemberatung GmbH http://www.tmn-systemberatung.de

Similar Messages

  • Can I get a List of all the running processes in the system using java ?

    I want a complete list of all the Running processes currently in the system.
    List of running processes is like, in MS Window environment while we presses ctrl + alt + del and we get a small window containing a list of all the running processes currently in system.
    I hope somebody have done the same and will help me.
    thanx.

    Here is the sample code to get All running process in your system .
    Its in C++.And you have use JNI to use this code.
    For complete project goto
    http://www.mindcracker.com/mindcracker/c_cafe/winapi/protracker.asp
    typedef BOOL (WINAPI * PFNENUMPROCESSES)(
    DWORD * lpidProcess,
    DWORD cb,
    DWORD * cbNeeded
    typedef BOOL (WINAPI * PFNENUMPROCESSMODULES)(
    HANDLE hProcess,
    HMODULE *lphModule,
    DWORD cb,
    LPDWORD lpcbNeeded
    typedef DWORD (WINAPI * PFNGETMODULEFILENAMEEXA)(
    HANDLE hProcess,
    HMODULE hModule,
    LPSTR lpFilename,
    DWORD nSize
    //unsigned int i;
    static HMODULE hModPSAPI = 0;
    static PFNENUMPROCESSES EnumProcesses = 0;
    static PFNENUMPROCESSMODULES EnumProcessModules = 0;
    static PFNGETMODULEFILENAMEEXA GetModuleFileNameExA = 0;
    if ( !hModPSAPI )
    hModPSAPI = LoadLibrary( "PSAPI.DLL" );
    if ( !hModPSAPI )
    return FALSE ;
    EnumProcesses = (PFNENUMPROCESSES)
    GetProcAddress( hModPSAPI,"EnumProcesses" );
    EnumProcessModules = (PFNENUMPROCESSMODULES)
    GetProcAddress( hModPSAPI, "EnumProcessModules" );
    GetModuleFileNameExA = (PFNGETMODULEFILENAMEEXA)
    GetProcAddress( hModPSAPI, "GetModuleFileNameExA" );
    if ( !EnumProcesses
    || !EnumProcessModules
    || !GetModuleFileNameExA )
    return FALSE;
    LV_ITEM lvi;
    CString str, str1;
    if ( !EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded ) )
    return FALSE;
    cProcesses = cbNeeded / sizeof(DWORD);
    char szProcessName[MAX_PATH] = "unknown";
    for ( int i = 0; i < cProcesses; i++ )
    HANDLE hProcess = OpenProcess( PROCESS_QUERY_INFORMATION |
    PROCESS_VM_READ, FALSE, aProcesses);
    if ( hProcess )
    HMODULE hMod;
    DWORD cbNeeded;
    if ( EnumProcessModules( hProcess, &hMod, sizeof(hMod), &cbNeeded) )
    GetModuleFileNameExA( hProcess, hMod, szProcessName,
    sizeof(szProcessName) );
    str = szProcessName ;
    str1.Format(": %d ", hProcess );
    str += str1 ;
    m_list.AddString ( str );
    UpdateData(TRUE );
    CloseHandle( hProcess );

  • How to stop the running process chain

    How to stop the running process chains or infopackges...just qm status change is enought?

    BI - SM 37 - Kill the Job
    ECC - SM 50 - Kill the job

  • How to get cwd of the current process in the kernel in Solaris 8

    Hi, everyone
    Does any one know how to get the path name of the current working directory of the current process in the kernel in Solaris8 ?
    I searched the forum and got some related links, but none of them gives a clear solution.
    Sample code can help a lot!
    Thank you!

    NiuLin wrote:
    Thanks for the reply.
    What the user structure contains is the vnode pointer of the cwd, but I want go get the pathname of it, like /export/home/abc/.First, all you can get is a path name - there can be more than one. And then there's the problem of determining the path name you want if the process is running under chroot.
    Assuming you don't have to deal with those, there's this thread:
    http://forum.java.sun.com/thread.jspa?threadID=5084620&messageID=9298124
    Of course, that thread doesn't say how to do that. But it appears to be part of Solaris 10.
    I once had to solve this same problem for a Linux kernel module I wrote, so I know it's theoretically possible. But I also know it's not as simple as it seems it should be, and any results you do get are not guaranteed to be unique and, IIRC, not even correct in some cases.
    Sorry I can't be more specific than that right now.

  • Running application behind the proxy

    Hi,
    I have developed one test SAPUI5 application and using Northwind OData service.
    Application is working fine but when I try to run in my office network which is behind the proxy, application is giving "407,Proxy Authentication Required". Following is the web console log.
    Yes this is the obvious behavior as I have to give my user name and password for accessing internet from my office network.
    My question is how should I specify proxy user name and password in SAPUI5 application while accessing OData so that I can run it behind the proxy also.
    /Products [HTTP/1.1 407 Proxy Authentication Required 88ms]
    "2014-04-30 14:47:11 The following problem occurred: HTTP request failed407,Proxy Authentication Required,<HTML><HEAD>
    <TITLE>Access Denied</TITLE>
    </HEAD>
    <BODY>
    <FONT face="Helvetica">
    <big><strong></strong></big><BR>
    </FONT>
    <blockquote>
    <TABLE border=0 cellPadding=1 width="80%">
    <TR><TD>
    <FONT face="Helvetica">
    <big>Access Denied (authentication_failed)</big>
    <BR>
    <BR>
    </FONT>
    </TD></TR>
    <TR><TD>
    <FONT face="Helvetica">
    Your credentials could not be authenticated: "Credentials are missing.". You will not be permitted access until your credentials can be verified.
    </FONT>
    </TD></TR>
    <TR><TD>
    <FONT face="Helvetica">
    This is typically caused by an incorrect username and/or password, but could also be caused by network problems.
    </FONT>
    </TD></TR>
    <TR><TD>
    <FONT face="Helvetica" SIZE=2>
    <BR>
    For assistance, contact your network support team.
    </FONT>
    </TD></TR>
    </TABLE>
    </blockquote>
    </FONT>
    </BODY></HTML>
    Regards,
    Vikram

    Have you configured the proxy settings in Eclipse? I believe the SimpleProxyServlet uses the Eclipse Authenticator, and you can configure the proxy username and password in Eclipse.
    SAPUI5 SDK - Demo Kit
    Internet Servers
    TheSimpleProxyServletcan be configured for proxy requests to internet servers in the same way as for intranet servers. Additional proxy settings may be necessary.
    As theSimpleProxyServletautomatically uses the proxy settings from your Eclipse this can be configured in Eclipse under Window Preferences , and select General Network Connections . Here you can specify the proxy entries and the proxy bypass.
    For example, set Active Provider to Manual, Schema=HTTP, Host=proxy, Port=8080 under proxy entries and localhost, *.sap.corp as Host under proxy bypass.
    Regards,
    Jason

  • How do I monitor running jobs in the Portal (or other J2EE)

    How do I monitor running jobs in the Portal (or other J2EE), like SM66 in
    R/3 ?  We were having an issue that one "job" doing database work was
    holding up doing any modification work in KM. The DBAs could see what was
    holding this up in the database by not doing commits, but unlike R/3, I
    can not find a way to tell what process is generation the database work.
    Is there a monitor in J2EE or Portal that would provide this
    information? This would be valuable in our Webdynpro for Java environment also.
    Thanks for any guidance.

    Hi,
    You can monitor java using Visual Administrator tool and through CCMS RZ20.
    Following PDF shows the JAVA monitoring tools availabe in SAP netweaver.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1f21b290-0201-0010-5c9b-e9f777c17902
    http://service.sap.com/javamonitoring
    Rakesh

  • Monitoring the running process

    hi all!
    i am working on antispyware.
    my problem is:
    how to monitor the computer running processes from the attacking of any spyware/virus
    if some one has sample code, plz send me
    plz guide me in this regard, so i can proceed in my work.
    best regards

    Thanks.
    That makes no sense. Especially given that listener handles the connect and then no longer is involved in the communication between client and database.
    I would strongly suggest you check Metalink, or even open a service request. This sounds like it could be a memory leak. Do it now, while it is still possible - 9i goes into extended support in a few weeks and bug fixes will be difficult to arrange.

  • My iPhone 5 charger stopped working. It's under warranty and I want to send it back. How do I initiate that process? The website keeps sending me in circles.  I'm getting an error message when I put in my serial number.  Why is this so difficult?

    My iPhone 5 charger stopped working. It's under warranty and I want to send it back. How do I initiate that process? The website keeps sending me in circles.  I'm getting an error message when I put in my serial number.  Why is this so difficult?

    If posible you will find visiting a store by far the simplest way of getting a solution
    Which Country
    are you in ?
    Have you checked the lightning socket on iPhone doesn't have lint or fluff in it
    solves majority of such issues

  • How to get the running time on the page

    Hello ,
    I want to display the running clock and the user who loggin in .
    Pls let me know how to get the running clock display and the username who log in.
    thakns
    kumar

    Hi,
    You can use javascript clock and substitution string APP_USER
    Place this to HTML region source
    <input type="text" id="clock" /><span>&APP_USER.</span>
    <script language="JavaScript">
    function runClock(){
    theTime = window.setTimeout("runClock()", 1000);
    var RightNow = new Date();
    var hrNow = RightNow.getHours();
    var mnNow = RightNow.getMinutes();
    var scNow = RightNow.getSeconds();
    var miNow = RightNow.getTime();
    var mon = RightNow.getMonth() + 1;
    var date = RightNow.getDate();
    var year = RightNow.getFullYear();
    var day = RightNow.getDay();
    if(hrNow == 0) {hour = 12;var ap = " AM";}
    else if(hrNow <= 11) {ap = " AM";hour = hrNow;}
    else if(hrNow == 12) {ap = " PM";hour = 12;}
    else if (hrNow >= 13) {hour = (hrNow - 12);ap = " PM";}
    if(hrNow >= 13) {hour = hrNow - 12;}
    if(mnNow <= 9) {min = "0" + mnNow;}
    else{min = mnNow}
    if (scNow <= 9) {secs = "0" + scNow;}
    else {secs = scNow;}
    var zday=new Array(7)
    if (day==0) {zday="Sunday"};
    if (day==1) {zday="Monday"};
    if (day==2) {zday="Tuesday"};
    if (day==3) {zday="Wednesday"};
    if (day==4) {zday="Thursday"};
    if (day==5) {zday="Friday"};
    if (day==6) {zday="Saturday"};
    var zmon = new Array(12)
    if (mon==1) {zmon="January"};
    if (mon==2) {zmon="February"};
    if (mon==3) {zmon="March"};
    if (mon==4) {zmon="April"};
    if (mon==5) {zmon="May"};
    if (mon==6) {zmon="June"};
    if (mon==7) {zmon="July"};
    if (mon==8) {zmon="August"};
    if (mon==9) {zmon="September"};
    if (mon==10) {zmon="October"};
    if (mon==11) {zmon="November"};
    if (mon==12) {zmon="December"};
    $x('clock').value=""+zday+", "+zmon+" "+date+", "+year+" "+hour+":"+min+":"+secs+ap+"";
    runClock();
    </script>Use styles to get look you like to input and span tag
    Br,Jari

  • How do you do word processing on the iPad is there a word processing App?

    How do you do word processing on the iPad is there a word processing App?

    It all depends on what I need to use the document for.
    When I need to create a text document that I need to share at work I use OnLive Desktop.  This gives me a Windows 7 Desktop with Office 2010 apps on it that I can connect to DropBox. https://itunes.apple.com/us/app/onlive-desktop/id490292278?mt=8 or CloudOn https://itunes.apple.com/us/app/cloudon/id474025452?mt=8. You have to be connected to a FAST wifi network to use this option.
    If I need to create a Word doc on the go I use QuickOffice Pro. https://itunes.apple.com/us/app/quickoffice-pro-hd-edit-office/id376212724?mt=8
    Connects to DropBox.
    If I just need to create a formatted text document, think Word document, I use Pages.  It is easy to use on the iPad, because it was designed for it from the start and it now supports TrackChanges. But it does Track Changes a bit clumsy.   https://itunes.apple.com/us/app/pages/id361309726?mt=8
    Connects to iCloud and you can open in Pages from DropBox.
    If I just need a plain text document, I use PlainText.  Connects to DropBox and is easy to use.  https://itunes.apple.com/us/app/plaintext-dropbox-text-editing/id391254385?mt=8
    There are lots of options out there, it just depends on what you need to do the most.

  • How to see the complete code behind the tile?

    Hi All,
    I am working on MSA 4.0. I am able to see the code by double clicking on the methods in the tile but unable to view the complete code behind the tile. I want to see the complete code behind the tile. Can anyone help me with this?
    Best regards
    Vasudha

    Hi Boyai,
    Thanks for the reply. I am able to open the code. Two VBA windows for UI and BOL source code are opened.
    1) I compiled the code.
    2) I selected a particular tile. The methods , event handlers are displayed there.On double clicking one of the method i am able to view a particular code.
    But i want to view the complete code behind that tile like in MSA 5.0 when we right click on the tile-> view code.
    How can i view the complete code behind the tile in MSA 4.0?
    Best Regards
    Vasudha.

  • How to stop the boot process after the GRUB menu?

    Hello there.
    I am getting an error message in the boot process, after the GRUB menu, but I can't read completely the message because it is shown too fast. So, how can I stop the process when I see the error message, for writing down it?
    Thanks in advance.

    zuargo wrote:
    Hello there.
    I am getting an error message in the boot process, after the GRUB menu, but I can't read completely the message because it is shown too fast. So, how can I stop the process when I see the error message, for writing down it?
    Thanks in advance.
    I didn't try this before, but if you use systemd, you may want to try systemd.confirm_spawn to invoke interactive booting process, so you can start the services one by one manually therefore locate the one throwing out error message.
    It is explained in the systemd manual:
    http://www.freedesktop.org/software/sys … stemd.html

  • You purchase properties in Arab game (Sultan desert), while the procurement process and the discount amount lost contact wrote the running game has been cooperation from them but the problem!  I can't buy any properties in the game itself and the science

    You purchase properties in Arab game (Sultan desert), while the procurement process and the discount amount lost contact wrote the running game has been cooperation from them but the problem! 
    I can't buy any properties in the game itself and the science I don't use jailbreak and two free jailbreak is there a program hindered the procurement process so that I can buy anything from the store

    Hello milkisoo,
    Wow! Purchasing a new computer and monitor should be a fun and exciting experience, and instead, it sounds like it’s turned into a complete nightmare. I can only imagine your disappointment when you found two charges relating to its purchase on your debit card account, and I’m sorry for any aggravation this caused. 
    As I want to provide you some piece of mind, I pulled up your order number using your email address attached to the forum. After review of its payment information, I found we collected only one payment.  However, when orders are first placed on BestBuy.com, a pending authorization should show up on your bank card to make sure funds are available for the order until it is fulfilled. From there, the authorization should drop off and the collection charge should appear.  This is the case for your one charge of $1,051.69.
    It also sounds like an error may have occurred when you initially attempted to place your order,  resulting in one of your gift cards not registering properly and the order not being completed.  Your card’s issuing bank doesn’t appear to have recognized this and pushed through the pending authorization. This occurred a second time when your account information didn’t quite match up with what we had on file. Please know that we haven’t ordered a collection of these funds and your issuing bank should release the two pending authorizations within 5 to 7 business days.
    Thank you for posting.
    Alex|Social Media Specialist | Best Buy® Corporate
     Private Message

  • How to define the running order of the listeners

    Hello
    I would like to know how to define the running order of the listeners in my Dialogs.
    e.g. loadcontent on each element will do different things and some depedent on others to load when you you need the generated values based on the generated values of another element
    Thank you
    Nikolas

    Hi mei
    instead of using append use modify.
    i hope this might help you.
    gs_fieldcat-fieldname = 'VRT'.
    * gs_fieldcat-ref_table =.
    gs_fieldcat-outputlen = '3'.
    gs_fieldcat-edit = 'X'.
    gs_fieldcat-key = 'X'.
    gs_fieldcat-coltext = 'VRT'.
    gs_fieldcat-col_pos = 6.
    <b>*append gs_fieldcat to gt_fieldcat.
    modify gt_fieldcat from gs_fieldcat.</b>
    clear gs_fieldcat.
    gs_fieldcat-fieldname = 'QTY'.
    gs_fieldcat-datatype = 'FLTP'.
    gs_fieldcat-outputlen = '12'.
    gs_fieldcat-DECIMALS = '3'.
    gs_fieldcat-coltext = 'QTY'.
    gs_fieldcat-edit = 'X'.
    gs_fieldcat-col_pos = 7.
    <b>*append gs_fieldcat to gt_fieldcat.
    modify gt_fieldcat from gs_fieldcat.</b>
    or u can also try this way.
    form build_fieldcat changing gt_fieldcat type lvc_t_fcat.
      data gs_fcat type lvc_s_fcat.
      call function 'LVC_FIELDCATALOG_MERGE'
           EXPORTING
                i_structure_name = 'TABLE NAME'
           CHANGING
                ct_fieldcat      = gt_fieldcat.
      clear gs_fcat.
      loop at gt_fieldcat into gs_fcat.
        if gs_fcat-fieldname EQ 'VRT'.
          gs_fcat-scrtext_s = 'VARIETY'.
          gs_fcat-scrtext_m = 'VARIETY'.
          gs_fcat-scrtext_l = 'VARIETY'.
          gs_fcat-reptext   = 'VARIETY'.
          gs_fcat-seltext = 'VARIETY'.
          gs_fieldcat-outputlen = '3'.
          gs_fieldcat-edit = 'X'.
          gs_fieldcat-key = 'X'.
          gs_fieldcat-col_pos = 6.
          modify gt_fieldcat from gs_fieldcat.
         endif.
        if gs_fcat-fieldname EQ 'QTY'.
          gs_fcat-scrtext_s = 'QUANTITY'.
          gs_fcat-scrtext_m = 'QUANTITY'.
          gs_fcat-scrtext_l = 'QUANTITY'.
          gs_fcat-reptext   = 'QUANTITY'.
          gs_fcat-seltext = 'QUANTITY'.
          gs_fieldcat-outputlen = '3'.
          gs_fieldcat-edit = 'X'.
          gs_fieldcat-key = 'X'.
          gs_fieldcat-col_pos = 7.
          modify gt_fieldcat from gs_fieldcat.
         endif.
    and so on.....
    endloop.
    regards,
    venu.

  • How to handle long running Processes in J2EE

    Hi all,
    we want to design something like a process engine on our application server. It should be possible to start processes asynchronous, so we think what we need is a message driven bean to start processes.
    The problem is that there are different states while running the process and it should be possibe to request the current state at the running process. But how we get access to the process after its once started over the stateless message driven bean?
    I hope you can understand the problem and maybe have a solution.
    Thanks & regards
    Rene G.

    You are totally right, but i think my problem is not to design a good software application, my problem is to design this in j2ee. I have not so much j2ee experience in this way. Normally to solve this problem i would think about something like a container which contains one thread for each process. But i read that it is forbidden in j2ee to have your own thread management, so this seems to be a bad solution in j2ee, not at all.
    I hope you understand me a little better now and i hope you don't think that i only want to utilize your knowledge to have less work by myself. I think this is a kind of j2ee specific question, which can be ask in a forum like this, isn't it?
    Thanks & regards
    Rene G.

Maybe you are looking for

  • Multiple windows in my application

    Hi I�m trying to design a application that asks the user for a log in id and password first before entering the main application I�m no sure the best way of go about this any suggestions?? I was thinking of using Jtabbedpane but I�m sure there is a n

  • Oracle 11g: How to ensure the same transaction across several BPEL calls?

    How to ensure transaction semantics across invocations of several BPEL services with a Database operations (Insert, update)? We are using transaction REQUIRED property in all of our BPELs. We are using webserive and JCA to access and modify the same

  • Need of F4 help in single values section of select options

    I need to select more than one file as input from application server. For this i used a select option field(with multiple option) and i provided F4 help by using the function module /SAPDMC/LSM_F4_SERVER_FILE in at selection screen value request. Her

  • Review changes in Special Purpose Ledger Report

    Hello, When I go to Accounting --> FI Accounting --> Special Purpose Ledger --> Tools --> Report Painter --> Report --> Change (Tcode GRR2), I can make a change to one of the reports in the library.  When I go back into the report in Tcode GRR3 and s

  • I can not get my camera to work on Skype?

    I need some help my camera on skype is not working?    Thank-you