How to use SPMetal to get the item's original field which named 'Created'

I want to read the field which named 'Created' by using SPMetal,I found the 'Item' class has the property named '_originalValues', it seems to get the infomation about the original values.
Is there anyone who has solved this kind of problems?

Hi,
By default, the Created, CreatedBy, Modified and ModifiedBy fields are not created by SPMetal, so we will need to extend our base entity class for accessing these fields in our
code.
Here is a link will show how to achieve this with steps in detail:
http://weblogs.asp.net/uruit/archive/2011/05/05/linq-to-sharepoint-working-with-created-createdby-modified-and-modifiedby.aspx
Best regards
Patrick Liang
TechNet Community Support

Similar Messages

  • How to use sdk to get the image in the pdf file created by illustrator?

    I have some pdf files create by illustrator and saved as pdf documents,
    now I want to use the sdk to get the image in pdf files.
    how to?
    Thanks.

    Thank you first!
    Yes,you are right,since I am new to illustrator,and I want to try to write a plugin,
    I have read the sdk doc and API and opened the sample in vs2010,but no idea about how to operate the pdf doc in illustrator with api.
    Hope more advise or any examples,thank a lot.

  • How to use apdu to get the certificate in smartcard?

    hi,guys
    how could i use the apdu command to get the certificate in smart card.
    now i sent following commands in JCOP shell
    /send 00a404000cA000000063504B43532D3135
    /send 00a4000c023f00
    /send 00a4000c025031
    /send 00a40200024404
    /send 00b0000080
    /send 00b0008080
    what's the next step?

    i'm using the A.E.T's safesign card,i just only use the apdu to load from card.
    but it's seems like it's can't load whole certificate.

  • Forms: how to use COUNT_RECORD to get the number of record retrieved?

    After GO_BLOCK(BlockName)EXECUTE_QUERY, there must a way to obtain the number of records retrieved.
    I like to use this number to display to number of records on the form.
    Clearly, a not so good way is:
    SELECT COUNT(*) INTO :NUM_RECORD FROM Table_Name;
    It queries table one more time.
    Could any one give a clue?
    Thank you.

    Dear Kiran,
    Fom tables EINE (inforec no, plant) and EINA (inforec no, material, vendor), you can get the desired information.
    Regards,
    Prasanth

  • How to use script to get the first table row on each page?

    I create a print form to display a table. I set a conditional page break on this table, so the table rows on each page could be different.
    For example, there're total 50 rows in this table. On the 1st page, there're 5 rows, but on the 2nd page, there're only 2 rows, and so on...
    Now I want to get some value from the 1st table row on each page. How can do that? I can refer to a table row using TableRow[n], but I don't know how to calculate 'n' in script (either FormCalc or JavaScript) for the 1st row on each page.
    Any ideas?

    Hi Wei,
    There is an option of setting the overflow header in the pallette. You may check that out. It is basically used to have the table header to be seen in all pages, if the table is overflowing to multiple pages. You may put your first row as the overflow header.
    - hope this helps, Kindly update,
    thanks and regards,
    - anto.

  • How to use offset in getting the last 7 digit of a sting

    Hi,
    Will you please tell me, how I can use Offset like command for the following code :-
    Data :- v_file type string .
    Let v_file = xyz/abc/ABCD/pq.rs.tuv1234
    I want to take last 7 digit i.e. "tuv1234"
    Please tell me..
    Saurabh

    data : text(40) type c value 'gashscj/kdkkl223',
             length type i,
             value(7).
    length = strlen( text ).
    length = length - 7.
    value = text+length(7).
    regards
    shiba dutta
    Message was edited by:
            SHIBA DUTTA

  • How to use alias to get the columns list?!?

    Is there a way to make raptor show the columns list of a table when typing like
    "select * from table a where a....(waiting for columns list)" ?
    Tks,
    Claudio.

    you cant do it with aliases and we have a bug logged on that. however, you can use the full tablename followed by a . and then the insight list will be populated. ctrl-Space will do completion too

  • How to use dates/times in the definition of local fields?

    Hello!
    I have few tough questions for which I haven't found an answer. I hope someone is capable to help me.
    1. Is there a transaction to search tables if we know the field?
    2. I'd like to define a local field and need to use dates in the calculation function. So basically I need to calculate the lean-time from the date of the purchase order (field BSTDK) to the date of the final delivery (field PLIFTS) and the result should be displayed in weeks. How can I do this? Or can I?
    3. Can I use the local fields further in my calculations?
    Thank you in advance!
    Maria Kangasniemi

    Hi,
    1. Is there a transaction to search tables if we know the field?
    Tcode:    SE84
    2. I'd like to define a local field and need to use dates in the calculation function. So basically I need to calculate the lean-time from the date of the purchase order (field BSTDK) to the date of the final delivery (field PLIFTS) and the result should be displayed in weeks. How can I do this? Or can I?
    Doing some calculation you can define it.
    3. Can I use the local fields further in my calculations?
    What is local Fields?

  • SharePoint 2013 Rest API - How to get the item count with startsWith

    Hi All,
    I am using the below url to get the item count for specfied startsWith. For example I want to know how many items are there in the list which starts with "A". When i hit the below url in the address bar i am getting HTTP not found.
    siteURL/sites/Apps/SharePointApp3/_vti_bin/listdata.svc/SampleList/items?$filter=startsWith(Title,’A’)
    Navaneeth

    what
    is SharePointApp3.
    here. 
    it is a webpart.
    this will not work on webpart\apps
    Also I am not sure if it will work with specific SampleList 
    Try 
    siteURL/sites/Apps/SharePointApp3/SampleList/_vti_bin/listdata.svc/Keywords?$filter=substringof('r',Title)
    If this helped you resolve your issue, please mark it Answered

  • I just got iphone 5c and i am not happy with it. It uses to much data and i don't even know how. I can't get the ringtones i want for my contacts.I got it on my free upgrade but i want to take it back and get something else but where i got it they say i c

    I just got iphone 5c and i am not happy with it. It uses to much data and i don't even know how. I can't get the ringtones i want for my contacts.I got it on my free upgrade but i want to take it back and get something else but where i got it they say i can't because i don't have the earbuds and i have serches or them. now i am suck with a phone i don't like at all until my next upgrade. this is very dishearten

    1. If you are this unhappy with that phone, and the lost earbuds is the only thing stopping you from taking it back, why do not just buy some earbuds. That way you can get rid of that phone. It all depend upon how much you want to get rid of that phone.
    2. Yet if you are stuck with that iPhone, here is something might help you to control the data usage. By design, iPhones do turn off WiFi when they go dormant. So if a download is in progress and so forth when the phone goes dormant, it will switch to use cellular data, if this setting is left on. Therefore, from multi-sources I have learned that if you keep your iPhone connected to a power source, then it will stay connected to the available WiFi.

  • How can I use applet to get the desktop image of client

    hi,I have a question to ask u.
    How can I use applet to get the desktop image of client? Now I develop a web application and want user in the client to get his current image of the screen.And then save as a picture of jpeg format ,then upload it to the server?
    I have done an application to get the screen image and do upload file to server in a servlet with the http protocal.

    Since the desktop image is on the client's local hard drive, you'll need to look at trusted applets first.

  • The bookmarks toolbar is there but has no item buttons on it. How do I get the items back for this toolbar? Also would like to know if the toolbars can be put on the same line to make more room on the page (drag & drop) ??

    The bookmarks toolbar is there but has no item buttons on it. How do I get the items back for this toolbar?
    Also would like to know if the toolbar can be put on the same line to make more room on the page (drag & drop) ?? Like the menu & bookmarks toolbar could/should fit on same line. This would add more page view...
    Floyd Perry
    Thanks

    Check that you still have the "Bookmarks Toolbar items" placed on the Bookmarks Toolbar
    * Make sure that you have the "Bookmarks Toolbar" visible: "View > Toolbars"
    * Check in "View > Toolbars > Customize" that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    * If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize window onto the Bookmarks Toolbar
    * If you do not see the "Bookmarks Toolbar items" then click the "Restore Default Set" button
    You can only move the content from a toolbar onto other toolbars if all toolbars support that feature. You need to check that in the options of each toolbar.

  • When I try to sync my ipad using itunes I get the following message. This iPad cannot be synced. You do not have enough access privileges for this operation. Any ideas how this can be resolved?

    When I try to sync my ipad using itunes I get the following message. This iPad cannot be synced. You do not have enough access privileges for this operation. Any ideas how this can be resolved?

    See if the user tip helps: https://discussions.apple.com/docs/DOC-6562

  • How can I get the items gride of MIRO trx?

    Hi everyone,
    I have a requirement where I need to get the items grid of MIRO trx. Is there a function module to do this?
    Thanks in advance!
    Regards.
    Leo.

    Hi Leo,
    try to use the BadI MRM_HEADER_CHECK.
    The parameter TI_DRSEG contais the values of the grid.
    FC

  • In trying to sync my iPad w/my MPB using iTunes, I get the following error message:  "The iPad cannot be synced.  An unknown error occurred (1140).  Any hints/ideas on how to fix?

    In trying to sync my iPad (3d gen) w/my MPB using iTunes, I get the following error:   "the iPad cannot be suynced.  An unknown error occurred (1140).   Can anyone give me a suggested fix, please?

    ok---I stopped the sync process of photos and now everything else syncs but still cannot eject my ipod.  Will try other tips on this website.  Thank you

Maybe you are looking for