Sharepoint portal 2007 view modified date - sharepoint-2007

I am using MS Sharepoint portal 2007. I have created views from the data already existed. I need the users to update everyday the status. Any way I know if they have updated like can I get a date modified column or row?

If I have understand your question right, then you want to get the ROw modified date in your view? Correct me if i am wrong?
If that is your requirement then you have to modify that view and select the column named as "Modified" and If you want to have the user name then also select "Modified By" column.
let me know the result.
Thanks

Related

Sort by publish date, even if publish date is tomorrow or 2 years ago

I'm trying to make this as intuitive for my customer as possible. They already have many news articles they need moved to this new Umbraco 7 site. I want the following to happen:
If they make a news article and set the "Publish At" date to tomorrow, it will not show on the page until tomorrow.
If they do not set a "Publish At" date, it should look at the published date (you would not fill out the "Publish At" date if you want it published now)
If they edit an old article, it should not affect the sorting at all (meaning UpdateDate shouldn't work)
If there are n articles all released today, and someone publishes a news article with "Publish At" set to yesterday, it will put the news article before the 3 new ones
Is something like this possible, without creating an additional property? That's, in my opinion, just going to confuse the person.
So apparently the only way to do this, is by creating an additional field with type Date. I was hoping I could do this through the built in ones from Umbraco.
Turns out there are no "this is the exact date when this article was published" property I can access, while still getting this to work. It does give the creator a few options regarding the sorting, as it's very easy to sort them by date now.
As far as I understand your scenario, here are my replies to each of your questions
If they make a news article and set the "Publish At" date to tomorrow, it will not show on the page until tomorrow.
Ans - If they set the Publish At date to tomorrow and just save that article, then it would never be published until tomorrow. If the page is already published, then it needs to be unpublished first.
If they do not set a "Publish At" date, it should look at the published date (you would not fill out the "Publish At" date if you want it published now)
Ans - They just need to click save and publish to publish the article now.
If they edit an old article, it should not affect the sorting at all (meaning UpdateDate shouldn't work)
Ans - You can handle this in ContentService_Saving event. Refer - ContentService Events
If there are n articles all released today, and someone publishes a news article with "Publish At" set to yesterday, it will put the news article before the 3 new ones
Ans - Taken from This Umbraco forum . Adding this for everyone here as well.
I would create the property SortDate, and another true/false property PublishMode. While SortDate is self-explanatory, I would set PublishMode to true once you are done drafting and adding content to a page. So if I've written a page and only need to fix typos and reword after it has been published, this would be set to true.
I would then hook into a republish event and add some logic like so:
if (page's type alias is a post) && (PublishMode is false) {
if (DateCompare(page.CreateDate, page.UpdateDate) >= 0
{ page.SortDate = page.CreateDate }
else {page.SortDate = page.UpdateDate}
}
So then after you're done, you can have a date that will be sorted depending on the "mode" of the document while it is being republished.
As a side note, even if you don't have a date picked, the datepicker datatype automatically sets itself to something like "01/01/0011". So it would never return a null value.
Also, the datepicker datatype is not a DateTime object. So to use the DateCompare, you have to parse each date property into a DateTime object like:
DateCompare(DateTime.Parse(Page.CreateDate.ToString("r"), DateTime.Parse(Page.UpdateDate.ToString("r"))
Hope this helps!!
Thanks

Show last updated date in umbraco

I want to display last updated date in umbraco 4.7
Say if i even make a small change in content from the admin panel, it has to pull the updated date so that i can show that in footer of the website dynamically.
Thanks.
Every node has a property called updateDate which you can get in razor by using:
#Model.UpdateDate
If I understand this correctly, you want it so that any update to any content item updates the "last updated" information in your footer.
I'd hook into the publish event (this link should get you started),create a variable to store the date, and update it every time a node gets published, then read and output it in the code that generates your footer.

SharePoint 2007 getting modified fields

I would like to know how we know which fields were updated in a SharePoint List.
I have an eventreciever attached to a list, can i know what changes were made to the list using Eventreciever?
I think a list of changed properties are not directly available as a collection or array ?
Correct me if i am wrong? what are you trying to do ?

Access 2010 form not displaying query

I'm sure this is an easy fix but I can't seem to find it. I just have a form, that will be a subform of another, that needs to display the results of a query.
The query is simple enough, just displays all fields of records that fall between specified dates. The query works great, but when I attach it to the form as its record source it doesn't display the data. I can see the correct amount of record selectors so I know its understanding the query but its as if all fields are hidden!
I have also tried building a query to the forms record source that was simply Select query.* From query. Oddly I have had this working before but I had to specify every field. What I mean is:
Select title From query
Select type From query
Select date From query
...
And so on for all the fields but this seems foolish, can anyone think of what I may be doing wrong?
Thanks in advance!
Edit, forgot to mention I also tried the foolish solution that I mentioned above and it didn't work so its definitely some issue that I'm not seeing, some property that's probably not appropriately set
#sshekhar well its not really code at the moment I'm using Access 2010. I have a form that needs to display a subform that executes this query of displaying records that have a data field that fall between dates specified by the user. The query works and displays the correct records, but the form that it is attached to only shows the record selectors and all the fields appear to be "hidden." I thought it may be one of the form's properties set incorrectly but I checked on the test form from another database that I used and each have what appears to be identical settings. So I'm at a loss!
So it turns out even though I using a query that holds all the fields it will not display the content unless you go to the Add Existing Fields and add all the the fields you want to see. This seems really silly especially when the results in the query but at least its working now.
I had this problem and discovered that having the property DataEntry set to YES will only display new records. From Microsoft Help:
You can use the DataEntry property to specify whether a bound form
opens to allow data entry only. The Data Entry property doesn't
determine whether records can be added; it only determines whether
existing records are displayed. Read/write Boolean.

Sharepoint Make a custom list read only

I have created a custom list. I am using the same list in sharepoint designer through a page.
I a have a datetime field in the form. I want to make a default current date and time and let it make readonly.
How can I do the same.
thanks
As I understood you, you want to set custom permissions on a date field (column) in a custom list. Sharepoint 2007 does not allow column-level security via the UI as far as I know.
If you deployed the list definition via Feature you can set the site columns to be read-only by setting the field to read only via its column definitions like so:
Hidden="FALSE" ReadOnly="TRUE" Required="FALSE" PITarget="" PrimaryPITarget="" PIAttribute="" PrimaryPIAttribute="" Node=""
An easier solution is to use third party tools such as the Sharepoint Tool Basket. It has a feature called "List Manager" which allows you to set columns to read-only if it's not a system column - see the codeplex site for screenshots.
As for your datetime field having the date of Today, you can just create a new Site Column of type Date/Time and set its default value to be "Today".
So the easiest solution would be: Install the List Manager and activate the feature for your site. Create a new site column "Today" of type Date/Time with default value set to Today. Afterwards set the site column to read-only via the List Manager.

Resources