How to display a short term lock in a view?

Hello,
I discovered recently the two checkin/checkout modes in sharepoint.
The long term ckeckout that the user choose explicitly to have and the short term check out when the user open an office document for modification.
This article describe the differences between the two modes: http://blogs.technet.com/harikumh/archive/2008/05/28/check-out-feature-of-sharepoint-2007.aspx
The short term checkout is perfect for my client needs. He doesn't want to checkout a document every time he opens it + a lot of user doesn't understand why to check-in a document when they have done their works.
Here is my problem: I would like to display the short term lock in my document library the same way the long term lock information is displayed.
By code I'm able to see who has acquired the lock and if it is a short term or long term lock:
SPFile.SPCheckOutStatus
The column "CheckedOutBy" in by document library does not display anything for the short term lock. The document icon is not change to display a lock on it.
So I'm searching for an idea, how to be able to display this information in my view?
Best Regards,
Py

Hi,
Theoretically you can do the following:
Create a custom web service based on the object model to get the value of vti_sourcecontrollockexpires metadata of a file remotely.
Create a custom field that display the information in edit and display view based on the of vti_sourcecontrollockexpires metadata using the object model in a label. Create a RenderPattern for the list view that contains a JavaScript block that calls your custom web service to display the short lock information.
I suggest you to read these basic articles that describe the process of custom field type creation:
Create custom field types for SharePoint
http://www.sharepointblogs.com/nicksevens/archive/2007/08/31/create-custom-field-types-for-sharepoint.aspx
Developing Custom Field Types for SharePoint 2007
http://msdn.microsoft.com/en-us/magazine/dd727508.aspx
Building Custom Field Types in Windows SharePoint Services 3.0
http://msdn.microsoft.com/en-us/library/bb684919.aspx
And an advanced one about Web Service - JavaScript - RenderPattern integration:
Using AJAX Jquery-like in the CAML of Custom Field Types
http://www.silver-it.com/node/34
And about custom web services:
Walkthrough: Creating a Custom Web Service
http://msdn.microsoft.com/en-us/library/ms464040.aspx
Creating a Custom Web Service for SharePoint
http://it.toolbox.com/blogs/sharepoint-blog/creating-a-custom-web-service-for-sharepoint-13553
SharePoint for Developers Part 6 – Custom web services
http://blogs.msdn.com/kaevans/archive/2009/04/30/sharepoint-for-developers-part-6-custom-web-services.aspx
Hope that helps. Sounds to be not easy, but technologically possible.
Peter

Similar Messages

  • Short term lock server issue

    Hi,
    I have installed MSA and the workbench (4.0 SP 12) locally on my laptop. When I try to start the Mobile Workbench I get the error "unable to initialize short term lock server". Does anybody have an idea why? I have ensured that the repository ID is in synch but I still get the issue.
    Whity

    Hi Wolfhard,
    Thanks for the hint. It is a bit strange. I found out that the SAP MAR service uses port 1002 in my case. If I put that in the ars_systable, I can't restart the service. It tells me the port is busy. If I update ars_systable after starting the service, it works.
    Whity

  • How to display message using default lock in ORACLE 9i?

    I am using ORACLE 9i I am inserting a same record in a same table (which is having primary key) of same user with different sql editor (or from different machines).
    with same time.
    One person is able to insert the record..
    But other one is in processing state, once the inserted person give commit,then only other person got the message "Primary key constraint voilated".
    This is bcoz of concurrency in oracle. For this purpose Oracle uses default lock.
    Is it possible to give message to other person like "One user is using this table..", after a record is inserted and before commit is get issued by the inserted user?
    how can i do this?
    Thanks a lot for your help

    [url http://forums.oracle.com/forums/thread.jspa?threadID=543335&tstart=0]duplicate thread

  • How to displaying "my favorite Links" as a tree view menu

    Gurus,
    I have a KM iView in portal home page, where users keep adding their favourite links from time to time.  Now I want to display all the links as in tree structure say -
    Content Admin
             |--> Page A
             |--> Page B
    System Admin
             | --> Page C
    Kindly help me out in finding a solution.
    regds,
    Sukanta Rudra

    Krishna,
    Thanks for the reply. I was able to create the tree view.  Now I have two requirements related to this.
    1. How to have them as collapsible menu structure, which gets expanded as and when user wants.
    2. Can we customize it as, Whenever a user add as page in favorites, it will ask for to to put in some folder that is there under my favorites links? I belive it requires some programming customization. Could you guide me, for some solution.
    regds,
    Sukanta Rudra

  • How to display long text of info in webdynpro view

    Hi all
      I want to retrive a text of 500 characters in TextEdit UI element from R3,but the attribute through which we have bind this UI element is mapped to model attribute which is coming in the form of table i.e. first row of that table contains first 132 characters and the second row contains next 132 characters. Now the problem is how to retrieve the whole text and display in that UI element.
    Same is the problem for submitting this 500 text.

    Hi,
       You can use String concatenation for this:
    String textToShow = <get first 132 characters from the model node>;
    textToShow += <get next 132 characters from the model node>
    //set textToShow to the context attribute bound to the TextEdit UI element.
    Regards,
    Satyajit.

  • How to display an ADOBE FORM in the same view

    Hi forum
      I am displaying an Adobe Form in a view of Web Dynpro for Java, but when this open, the adobe form open another windows with de pdf... how can i diplay this adobe form in the same view ?
    Thnks
    Josué Cruz

    Hi Josué Cruz,
    Insert the 'Interactive Form' UI element in the desired view.
    And bind its 'pdfSource' property to the context atribute pdf source. Optionally, you can set height and width of the form.
    -Aarthi

  • How to display the field name in the tabulated view for a content query web part

    I have added a content query web part changed the web part file to include custom columns imported and reffered itemstyle.xsl
    to include the tabulated view for the content query.
    However the way it is displayed is such that only the content is displayed.
    As i am using a tabular view wto display the data, i want to display their field names as well.

    Hi  ,
    According to your description, my understanding is that you need to display the field in the tabulated view for a content query web part.
    For your issue, please refer to the code as below:
    <xsl:template name="VendorCustomStyle" match="Row[@Style='VendorCustomStyle']" mode="itemstyle">
    <html>
    <table width="100%">
    <xsl:if test="count(preceding-sibling::*)=0">
    <tr>
    <td width="8%" valign="top"><div class="item"><b>Vendor ID</b></div></td>
    <td width="12%" valign="top"><div class="item"><b>Vendor Name</b></div></td>
    <td width="50%" valign="top"><div class="item"><b>Vendor Description</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Country</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Date</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Created By</b></div></td>
    </tr>
    </xsl:if>
    <tr>
    <td width="8%" valign="top"><div class="item"><xsl:value-of select="@VendorID" /></div></td>
    <td width="12%" valign="top"><div class="item"><xsl:value-of select="@Title" /></div></td>
    <td width="50%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Description" disable-output-escaping="yes" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Country" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Date" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Author" /></div></td>
    </tr>
    </table>
    </html>
    </xsl:template>
    For more information, please have a look at the blog:
    http://www.codeproject.com/Articles/756834/Customizing-the-Content-Query-Web-Part-and-Item-St
    http://msdn.microsoft.com/en-us/library/ms497457.aspx
    http://clarksteveb.hubpages.com/hub/Customized-Content-Query-Web-Part-CQWP-in-SharePoint-2007-with-results-Tabbed-Grouped-and-in-an-HTML-Table
    http://blog.sharepointexperience.com/customitemstyle/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to display the print dialogbox in crystal reports viewer for visualstudio 2013 in wpf?

    Hi,
    In my wpf application when i click on print button i want to display the print dialog box for current report.
    Here i have written like as follows.
    1.MyCrystalReportsViewer.ViewerCore.ReportSource = reportDocument;
    2. MyCrystalReportsViewer.ViewerCore.PrintReport();
    The above two statements  is executed and displayed the report in CrystalReportViewer, but it doesn't show any print dialogbox.
    MyCrystalReportsViewer is name of the CrystalReportsVIewer control.
    Can any one help me to solve this one using code.

    Hi Sandeep,
    Did you download CR for VS SP 13 from this link?
    http://scn.sap.com/docs/DOC-7824
    First link is to integrate CR into VS.
    If you did then I suggest you do a Repair on both VS and CR for VS.
    Also, VS must be Pro or higher, CR will not work in VS 2013 Express.
    Do you have printers installed? Do not use Windows XPS printer, it has problems.
    Don

  • How to display private calendar appointments in Sharepoint calendar view

    I found this post about how to setup a sharepoint calendar as a personal calendar within Sharepoint 2013. 
    http://sharepoint.stackexchange.com/questions/83366/view-outlook-calendar-in-sharepoint-2013
    It works great, but when the logged in person opens it the private calendar appointments only show as "busy" and don't show the details of the appointment. Since the person who's viewing it is the person logged in I would think it would allow the
    person to see their own calendar appointments.
    Is there a way to allow private appointments to show details in this view?

    Hi,
    As I understand you would like to show Exchange calendar contents on SharePoint calendar.
    I found a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2020d3a9-0efc-4c88-818e-87d11d5ad485/sharepoint-2013-calendar-integration-with-outlook-2010-calendar?forum=sharepointgeneral
    For more information:
    http://blogs.technet.com/b/ptsblog/archive/2011/05/31/sharepoint-and-exchange-calendar-together.aspx
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • How to display ETL run date in the title view of any report.

    Hello Expert,
    I have a requirment to show the ETL run date in the title of the report.
    Eg: " Sales Vs target Report : Data loaded as on date: <ETL run date>.
    The ETL run date is coming in the fact table.
    I am working on the OBIEE 11.1.1.5. So pla help if it is possibe.
    Thanks in Advance.
    Niraj

    Thanks for response.
    I tried to do the same. but unable to achieve. I did the following,
    1. Created a init block with SQL which extract the value of ETL rundate ans associate with a repository variable (ETL_RUN_DATE). This init block was retriving the data.
    I put the folowing in the Title as well as sub title view:
    Data loaded as on date: (@{biServer.variables[ETL_RUN_DATE]})
    I also tried to put Data loaded as on date: @{repository.ETL_RUN_DATE} this also didnot worked.
    So could you please provide me the steps with actual syntax, then it willbe very much helpful for me.
    Thanks
    Niraj

  • HT201304 how do i bypass my childs lock screen to view use and content

    My husband, my daughter, and myself have iphones all on the same account. i want to be able to view my daughters contacts, times of use, and even content of texts if I need to. 

    The only way to do it without restoring the iPhone is to have your daughter provide the passcode to you. There is no way to circumvent the passcode, that's the point of having one.
    The iPhone should have a passcode, to prevent its use in the event it is lost or stolen. If you want access to her data, she must share the passcode with you.

  • How to display your email and a message to finder on the lock screen of an iPhone?

    Hi,
    I loose things, including phones and keys...
    To prevent a worst case scenario: How to display your email and a message to finder on the lock screen of an iPhone? (6 plus, current iOS)
    That is, I assume most people finding an iPhone would want to try to contact me to give it back to me, if they know how: how can leave my contact information in the phone? This needs to be on the lock screen, naturally, as this is the only view the finder can see. It would be useful to be able to add a message of sorts a la "if found please call my wife ### or email me ###".
    How can this be done other than editing the JPG of the wallpaper, or sticking a business card to the back of the phone (these are the only solutions I came up with, there must be something better).
    Cheers!

    Greetings _daniel_, 
    Thank you for contributing to the Apple Support Communities. 
    It seems like you'd like to display a message on your iPhone 6 Plus in the event it is lost. Good news--you can do this with the Find my iPhone feature of iCloud.
    Check out these links for more information:
    iCloud: Set up iCloud
    iCloud: Use Lost Mode
    If you can’t find your device, use Lost Mode right away to lock it with a passcode, display a custom message on the screen, and keep track of its location.
    Cheers, 
    Jeremy

  • [ConfigFwk:390105]Unable to create WLS change list due to a short term automatic lock obtained by user null

    Hi,
    I am getting this error while trying to activate a session in OSB (clustered env with 3 nodes). I have a OSB project which listens to a JMS queue. I was able to create the project fine and was able to activate the session, no issues. But when I tried to update the queue name or delete the project itself, this error gets thrown:
    [ConfigFwk:390105]Unable to create WLS change list due to a short term automatic lock obtained by user null. The user has no pending changes and the lock will expire in 600 seconds. Please try again after the lock has expired.
    Retrying after those seconds takes me back to the same error but the time get's reset to 600 sec.
    I can change the code in that project and activate the session without any issues but if I change any configuration for proxy/business services or delete the project itself, i get this error. the only way to get around this issue is to clone the project and make changes to the cloned project. But, that is not the solution i am looking for as I don't want to keep a old version of the project and don't want to keep creating new queues everytime (since no two proxies can point to the same queue).
    Oh, and this happens only with the projects which deal with JMS queues.
    We are using OSB:
    Oracle Service Bus Version: [Oracle Service Bus 11.1 Sun Dec 18 03:49:34 PST 2011 1447174]
    Oracle Weblogic Server Version: [WebLogic Server 10.3.6.0.10 PSU Patch for BUG19637463 TUE NOV 04 15:54:42 IST 2014]
    Please help.
    Thanks,
    Mukund.

    Hi,
    I am getting this error while trying to activate a session in OSB (clustered env with 3 nodes). I have a OSB project which listens to a JMS queue. I was able to create the project fine and was able to activate the session, no issues. But when I tried to update the queue name or delete the project itself, this error gets thrown:
    [ConfigFwk:390105]Unable to create WLS change list due to a short term automatic lock obtained by user null. The user has no pending changes and the lock will expire in 600 seconds. Please try again after the lock has expired.
    Retrying after those seconds takes me back to the same error but the time get's reset to 600 sec.
    I can change the code in that project and activate the session without any issues but if I change any configuration for proxy/business services or delete the project itself, i get this error. the only way to get around this issue is to clone the project and make changes to the cloned project. But, that is not the solution i am looking for as I don't want to keep a old version of the project and don't want to keep creating new queues everytime (since no two proxies can point to the same queue).
    Oh, and this happens only with the projects which deal with JMS queues.
    We are using OSB:
    Oracle Service Bus Version: [Oracle Service Bus 11.1 Sun Dec 18 03:49:34 PST 2011 1447174]
    Oracle Weblogic Server Version: [WebLogic Server 10.3.6.0.10 PSU Patch for BUG19637463 TUE NOV 04 15:54:42 IST 2014]
    Please help.
    Thanks,
    Mukund.

  • How to bring camera short cut on locked screen

    My wife &amp; I have iPhone 4S, recently we both set passcode on our iPhones, my phone shows camera short cut on locked screen whereas my wife's does not has camera short cut. Does any one know how to bring camera short cut on locked screen,  thanks.

    Yes, hers is updated to iOS 5.1, she can now bring up the camera short cut by tapping Home button twice suggested by anilsudhakaran dated Oct 11 2011 in the support communities. Thanks razmee209 & anilsudhakaran.

  • How to automatic post the profit OR loss to short term Capital / long term

    Hi,
    How to automatic post the profit OR loss to Short term Capital gain / Long term capital gain on posting of Sales transaction ?
    Incase the inventory item is less than one year older then the difference should be posted to the G/L of Short term Capital gain, where as if the item is more than one year older then the difference should be posted to the G/L of Long term Capital gain
    Thanks in advance
    Samir Gandhi

    I don't think any logic can be used to reach your goal.  How B1 system should post in such a fussy conditions?
    In case the inventory item is less than one year older then the difference should be posted to the G/L of Short term Capital gain
    How can you identify these items?  An inventory is a moving concept like a river. It come and goes with all different ways even as to value and revalue them.
    Please follow the common sense to face reality.
    Thanks,
    Gordon

Maybe you are looking for