Avoid auto close(ststem forms)

Hi,
I want to restrict auto close of system form.
While adding Business partner . after inserting datas sucussfullly form is getting closed.
I want active form.How i can restirct this auto close
By
Firos.C

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE And pVal.Action_Success = False And pVal.FormType = "141" Then
                                                BubbleEvent = False
End if
The above code stops closing of purchase order i.e. 141.On the close event of the form use    BubbleEvent = False to restrict form closing.

Similar Messages

  • Auto Close Form - 6i

    hello all,
    how can i close a form automatically if there is no activity for the last 10 minutes. ( forms 6i)
    thanks in adv.
    kris

    Hi Kris,
    What activity do you mean? something like saving to database ? if so, probably you can try out setting some global variable to a value before and after the activity. And in the trigger, check for the global value and if its after, then perform exit form else nothing.
    HTH.
    Regards,
    Arun

  • SQL Server Error 9001 and auto close on Property

    Hello,
      While talking to one of my application developers, he encountered Fatal Error 9001 while connecting to the database from .NET Application. In the past , he had similar issues and he mentioned that taking the database offline and bringing it back online
    fixed the problem. So we did the same this and the problem got fixed.
    I asked the question why are we having this problem in first place?.I used the SQL Credentials our .NET App uses and I was able to connect to the SQL Server using those credentials and execute the stored procedure. 
    Doing some online searching, sometimes, turning on Auto close property causes this problem. This particular database had that property turned on and I turned it off. I am not sure how it got turned on in the first place. By default it should be off.
    My question is Whats causing this behavior ?. How can I avoid getting 9001 Errors?.
    I am tying to figure out the root cause and better undestand whats going on with the server?.
    I understand the pros/cons of the auto close property but it shouldn't cause 9001 error.
    Your help would be much appreciated.
    My SQL Server Version:
    select @@version
    Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (X64) 
    Sep 21 2011 22:45:45 
    Copyright (c) 1988-2008 Microsoft Corporation
    Standard Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2)
    Thanks,
    I90Runner

    Hi,
    If you refer to
    Microsoft definition of error 9001 it means Log for database is not available. Hope you are using English language
    select text
    from sys.messages
    where message_id = 9001
    and language_id=1033
    Now why would SQL server say log for database is not available, it would say such thing when it wont be able to communicate with log file or wont be able to communicate with disk on which log file resides. I would say this might be disk issue. Not only SAN,
    disk controllers, HBA and other connections which are involved between database and storage should be checked. Please immediately consult your vendor. At first it might seem all is fine but remember I said through check. I faced this issue in cluster and it
    boiled down to Storage issue SQL server was just victim.
    Reg AUTOCLOSE AFAIK by default it is true for express edition not fot other editions
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Auto-open different forms selectively

    I want to be able to open Form1 when I open my Access application manually (double-clicking it) but Form2 instead when opening it from a scheduled task (to auto-run/schedule a process on Form2 that I also want to be able to run manually after navigating
    there from Form1).
    When I run Form2 via a button click on Form1, I pass OpenArgs "Manual". The code in Form2 runs automatically if Nz(OpenArgs,"Manual") = "Automatic"; that is , it runs automatically only if OpenArgs tells it to. So far, so good.
    Auto-starting Form2 was also easy. I could not just open Form2 directly from a macro because (at least as far as I can tell) there is no OpenArgs option for OpenForm in a macro; however, I just created a macro that uses RunCode to run a function that opens
    Form2, passing OpenArgs "Automatic". Then I just pass the macro's name with the /x MacroName command-line argument when opening the application. Again, so far so good.
    Except for one thing: the only way I know (besides VBA or a macro) to auto-open a form is to set that as the default form in the current DB options. But then Form1 opens regardless of whether I open the application by double-clicking it or by using the shortcut
    that includes the /x MacroName argument. This means that when auto-running the application, Form1 opens as well as Form2. No, it does not hurt anything, but I am trying to keep this as clean as possible.
    I tried cancelling Form1's Form_Open event based on the value of a variable set in my auto-run function, but that did nothing to close Form1, so I infer that the default object/event priority in Access causes the form to open, and therefore its Form_Open
    event to fire, before the macro calls the function that opens Form2. So now my aforementioned function sets the value of public Boolean variable AutoRun to True before opening Form2, and I check that value on Form1's timer, then close it if AutoRun = True.
    And yes, I know I could create another shortcut that opens a different macro, or I could set Form1 to be invisible unless AutoRun = False. But the timer event and those all seem like workarounds. I would like to be just a bit more definite about this and
    have Form1 check one time upon opening, or even some way to prevent it opening if the application is opened via my scheduler. That is, it would be great if I could embed a command in my function to tell Form1 not to open even though it is the normal default
    form.
    "Can't be done" or "you're stuck with what you already tried" are OK answers (if true). This is not critical; it just piqued my curiosity on how I might accomplish this.

    Brian,
    Command(), a built-in function, is available in VBA modules but cannot be called directly in the Access user interface (for example, a macro or text box control source). As a workaround, you can wrap Command() with a user-defined function created in a standard
    module:
    Public Function CmdLineArg() As String
        CmdLineArg = Command
    End Function
    and then call it in the user interface like this:
    =CmdLineArg()  [the equals sign is required in some contexts]
    The value of Command() remains in memory until the application is closed.  You can view or modify its value in the Access 2013 user interface by navigating to:
    File tab > Options > Client Settings > Advanced > Command-line arguments:
    or with these VBA methods:
    Application.SetOption "Command-Line Arguments", "SomeText"
    Application.GetOption("Command-Line Arguments")
    Calling Command() directly where necessary would simplify code development and maintenance.

  • How to get rid of the annoying question : "Close This Form?" while exiting?

    When trying to exit a form without doing any changes, sometimes the form asks the question : "Close this Form?".
    I would like to prevent this question, but I have not found any way to catch this (I've put PAUSE command in the ON-MESSAGE trigger at form level, but it does not fire...)
    Thanks in advance ,
    Shimon B.

    Hi shimon_b
    pls try 2 remove any retrieved fk in ur post Query,also avoid using reserved words in ur display items as
    TYPE ,
    ITEM_ID ,ITEM_NAME -- reserved word for java and related staff ...Regards,
    Abdetu...

  • Auto number each form when distributing by email

    I need to assign a number to each form during or before emailing, anyway to do that with scripting? Thanks for all the help, I am getting so close to having everything I need for this form.
    Thanks
    Mike

    Hi Mike,
    I have used the following technique to auto-number a form:
    1) Create a hidden field and use a FormCalc function to get the date-time when the form is opened
    // form1.purchaseOrder.header.DateTimeField1::initialize - (FormCalc, client)
    // The hidden field DateTimeField1 is used as the source for the P.O. number.
    // The function, below, returns a string in the format 20081107055344 where 20081107 is YYYYMMDD and 055344 is HHMMSS.
    $.rawValue = Concat(Num2Date(Date(), "YYYYMMDD"), Num2Time(Time(), "HHMMSS"));
    2) On the target id field extract the month, day, and time (down to the millisecond)
    // form1.purchaseOrder.header.poNum::calculate - (JavaScript, client)
    // DateTimeField1 is used to generate a unique P.O. number (see the initialize event on DateTimeField1).
    // DateTimeField1 produces a value in the format 20081107055344, for example. In this example the substring
    // removes the year 2008 to produce the P.O. number 1107055344.
    var str = form1.purchaseOrder.header.DateTimeField1.rawValue;
    this.rawValue = str.substring(4,18);
    There are many techniques including the creation of a random number using the JavaScript math.random() method.
    See https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/random
    Steve

  • Photoshop is unable to Register/ Auto-Closes upon opening

    Alright,
    I've seen at least one other user with this problem, and it's nothing that can be resolved by signing in and out of the Adobe CC application, or even the Ctrl+Shift+Alt and opening trick.
    So recently I went with the $9.99 a month package for Adobe Creative Cloud containing Photoshop and Lightroom.
    No matter what I try, it won't ever prompt me to input a serial to register Photoshop, therefore any attempts at opening it set off it's anti-piracy measures and make it force-close immediately after opening/ after it finishes loading.
    When I am able to try and register/ finalize registration, it wants me to "complete registration by updating your account information," yet the page continuously loops and clicking "Update and Continue" brings me back to the same page. Which disallows me to register Photoshop.
    This is the reason why I, and possibly others, are unable to use Photoshop, for it auto-closes after fully loading, since it cannot be registered the same way Lightroom is.
    (Lightroom is registered immediately via a prompt message upon first startup asking for a serial code, one of which that is alread inserted/ auto-inserted by the Adobe Creative Cloud application.)
    Upon further investigation to prove my point, on my account the only product registered is Lightroom.
    Picture: http://screencast.com/t/0PTyKbUVLA
    I've tried the customer support chat.
    Multiple times.
    Possibly upwards of 16. Each time the representative went down the same list and copy/ pasted the same answers.
    It's sad that I was the one to narrow it down and have the problem figured out.
    Apparently I have to wait to contact their special support team on Monday to get this resolved.
    Although, it appears the package is "Photoshop Photography Program (For CS3+ customers)," which is not the version listed and advertised all over the site.
    (This package would indicate that I would not be able to use Photoshop since I have not owned Photoshop prior to purchasing this package.)
    Yet the only package that this applies to is this one:
    http://screencast.com/t/pDylveniasI
    This is insanely annoying.
    I would much rather do support via email, and I would also much rather have a more clear product description if the one I selected turned out to have been falsly advertised.
    Message was slightly edited by: MrNameloc

    I was on their Chat Support yesterday for 6 hours. Possibly a bit longer.
    Anyways, after waiting 4 hours for the Technician, the technician walked me through uninstalling Adobe CC and re-installing, but before he had me 'trash' the old preferences.
    Below is the file path (highlighted in blue, obviously), and the items that were changed.
    opm.db was deleted after changing the OOBE folder by adding the '.old' to it. (In the picture you can see the new versus the old...)
    Then afterwards they had me to make sure Adobe CC would not run, then had me to un-install it and re-install. Then had me to un-install Photoshop and re-install.
    (Well, they had me to un-install Photoshop CC, delete Adobe CC's preferences, un-install Adobe CC, re-install Adobe CC, then re-install Photoshop.)
    http://screencast.com/t/hjaPTVD2wl
    Did not work for me. You/ anyone else could try and save yourself 6+ hours in their support chat.
    They even assured me that, on their end, Photoshop had been registered on two machines already under my account; Meanwhile everytime I view my Adobe Products and Services, it still only lists Lightroom.
    Trying to convince them that it's registration is pretty hard. I've seen people with cracks of Photoshop CC, didn't work because Adobe CC keeps re-installing itself if it isn't allowed to be connected to the internet. (They were having the same problem as us; Opening Photoshop had it auto-close, and since Adobe CC cloned itself the anti-piracy measures kicked in causing Photoshop to do this.) However, since the cracks only install the trial version, it's still functional for 30 days. Therefore if you're able to find a trial version of Photoshop, or maybe even get a pirated copy, you'll be prompted to put in a Serial; Then possibly ask Adobe for your Serial, register and activate Photoshop, and maybe it'll work.
    Only reason why I suggest a cracked copy is because you are able to actually download the trial without signing into Adobe CC.
    Plus, it will actually give you a prompt to input a serial key. Unlike the Adobe CC installer.

  • Second popup applet auto-close the first popup applet

    I have a configuration which works in the following way
    1) There's a button on Applet 1, which will pop-up Applet 2 using the ShowPopup method.
    2) In Applet 2, there's a field which has MVG applet.
    I observed the following behaviour:
    1) Click buttons on Applet 1 which pops-up Applet 2.
    2) In Applet 2, click the MVG pick which pops-up the MVG applet.
    3) Close the MVG applet by clicking the X button on the browser window.
    4) When the MVG applet closes, it also auto-close Applet 2. Focus return to Applet 1.
    The expected behaviour is MVG applet close, and focus should return to Applet 2, not auto-close Applet 2.
    Any thoughts?

    Okay, I figured out how to launch an applet from another applet [A]. It was a matter of using a URLClassLoader to load applet [B]. The problem now is that there are some security issues. Even if I sign the applet [B], a security warning is not presented when applet[B] is initilialized. As a result, reading from a file on the local machine can not be done (Security exceptions).
    Any ideas? Thanks in advance.

  • Unable to close web form.

    Here is a typical 11g forms development session for me.
    1. Create/modify a form using Forms builder on my PC.
    2. Transfer the form to the Solaris box.
    3. Compile the form.
    4. Open the form on my web browser.
    5. With the form still open, repeat steps 1-4.
    I have done it this way for years using 10g but 11g frequently freezes the form displayed on the web.
    I have to kill the browser and start all over.
    If I close the form on the web first, there is rarely a problem.
    Also, when a newly compiled form is run on the web for the first time, the canvas colors are all white !
    I can close and re-open the form with no other side effects.
    Do you think this may be a Java setting issue or what ?
    Thanks for your interest.
    Mike

    Mike,
    I have done it this way for years using 10g but 11g frequently freezes the form displayed on the web.I have to kill the browser and start all over.>
    Curious; I have always not done it this way! :) In my experience, and I've been working Oracle Forms for a lot of years, I have found that it is a "Best Practise" to always close an instance of a Forms Runtime rather than try to refresh a newly compiled version of a Form in the Forms Runtime instance. In cases where you don't do this, your browser session typically dies (4 out of 5 times) and you have to kill the browser session completely and start over. I've followed this method since my early days developing with Forms 4.5. In the rare instances where your Forms session doesn't freeze - often times the browser simply displays the same edition of the Form and not the new compiled edition.
    Do you think this may be a Java setting issue or what ?No, I think it is simply a case of the Object is already in use and trying to refresh the instance of the object with a newly compiled Form locks the object rather than refreshes the object. This was true with the old client installed Forms Runtime and I have found this to be true with the new Web Forms Runtime.
    All of this is based on my personal observation and experience, so this is just my opinion. Perhaps someone from Oracle (like Michael Ferrante) could elaborate on this. :)
    Craig...

  • Adobe Reader no longer Auto-Closes after printing

    My company uses software that allows for users to reprint invoices they have previously made.  The way the procedure is supposed to work is: the driver clicks a re-print button, Adobe Reader opens up with the document, prints it, then closes.  Within the past couple of weeks however, everything is fine however Adobe Reader will not close out.  The PDF document itself closes, but the user is then brought to the main menu where they can open up another PDF.  The problem this is causing is that they cannot reprint other invoices until manually closing out of Adobe reader every time.  There have not been any updates made to the software they are using, or to Adobe Reader.  We have users on both Windows XP and 7, and have the issue with both Reader v10 and 11.
    Any suggestions on how I might be able to get Adobe Reader to auto-close again?  I am also checking with the software vendor for their insight.

    Might be difficult to fix.
    You don't know what changes to your system/registry have been made by the virus infection you told of.
    Maybe this article has some useful hints for you.
    http://blogs.adobe.com/dmcmahon/2009/04/12/acrobatreader-acrobat-fail-to-load-its-core-dll -error-after-installation/

  • How to close a Form in LWUIT

    Hi,
    How do I close a form in LWUIT and go back to the form that opened it? There is no close or dispose command. There is a setVisible command
    but I don't seem to know how to use it. It doesn't seem to have any effect when used on a form. I have even tried to call show() on the form that
    opened the form I am trying to close. That doesn't work either.

    altayli wrote:
    I fixed it by converting Vector to Array..Thank you all
    Array -- do you mean java.util.ArrayList object from Java SE? are you going to use it in j2me MIDP application?

  • How to close a form within script

    Hello,
    I'm using Adobe LiveCycle Designer v 8.2 to develop an Order form. I'm fairly new to developing in LiveCycle, and would like to ask the following question that I couldn't find an answer to elsewhere.
    I'd like to know if it is possible to close a form down within a script, if certain conditions are met/not met. Specifically, when my form loads I am testing the user's version of Acrobate Reader. If it is not above the stated version, I would like the form to close down. At the moment, it displays the warning message correctly but then continues to try and load the form.
    I guess the JavaScript equivalent of Me.Close() is what I am after
    if 
    (xfa.host.version < 8.101){
    xfa.host.messageBox("Your version of Adobe Acrobat Reader is not recent enough to use this form.",
    "Wrong version of Adobe Acrobat", 1);//Code to close form to go here
    Can anyone help?
    Thanks
    Matt

    You will be able to close the form but you will not be able to close the Reader application. The command you want is event.target.closeDoc(). This will close the currently active Document. Note that if you are diosplaying in a browser then it will not close the doc ....it will only work form the Reader/Acrobat applications.
    Paul

  • Auto-close a task

    Auto-close a task
    How can I set up a task so I can just use it to attach an email notice, then automatically close the task, so the next task in the delivery plan will become active?
    Use the ServiceLink Dummy Adapter to create an auto-close Agent that will automatically close any task delegated to that Agent.
    Then create your 2 tasks with their respective conditions and corresponding email templates, and associate them each with this Agent (in the Workflow Type dropdown list on the General sub-tab for the task).
    Only one of the tasks will fire (based on the condition), and that task will be automatically closed by the Agent.
    CREATING AN AUTO-CLOSE AGENT
    (1) In ServiceLink, click Agents.
    (2) On the Agents page, click Create Agent.
    (3) Enter a Name and Action for the agent, such as "Auto-Close".
    (4) For the Outbound Adapter, select Dummy Adapter.
    (5) For the Inbound Adapter, select None (auto complete).
    (6) Click Submit to create the Agent.
    (7) Click Start Agent to start the Agent.
    (8) The Agent will now be available in the Workflow Type dropdown list on the General sub-tab for all tasks.

    Sorry the delay in getting back to you.  Hm, so do you have the parent task and child task evaluated?  I am guessing your version should have the ability to select when the conditional expression is evaluated (when delivery phase starts or acitivity become active) The child task that has the always false expression should be configured to evaluate when the activity becomes active.  Also if you would like please attach a screen capture of the workflow you created? 
    Aler

  • I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data

    I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data

    Yes, you can do all of that via Tools - Forms - More Form Options - Import Data, if you have Acrobat.
    If you only have the free Reader then you can still do it, but it requires a script.

  • How to close PDF form in Browser

    Hi,
    Does anyone knows if there are any way to close a PDF form that is opened in a browser (Internet Explorer 6)?
    In my form, there is a button that is supposed to close the form when clicked, it is working if I launched the form in Reader but does not work in a browser.
    The script that I used in the click event of the button is:
    event.target.closeDoc();
    Thank you.

    Hi,
    heres the code
    1. Go to <Your Webdynpro project> - WebDynpro - Web Dynpro Components - <your component> - Windows right click and create a window (PdfWindow).
    2. Place the view that contains pdfForm in the window PdfWindow.Create a button in the view say ClosePdf .
    3. Create a context attribute say WindowInstance of type com.sap.tc.webdynpro.clientserver.window.Window (java native type) in the component controller.Map this attribute to the context of both views (view with button and Pdfview)
    3. In the onAction of button
    IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("PdfWindow");
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
    window.setWindowPosition(500, 500);
    window.show();
    wdContext.currentContextElement.setWindowInstance(window); // this iwll bw used to destroy the pop up
    4. In Pdfview create a action closepopup and associate with button ClosePdf. In the action write
    IWDWindow window = wdContext.currentContextElement.getWindowInstance();
    window.destroy(); // this will close the popup.
    Note:
    you dont need wdContext.currentContextElement().setPdfVisible(WDVisibility.VISIBLE); as your pdfform is in different view.
    Message was edited by:
            Shriram Kabra

Maybe you are looking for

  • NTLM Question

    We have 'Send NTLM response only" set on all domain controllers (Windows 2008) and "Send NTLMv2 response only. Refuse NTLM and LM" configured on all member servers. We want to modify the authentication level on DC's to "Send NTLMv2 response only. Ref

  • HOW to use class in different file???

    hi I want to use other class and write them separately in different .java file but when i compile the one who call the class it says it cannot resolve the symbol, which is the class name I call Can anyone help me

  • SXPG_COMMAND_EXECUTE cmd COPY

    Hi All! In SM49 we defined 2 commands, one for moving (cmd /c MOVE) a file and the other one for copying (cmd /c COPY) one. My user is allow to move files but not copying them into the same directory. Or at least looks like that. In SM49 we defined Z

  • FlexBuilder 3 Keeps Crashing

    When using the debugger in FlexBuilder 3, it often crashes (closes). An error popup from Flexbuilder opens and the application closes immediately. Some of the error message is below: JVM Terminated. Exit code = 1. C:\Program Files\Adobe\Flexbuilder 3

  • Malware/Trojans on a new MacBook Pro

    My MBP is only 2 weeks old. The day after I got it I began to notice suspicious behavior when surfing the net (Yahoo Mail, Yahoo News, Facebook) when the screen I was on would be hijacked to an another site or ad of some kind. I screen-capped the exa