[OzMOSS] [listserver] List Posting Error Notification
- MailEnable: You are not permitted to post to the list (listserver@ozMOSS.com). This list may be password protected, or you may need to have previously subscribed to the list in order to post to it. - --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] RE: Getting the current view of a list in the updating event handler.
Hi Ishai, Thanks for you reply. Your answer was not what I was hopping but gives me an idea of a way to try and I do not give up until I try my last idea. I remember reading on internet a way to get the current http context adding the following lines in the initialization of the class: using System.Web; namespace SoftwareRegisterList { public class ItemEventReceiver : SPItemEventReceiver { HttpContext CurrentHttpContext; public ItemEventReceiver() { CurrentHttpContext = HttpContext.Current; } ... } Yes, but the HttpContext do no have any reference to the SPView. Then I check the SPContext and I found that has a ViewContext property that return a SPViewContext object that contain an View property that return an SPView object. Then, I tried to use the same code but changing the HttpContext to SPConext like this: public class SoftwareRegisterEventReceiverItemEventReceiver : SPItemEventReceiver { SPContext CurrentContext; public SoftwareRegisterEventReceiverItemEventReceiver() { CurrentContext = SPContext.Current; } And yes, I get the SP Current Context but for my desperation the ViewContext property is not instantiated. Then I saw that was a CurrenContext method in the SPItemEventReceiver class. But again no luck and here is my first question: Why is an overridden CurrentContext method created when you add an event handler if this method does not exist in the SPItemEventReceiver Class at all and then it will never fire? I suppose the answer is the TODO summary description on the top. :o) At this point I am running out ideas but I would like to ask if you or any in the news group has tried this path and what was the outcome. Best Regards, Javier Martinez From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ishai Sagi Sent: Monday, 24 November 2008 3:35 PM To: listserver@ozMOSS.com Subject: [OzMOSS] RE: Getting the current view of a list in the updating event handler. You cant. Even though the event is synchronous, you don't get a reference to the current context, which means you will not be able to tell. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martinez, Javier (Outsourcing) Sent: Monday, 24 November 2008 5:03 PM To: listserver@ozmoss.com Subject: [OzMOSS] Getting the current view of a list in the updating event handler. Hi All, I have been trying to figure out how to get the current view of a list in the updating event handler but no luck. My problem is that I want to know if the view is Standard or Grid and do different things depending on the view. Something like this: /// summary /// Synchronous before event that occurs when an existing item is changed, for example, when the user changes data in one or more fields. /// /summary /// param name=properties /// A Microsoft.SharePoint.SPItemEventProperties object that represents properties of the event handler. /// /param public override void ItemUpdating(SPItemEventProperties properties) { if (string.IsNullOrEmpty((string)properties.AfterProperties[Person]) == true) { if (string.IsNullOrEmpty((string)properties.AfterProperties[Return Date]) == true) { if(GetCurrentViewType(properties.ListItem.ParentList).CompareTo(GRID) == 0) { properties.AfterProperties[Book out] = 0; } else { properties.AfterProperties[Book out] = false; } } } } public string GetCurrentViewType(SPList List) { foreach (SPView View in List.Views) { // This does not work when the List is embedded in a webPart if (View.Url.CompareTo(List.ParentWebUrl) == 0) { return View.Type; } } return N/A; } I have tried to use the parameters.ItemList.ParentList object with the GetView, Views and DefaultView properties but any of them return the view used in the current context. Any help will be appreciated. Regards, Javier This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. --- OzMOSS.com - to unsubscribe from this list, send a
[OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box
Hi All: I think someone may ask the same question, if I hide the scope dropdown list, the search box will search All Site. Is there easy way to change the default scope without write your own search box control? Cheers Ken --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box
Did you try to change the Scope in Central Admin -Search Scope?! Alternative solution is to change the scope in search webpart. See instruction there http://social.technet.microsoft.com/Forums/en-US/sharepointsearch/thread/4e87c21a-46af-41fa-a2d3-df4048aa9794/ Michael Nemtsev | WSS MCTS, MS MVP Readify B: http://msmvps.com/blogs/laflour/ T: +61 424 184 978 E: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ken zheng Sent: Tuesday, November 25, 2008 3:05 PM To: listserver@ozmoss.com Subject: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Hi All: I think someone may ask the same question, if I hide the scope dropdown list, the search box will search All Site. Is there easy way to change the default scope without write your own search box control? Cheers Ken --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box
Hi Michael: I don't want to change the global search box, only one search box web part added in the site. So I want to hide the dropdown list and set the default scope to my custom search scope instead of All Site Thanks Ken From: [EMAIL PROTECTED] To: listserver@ozMOSS.com Date: Tue, 25 Nov 2008 15:29:47 +1100 Subject: RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Did you try to change the Scope in Central Admin -Search Scope?! Alternative solution is to change the scope in search webpart. See instruction there http://social.technet.microsoft.com/Forums/en-US/sharepointsearch/thread/4e87c21a-46af-41fa-a2d3-df4048aa9794/ Michael Nemtsev | WSS MCTS, MS MVP Readify B: http://msmvps.com/blogs/laflour/ T: +61 424 184 978 E: [EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ken zheng Sent: Tuesday, November 25, 2008 3:05 PM To: listserver@ozmoss.com Subject: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Hi All: I think someone may ask the same question, if I hide the scope dropdown list, the search box will search All Site. Is there easy way to change the default scope without write your own search box control? Cheers Ken --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box
You can do that with javascript I guess. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ken zheng Sent: Tuesday, 25 November 2008 3:38 PM To: listserver@ozmoss.com Subject: RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Hi Michael: I don't want to change the global search box, only one search box web part added in the site. So I want to hide the dropdown list and set the default scope to my custom search scope instead of All Site Thanks Ken From: [EMAIL PROTECTED] To: listserver@ozMOSS.com Date: Tue, 25 Nov 2008 15:29:47 +1100 Subject: RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Did you try to change the Scope in Central Admin -Search Scope?! Alternative solution is to change the scope in search webpart. See instruction there http://social.technet.microsoft.com/Forums/en-US/sharepointsearch/thread/4e87c21a-46af-41fa-a2d3-df4048aa9794/ Michael Nemtsev | WSS MCTS, MS MVP Readify B: http://msmvps.com/blogs/laflour/ T: +61 424 184 978 E: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ken zheng Sent: Tuesday, November 25, 2008 3:05 PM To: listserver@ozmoss.com Subject: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Hi All: I think someone may ask the same question, if I hide the scope dropdown list, the search box will search All Site. Is there easy way to change the default scope without write your own search box control? Cheers Ken --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box
Yep. check this sample http://blogs.officezealot.com/mauro/archive/2008/11/24/21250.aspx Michael Nemtsev | WSS MCTS, MS MVP Readify B: http://msmvps.com/blogs/laflour/ T: +61 424 184 978 E: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ishai Sagi Sent: Tuesday, November 25, 2008 4:13 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box You can do that with javascript I guess. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ken zheng Sent: Tuesday, 25 November 2008 3:38 PM To: listserver@ozmoss.com Subject: RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Hi Michael: I don't want to change the global search box, only one search box web part added in the site. So I want to hide the dropdown list and set the default scope to my custom search scope instead of All Site Thanks Ken From: [EMAIL PROTECTED] To: listserver@ozMOSS.com Date: Tue, 25 Nov 2008 15:29:47 +1100 Subject: RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Did you try to change the Scope in Central Admin -Search Scope?! Alternative solution is to change the scope in search webpart. See instruction there http://social.technet.microsoft.com/Forums/en-US/sharepointsearch/thread/4e87c21a-46af-41fa-a2d3-df4048aa9794/ Michael Nemtsev | WSS MCTS, MS MVP Readify B: http://msmvps.com/blogs/laflour/ T: +61 424 184 978 E: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ken zheng Sent: Tuesday, November 25, 2008 3:05 PM To: listserver@ozmoss.com Subject: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Hi All: I think someone may ask the same question, if I hide the scope dropdown list, the search box will search All Site. Is there easy way to change the default scope without write your own search box control? Cheers Ken --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
[OzMOSS] [listserver] List Posting Error Notification
- MailEnable: You are not permitted to post to the list (listserver@ozMOSS.com). This list may be password protected, or you may need to have previously subscribed to the list in order to post to it. - --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box
Yep. check this sample http://blogs.officezealot.com/mauro/archive/2008/11/24/21250.aspx Michael Nemtsev | WSS MCTS, MS MVP Readify B: http://msmvps.com/blogs/laflour/ T: +61 424 184 978 E: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ken zheng Sent: Tuesday, November 25, 2008 3:38 PM To: listserver@ozmoss.com Subject: RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Hi Michael: I don't want to change the global search box, only one search box web part added in the site. So I want to hide the dropdown list and set the default scope to my custom search scope instead of All Site Thanks Ken From: [EMAIL PROTECTED] To: listserver@ozMOSS.com Date: Tue, 25 Nov 2008 15:29:47 +1100 Subject: RE: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Did you try to change the Scope in Central Admin -Search Scope?! Alternative solution is to change the scope in search webpart. See instruction there http://social.technet.microsoft.com/Forums/en-US/sharepointsearch/thread/4e87c21a-46af-41fa-a2d3-df4048aa9794/ Michael Nemtsev | WSS MCTS, MS MVP Readify B: http://msmvps.com/blogs/laflour/ T: +61 424 184 978 E: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ken zheng Sent: Tuesday, November 25, 2008 3:05 PM To: listserver@ozmoss.com Subject: [OzMOSS] Set defualt scope when scope dropdown list is hidden in Search box Hi All: I think someone may ask the same question, if I hide the scope dropdown list, the search box will search All Site. Is there easy way to change the default scope without write your own search box control? Cheers Ken --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] [listserver] List Posting Error Notification
Yep. It happens time to time today Just repost again and it works :) Michael Nemtsev | WSS MCTS, MS MVP Readify B: http://msmvps.com/blogs/laflour/ T: +61 424 184 978 E: [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Brown Sent: Tuesday, November 25, 2008 4:37 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] [listserver] List Posting Error Notification Is anyone else getting these? Appear to be coming though on OzMOSS and OzTFS -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 25 November 2008 3:57 PM To: listserver@ozmoss.com Subject: [OzMOSS] [listserver] List Posting Error Notification - MailEnable: You are not permitted to post to the list (listserver@ozMOSS.com). This list may be password protected, or you may need to have previously subscribed to the list in order to post to it. - --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
RE: [OzMOSS] [listserver] List Posting Error Notification
Has anyone logged a call with the Help Desk yet.??? :-)) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Trevor Andrew Sent: Tuesday, 25 November 2008 4:45 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] [listserver] List Posting Error Notification Yep, 2 so far -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Brown Sent: Tuesday, 25 November 2008 4:37 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] [listserver] List Posting Error Notification Is anyone else getting these? Appear to be coming though on OzMOSS and OzTFS -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 25 November 2008 3:57 PM To: listserver@ozmoss.com Subject: [OzMOSS] [listserver] List Posting Error Notification - MailEnable: You are not permitted to post to the list (listserver@ozMOSS.com). This list may be password protected, or you may need to have previously subscribed to the list in order to post to it. - --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com IMPORTANT NOTICE TO RECIPIENT Computer viruses - It is your responsibility to scan this email and any attachments for viruses and defects and rely on those scans as Communications Design Management Pty Limited (CDM) does not accept any liability for loss or damage arising from receipt or use of this email or any attachments. Confidentiality - This email and any attachments are intended for the named recipient only and may contain personal information, be it confidential or subject to privilege, none of which are lost or waived because this email may have been sent to you in error. If you are not the named addressee please let CDM know by return email, permanently delete it from your system and destroy all copies and do not use or disclose the contents. Copyright - This email is subject to copyright and no part of it maybe reproduced in any manner without the written permission of the copyright owner. Privacy - Within the jurisdiction of Australian law, personal information in this email must be dealt with in compliance with the Australian Federal Privacy Act 1988. --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com