tag:blogger.com,1999:blog-6241523649263677429.post4315160059644021167..comments2023-04-09T04:51:01.351-04:00Comments on Disha Shah's Blog: How to use Sharepoint DateTime Functions in Annoucement ListsDisha shahhttp://www.blogger.com/profile/02518044206110358922noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-6241523649263677429.post-65136855689505903822011-12-12T14:58:36.607-05:002011-12-12T14:58:36.607-05:00Hi Anjani
Thanks for appreciation.
For your firs...Hi Anjani<br /><br />Thanks for appreciation.<br /><br />For your first question answer is this:<br /><br />Workflow Status is an application page. The link is http:///_layouts/wrkStat.aspx It is not recommended to modify the OOB(Out-Of-Box) page for SharePoint.<br /><br />Second, you can copy the page, and modify the new page. write the logic in the page. <br /><br />For second answer, please check the this msdn post,<br />http://social.technet.microsoft.com/Forums/en/sharepointgeneral/thread/5794d350-272f-47c8-9f89-359eb138c62a<br /><br />If you have any question please let me know :)Disha shahhttps://www.blogger.com/profile/02518044206110358922noreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-44755733247141609662011-12-10T09:47:56.325-05:002011-12-10T09:47:56.325-05:00Hi Disha,
I thank you for sharing your knowledge a...Hi Disha,<br />I thank you for sharing your knowledge and experience with others and I find it is really helpful. I have been working with SharePoint 2007 for 5 months in business environment and I am kind of new to SharePoint. <br /><br />I have two questions and I believe you will be able to help me to find out a solution.<br /><br />Question 1<br /><br />I am using SharePoint approval workflow named “Approve Documents” which has a task list named “Workflow Tasks” and a history list named “Workflow History” to get approval for business documents. All the documents are stored in a document library for example”Invoice Approvals”. This document library has a drop down column called “Company Name”.<br /><br />My requirement is to display Company Name on Workflow Status page under any section (Workflow Information, Tasks, Workflow History) or anywhere on workflow status page.<br /><br />I appreciate if you could provide me a solution if it is possible.<br /><br />Thank you <br /><br />Question 2<br /><br />I create SharePoint sub sites under the parent site named “Project” using a custom template which has unique list level permissions(Each document library and list has unique permissions). But when I create a new site using this template all the permission settings are gone and it inherits permission from Parent site (Project).<br /><br />Is it possible to create sites using a site template which has same list level permissions as the template?<br /><br />Thank you.Anjanihttps://www.blogger.com/profile/08384833884036899848noreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-21412722160412688682010-01-17T13:41:06.000-05:002010-01-17T13:41:06.000-05:00I've written a few articles giving tips on fil...I've written a few articles giving tips on filters in SharePoint such as showing Tasks due in this Calendar month :-<br><br>http://blog.pentalogic.net/category/sharepoint-ideas/Ryanhttp://www.pentalogic.netnoreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-70195440315073257422010-03-12T14:22:35.000-05:002010-03-12T14:22:35.000-05:00Hi Disha I have few questions about sharepoint wor...Hi Disha I have few questions about sharepoint workflow using VS2008 <br><br>I have a list " Company Expenses"<br>it has the following list items <br>Amount and Status <br>now i want to write a worflow to automatically update Status to Yes when the Amount is 1000 <br><br>I have gotten so far can you help me complete this <br><br><br> private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e)<br> { <br> String strAmount;<br> <br> strAmount = Convert.ToString(workflowProperties.Item["Amount"]);<br> if (strAmount == "1000")<br> {<br> how to change list item status to yes where the amount is 1000<br> <br> }<br><br>ThanksShashanknoreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-55669393361467866272010-03-13T15:14:57.000-05:002010-03-13T15:14:57.000-05:00ShashankIf your requirement is that you just want ...Shashank<br><br>If your requirement is that you just want to automatically update Status to "Yes" when the Amount is 1000 then you should go for "Event Handlers" not "Workflows".<br><br>Write down "ItemUpdated" eventhandler on that list.<br><br>If you want to know how to write eventhandlers please go through this block.<br>http://dishashah.wordpress.com/2009/06/10/sharepoint-list-event-handler-types-and-example/<br><br>If you have to use Workflow then you can do this<br>private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e)<br> { <br> int strAmount;<br> <br> strAmount = Convert.ToInt32(workflowProperties.Item["Amount"]);<br> if (strAmount == "1000")<br> {<br> how to change list item status to yes where the amount is 1000<br> workflowProperties.Item["Status"] = "Yes";<br> SPContext.Current.Web.AllowUnsafeUpdates = true;<br> workflowProperties.Item.Update();<br><br> OR<br><br> SPItem myItem = workflowProperties.Item;<br><br> myItem["Status"] = "Yes";<br><br><br> SPContext.Current.Web.AllowUnsafeUpdates = true;<br><br> myItem.Update();<br><br> <br> }<br><br><br><br><br>Thanks & Regards<br>Disha Shahdishashah08noreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-70487085069499977712010-03-16T15:44:46.000-04:002010-03-16T15:44:46.000-04:00Thanks Disha I am experimenting with work flows an...Thanks Disha <br><br>I am experimenting with work flows and wanted to have a bare bones work flow with your help i was able to get it working thanks a lotshashanknoreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-61544695964290200702010-03-17T08:45:22.000-04:002010-03-17T08:45:22.000-04:00ShashankIt is good to hear that you got success wi...Shashank<br><br>It is good to hear that you got success with your experiment. I am happy about this blogs helps you.<br><br>Good Luck with Sharepoint. <br><br>Thanks & Regards<br>Disha Shahdishashah08noreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-28461968477239759762010-03-17T16:20:42.000-04:002010-03-17T16:20:42.000-04:00Hi Disha Doubts about SPQuery . I searched a lot b...Hi Disha <br><br>Doubts about SPQuery . I searched a lot but could not find any article on SPQuery. <br>here is what i know <br>you can generate CAML using U2U editor or other editors but where do i put this caml query like eg<br><br>*****************************************<br><br>SPWeb web = SPControl.GetContextWeb(Context);<br>string fullName = web.CurrentUser.Name;<br>SPQuery oQuery = new SPQuery();<br>oQuery.Query = <br> "" + <br> "'" + fullName + "'" + <br> "" +<br> "";<br><br>so should code this in VS2008 or sharepoint .. that is what i do not understand about SPQuery <br>if you could just post links or briefly explain that would be very helpful <br><br>Thanksshashanknoreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-46243237247477436652010-03-18T09:17:03.000-04:002010-03-18T09:17:03.000-04:00Shashank Using Collaborative Application Markup La...Shashank <br><br>Using Collaborative Application Markup Language (CAML) queries with SPQuery and SPSiteDataQuery is a faster and more efficient way of retrieving items based on known criteria compare with for each on the SPListItemsCollection and checking for the criteria.<br><br>To answer your question, that SPQuery code should be inside Visual Studio. SPQuery is like filtering data from Lists. Please go through this msdn link. In that they also give example.So that you have clear picture of your SPQuery.<br><br>http://msdn.microsoft.com/en-us/library/bb687949.aspx<br>http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spquery.aspx<br>http://programmingsharepoint.blogspot.com/2008/03/searching-list-on-datetime-fieldspquery.html<br><br>Hope this helps<br><br>Thanks & Regards<br>Disha Shahdishashah08noreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-16325977081071885572010-03-24T09:01:58.000-04:002010-03-24T09:01:58.000-04:00HI DishaPreviously i got so many solution from you...HI Disha<br><br>Previously i got so many solution from you, all are helpful to me.<br><br>Thank you for all responces. I have one new problem<br><br>I have a sharepoint site. which contains one document library. In the same time i have one asp.net application. My requirement is that, i need to open sharepoint document libraray document in asp.net site.<br><br>But you shuold not copy that document in any asp.net server temprary location. I mean documetn should be open in live streaming.<br><br>I hope you understood my problem.<br><br>waiting for response<br><br>SaiSainoreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-47205118291129786312010-03-25T10:36:15.001-04:002010-03-25T10:36:15.001-04:00Hi SaiThanks for appreciation and I am always more...Hi Sai<br><br>Thanks for appreciation and I am always more than happy to assistant for the problems.<br><br>There's 3 ways you can have your standalone ASP.NET (standalone meaning not integrated into sharepoint) interact with sharepoint. <br><br>1>using the SharePoint object model (sharepoint APi dll's). This way allows you to control every part of how your ASP.NET site interacts with SharePoint (document security etc.) The major drawback is that you ASP.NET site needs to be running on the SAME SERVER as SharePoint (or if sharepoint is used in a farm any machine that is running sharepoint in that farm). Simply including the SharePoint DLL's will NOT work when run on any other machine (even when that machine also has sharepoint installed but is not part of the farm you want to communicate with!)<br><br>2> Web Services. These OOTB Web services can be used from anywhere but are not very extensive functionality wise. They allow you to perform a lot of actions and retrieve a lot of data, but when it comes to more finegrained control they just don't cut it. It might be enough for what you want to do though.<br><br>3> Use web services and create your own webservice that is deployed to sharepoint for any tasks not doable with the OOTB services. This requires access to the sharepoint machine in the form of deploying custom code / assemblies though.<br><br>Hope this helps!!!<br><br>Thanks & Regards<br>Disha Shahdishashah08noreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-35349431014863459082010-03-25T10:36:15.000-04:002010-03-25T10:36:15.000-04:00Hi SaiThanks for appreciation and I am always more...Hi Sai<br><br>Thanks for appreciation and I am always more than happy to assistant for the problems.<br>There's 3 ways you can have your standalone ASP.NET (standalone meaning not integrated into sharepoint) interact with sharepoint. <br>1>using the SharePoint object model (sharepoint APi dll's). This way allows you to control every part of how your ASP.NET site interacts with SharePoint (document security etc.) The major drawback is that you ASP.NET site needs to be running on the SAME SERVER as SharePoint (or if sharepoint is used in a farm any machine that is running sharepoint in that farm). Simply including the SharePoint DLL's will NOT work when run on any other machine (even when that machine also has sharepoint installed but is not part of the farm you want to communicate with!)<br><br>2>Web Services. These OOTB Web services can be used from anywhere but are not very extensive functionality wise. They allow you to perform a lot of actions and retrieve a lot of data, but when it comes to more finegrained control they just don't cut it. It might be enough for what you want to do though.<br><br>3>Use web services and create your own webservice that is deployed to sharepoint for any tasks not doable with the OOTB services. This requires access to the sharepoint machine in the form of deploying custom code / assemblies though.<br><br>Hope this helps!!!<br><br>Thanks & Regards<br>Disha Shahdishashah08noreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-47991933109536507852010-05-21T02:02:11.000-04:002010-05-21T02:02:11.000-04:00Where do u work?girdhari@gmail.comWhere do u work?<br><br>girdhari@gmail.comGirdhari Ganeriwalnoreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-58963952195362950792010-08-03T13:06:05.000-04:002010-08-03T13:06:05.000-04:00Hi, Pls help me out in is a member function in sha...Hi,<br> Pls help me out in is a member function in sharepoint 2007.<br>(As i need to chec wether the user is a member of a particular group.)Tony Thomasnoreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-67562290431694681752010-08-03T13:11:15.000-04:002010-08-03T13:11:15.000-04:00Hi TonyYou can write the following code to find ou...Hi Tony<br><br>You can write the following code to find out that user is related to which group.<br><br> foreach (SPGroup singleGroup in SPContext.Current.Web.SiteGroups)<br> {<br> groupName = singleGroup.Name;<br> inGroup = singleGroup.ContainsCurrentUser;<br> if (inGroup == true)<br> return groupName;<br> }<br><br>Hope This Helps!!!<br>Disha Shahdishashah08noreply@blogger.comtag:blogger.com,1999:blog-6241523649263677429.post-15135363189021879922010-08-03T13:13:25.000-04:002010-08-03T13:13:25.000-04:00TonyIf you need to check just for a particular gro...Tony<br>If you need to check just for a particular group, you can do this also<br><br> SPGroup group = SPContext.Current.Web.SiteGroups["groupName"];<br> inGroup = group .ContainsCurrentUser;<br> if (inGroup == true)<br> return groupName;<br><br>Hope this helps<br>Thanks & Reagrds<br>Disha Shahdishashah08noreply@blogger.com