Event Receiver Popup msg without cancelling the Item

Hello,
   when user updating an item, I need to show a warning message when there is no item for a particular category. But I have to allow user action to continue. I have custom error page which is working fine when I use  properties.Cancel = true;
but it is cancelling the action.
I tried properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl; this also cancels the action
In simple, I don't want to cancel but need popup message.
Thanks in advance.

Hi
Vijay,
According to your description, I know you do not want to cancel action when the Event Receiver Updating method 
throws a warning message.
You can use
HttpContext.Current.Response in the Event Receiver Updating method.
HttpContext.Current.Response.Write("<script>alert('message');</script>");
More information:
http://blogs.msdn.com/b/sowmyancs/archive/2008/03/25/can-we-get-the-httpcontext-in-custom-event-handlers-in-sharepoint.aspx
Best regards,
Dennis Guo

Similar Messages

  • How can I cancel the item that did not ship on my pre-order.

    Hello,
    I ordered two devices on my pre-order, one item shipped and the other didn't.
    How do I cancel the item that did not ship on my pre-order?

        sirguynate805 We're glad that you received your iPhone 6 Plus! Check out this link for cool iPhone info http://vz.to/1e948q1 . Enjoy your new phone and let us know how we can help.
    SheritaH_VZW
    Follow us on Twitter
    @VZWSupport

  • Credit  memo without cancelling  the invoice

    Hello ,
    my  customer  has  a  request  to  create  a  credit  memo  for  full  invoice  and  then  invoice  the  delivery  note  again 
    with  different  price  in  the  invoice.........But  without  cancelling  the  original  invoice.
    As  far  I  know  SAP  standard  dont  allow  this  kind  of  procedure  due  the  status  of  the  delivery.Am  I  right?
    In  which  way  this  could  be  done?What  is  the  right  procedure  for  creating  credit  memo  ?
    Thanks and  best  regards
    L

    Hi Luis,
    This is kind of wierd requirement. How can there be 2 legitimate invoices for 1 order/delivery??
    If you dont cancel the first one, system will not allow you to create a new one.
    Did you check with the users as to why they want such thing..  You can expalin them the process and make them understand.
    Let us know.
    Regards,
    SB

  • I am trying to free my mac book for space. everytime i try to empty the deleted items in trash, it starts and stop without clearing the items. how do i empty the trash

    I am trying to free my Mac book for space in oredr to upgrade. Everytime i try to empty the deleted items in the trash, it starts and stops immediately without clearing the items. How do i achieve this?

    I had the same problem yesterday with an application file that was deleted after installation of an update. I used "Put Back" to move it back to its original location, then used "Show Package Contents" to delete/empty trash for small groups of files at a time. I suppose the application file itself may have been too large to empty at one time. I hope this helps.

  • Cancel Part 1 posted without cancelling the GR

    Hi,
    Is it possible to cancel the part 1 entry without cancelling the Goods receipt.
    Rajesh

    Hi,
    Excise invoice or Part II entries are based on GR / Part I posting hence it is the base for the same. When Qty is in place automatically the value of qty should be there is the meaning. You want to cancel part II (Only value) portion without canceling part I or GR. This is just not possible in terms of SAP and statutory norms. Hence you have to cancel the GR then > go to J1IEX Post Excise invoice under miscellaneous tick Rej indicator and save > Go to J1IEX Cancel the Posted documents. And you can do GR as well as Excise posting once again with same vendor excise invoice no. Hope this helps you

  • Error msg,please help :) "The item you tried to buy is no longer available"

    Hi there, I am using a Macbook pro with Leopard with the newest version of iTunes. Many, many times when I have tried to purchase the newest episode of LOST, I click 'purchase' and type in my information and click 'yes', and for an instant it says 'purchasing' and shows the striped purchasing par across the top for only an instant, and then that disappears and an error message comes up, saying
    "The item you tried to buy is no longer available.
    The availability of the item changed while you were using the store.
    The same item may be available with a different price or elsewhere
    on the store."
    In past weeks, I have been eventually able to purchase the episode, after trying to purchase and receiving the same error literally hundreds of times. Why do I try hundreds of times? Because I want to see LOST! And I will have to face the wrath of my disappointed housemates if I fail to present the episode in time. But this is very, very, very, very frustrating! Please help, iTunes! Or anyone, any help will be greatly appreciated. But this glitch has been going on literally for weeks/months! I expected it to be ironed out and fixed completely by now, but it is not at all, it is just as bad as it was when I first noticed it shortly after the beginning of LOST season 4, a few months ago.
    Also, when I try to email iTunes, I am sure that I can email iTunes if I finally pick a subject that does not apply, but I do not want to do that.
    It is also very, very, very frustrating, whenever trying to email iTunes, to be forced into picking a subject from a very, very limited menu. Many questions, such as this question, do not fit at all into any of the choices presented, from which a person is forced to choose a subject, before being allowed to type an email to iTunes.
    I look forward to any help anyone can give regarding this error message, so that I will be able to purchase the new LOST episode from iTunes. Thanks for your help!

    I had the same issue this morning downloading a pre-order of Alanis, Flavors of Entanglement . I noticed that the only thing that had changed fro me was that I had some song credits for purchasing ticketmaster tickets over the past few weeks. When I went ahead and spent my remaining credits... it downloaded with no prompting or trouble. Maybe the credits issues hangs it up?

  • How to Cancel a Sale Order without cancelling the subsequent document.

    Dear All,
                 I want to cancel sale order but the sale order have a subsequent document is there is any soulution that when i cancel the sale order all the subsequent document, outbound delivery and invoice cancelled in jn\ust one step, if not then what is the other way to solve that problem.

    Hi
    You can reject the sales order by going to VA02
    Go to-> Item -> Enter Reason for Rejection
    and save the order.
    This will reject the order even if the subsequent documents are created so that no further open quantities can be delivered.
    Reward points if useful.
    Regards,
    Nimit
    Edited by: Nimit Raiya on Jul 3, 2008 4:03 PM

  • How to invoke an event when i select one of the items in my JComboBox

    Can any one help me for doing this,i have a combobox in a panel,when i select one item in the combobox some text fields below the combobox need to be disabled,that disabled components vary with the item selected,i try to do this by using event listener but some how i could not get invoke the event,pl some one help me for this,any help would be appreciated.
    Regards.

    The block:
    ivjJComboBox1.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    ivjJComboBox1_mouseClicked(e);
    usually should be included in your constructor or init method.
    The method:
    void ivjJComboBox1_mouseClicked(MouseEvent e){
    String s = (String)ivjJComboBox1.getSelectedItem();
    System.out.println(s);
    should be outside your constructor or init method.
    So it should be:
    public class yourClassName extends xxxxx implements xxxxx
    public yourClassName (...) {
    ivjJComboBox1.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    ivjJComboBox1_mouseClicked(e);
    void ivjJComboBox1_mouseClicked(MouseEvent e){
    String s = (String)ivjJComboBox1.getSelectedItem();
    System.out.println(s);

  • Change messagename(external msg) without losing the messagemapping

    HI all,
    I´m using an external message "externalmsg1" with messagename(root) "test".
    I´ve created a messagemapping by using "test"(external msg) as source and 2 RFC messages(multimapping) as target.
    Now the messagename(inside the external message) was changed from "test" to "test_new".
    Did you know how to change the external message from "test" to "test_new" WITHOUT losing the mapping ?
    note: only the messagename was changed. The structure is the same!
    Thanks for your help,
    Gordon

    Hi Gordon,
    You can consider using mapping templates in PI:
    http://help.sap.com/saphelp_nw04/helpdata/en/79/2835b7848c458bb42cf8de0bcc1ace/frameset.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50171256-1ee2-2a10-3f84-ddecf098f724?quicklink=index&overridelayout=true

  • How to present content without showing the item in left nav bar?

    Here's the scenario -
    I have a single role.  A user logs in and gets their content accordingly.  The default content in the main display area is whatever the first item in the role is (e.g. IView A).  Under that are various folders, iviews, etc.
    How can I make the content from IView A appear, but not actually show the title of IView A in the left hand nav bar?

    Here is what you can do (left navigation is called detailed navigation)
           1.      From the Page Content List of the Default Framework Page, select Desktop Innerpage and click Open.
           2.      From the Page Content List of the Desktop Innerpage select the Detailed Navigation iView and click Properties.
           3.      Scroll to the Start at Level property and assign a value that is one higher than the value of the Number of Display Levels property in procedure l. Configure Top-Level Navigation. For example, if top-level navigation is configured for one level, the detailed navigation begins on the second level, that is with the value 2.
           4.      Click Save.
    Detailed navigation is not automatically synchronized with top-level navigation; the values you enter for top-level and detailed navigation must agree. For example, if you enter the value 1 for top-level navigation, while detailed navigation still has the value 3, one level is left out, creating a gap.
    For more details check this
    http://help.sap.com/saphelp_nw04/helpdata/en/2d/91e33edd37de63e10000000a11405a/frameset.htm
    Regards,
    Piyush
    ps: please award points for useful answers.

  • Exception branch in a block without cancelling the process

    Hi all.
    I have an integration process with a Block where I process a multiline message interface. Inside the block, exception branch for controlling errors is used. When exception is thrown, the process of the pendant elements in the block is canceled. Is any way possible so that the pendant messages in the block can be processed after the error?
    Thanks,
    Gari.

    Hi Gari,
    yes, put 2 blocks in boxes. Outside block is multiline (looping) inside block is processing a single message using the exception branch. Dont stop the process at exception.
    Regards,
    Udo
    Message was edited by:
            Udo Martens

  • Every time I try to download or update an app I receive a notice that says The item is not currently available in The UK store. ***? I'm in California

    Everytime I try to download or an app or Download an update for an app I have, I receive a notice that says "unavailable in the U.K. store" What the heck? I am in California

    http://support.apple.com/kb/HT1311

  • How to change a Skype number without cancelling the subscription?

    Hi there,
    I had purchased a Skype number of UK and it works well but now for some security reasons, I wish to change the number but without giving up my subscription. Is there a way to do this?

    Hi, Supermom1110, and welcome to the Community, Simple answer: no. A Skype Number subscription is tied to the number.  For clarification, a Skype Number subscription is separate from and unrelated to a Skype Calling Subscription which offers discounted prices for placing calls to land lines (and in some cases, mobile numbers). Regards,Elaine  

  • With my current plan can I switch my iphone5c to the iphone 6 without cancelling the plan?

    I just got into a contract with verizon like in May and I got the Iphone 5c. I want to keep the same contract but switch the phone to the iphone 6. I was going to the verizon store later today but I wanted to know if I can do the trade-in stuff but not change my contract.

    You can trade in your phone but you will start out with the full retail cost of the iPhone 6...and can use what ever they give you for your 5c to offset the cost. You may be able to get more for your 5c by selling it yourself (eBay or some other method). Your only other option may be the Edge program.

  • Conflict between Client object model and Item Updated Event Receiver in sharepoint 2010

    Hello All,
    As per my requirement I have a two custom list.
    Agent Details
    Port Name
    Agent Details contains Agent code, Port Name,  email, address and phone of Agent. Its possible that one Agent Code is connected with multiple Port Name.
    Basically what I am doing is I am getting port name connected with Agent code, using jquery and bind those values with check box(using javascript created dynamically) and bind all with Div tag.
    Now when my custom edit form of Agent list open up it shows me different port name binding with checkbox group.
    when user select the check box and click confirm button my clicent object model script will run and add this selected value into Port Name list. 
    After confirm one more button named Save will enable asking user to edit the email, phone or address value and when I click on save my Item updated event fires which update the values of the selected port name(These port name I am getting from port
    name list) to Agent Details custom list.
    Now when I am trying to update the values my event receiver fires or some times it got stuck(not firing). So could you please help me the possible alternative for this requirements.
    Can we user the Ecma Script(Client object model to preserve the value of selectec port) and Item updated event receiver on the same time?
    Is anything am doing wrong then please guide me.

    Hi,
    As I understand, when you updated values in the agent details list the Item updated event receiver got stuck sometimes.
    The item update event receiver will fire after the item has been saved, and the client object model script or the Ecma Script runs before the item is saved, so there is no conflict between the client object model script and item update event receiver.
    You could find out the reason about the item update event receiver gets stuck by debugging the event receiver.
    When you want to debug your event receivers, you have to attach to OWSTIMER.EXE and wait till they are executed. You can control this behavior using the Synchronization attribute. Also, if you’re looking for an easy way to debug an event receiver without
    having to manually attach a debugger to your code, you can use the System.Diagnostics.Debugger.Launch() method.
    The articles below are about how to debug in the event receiver in SharePoint 2010.
    http://sharepoint-kings.blogspot.jp/2013/02/debugging-event-receivers-in-sharepoint.html
    http://chakkaradeep.com/index.php/event-receivers-in-sharepoint-2010/
    http://sharesaint.com/?p=77
    Best regards,
    Sara Fan
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Shared libraries?

    Is there an option or a solution within Photos to do shared libraries, multiple libraries on one computer and between multiple computers?  I am reading and initially it looks like there is less flexibility for this then there was in iPhoto/Aperature.

  • Drag and drop "objects" in labview runtime

    Hello, At the moment I'm looking for a solution to make content movable in de runtime. I'm working on a test sytem that can be connected to many different systems. It wil be great to give the end user the opportunity to place the components in the or

  • Problem with adobe flash for a wabsite

    by accident i cancel adobe flash for a website, and now i am not allowed to change it again

  • Static discharge, vaccuming keyboard safety?

    In the past I have not worried about vacuuming a computer keyboard. However the air has a design that kind of a catches debris. Mustache hair, unidentified objects and crumbs (hey they leap from a plate on a side table as if by magic) . My battery lo

  • Staying connected to the internet with PPPoE

    I'm trying to recover the original network settings on my eMac, after the ISP tech support walked me through a number of changes in order to reestablish the DSL connection. I am connected to the internet, but I am frequently prompted with a question