Versions History in TestStand3​.0

Hi,
Ist es möglich in TestStand 3.0 nach jeder Speicherung eine Versions History zu erzwingen, sprich das Eingeben der vollzogenen Änderungen, und das die Versionsnummer anschließend in der Titelleiste angezeigt wird.
In LabView7.0 ist die möglich, kann ich dies in TestStand auch realisieren, wenn ja wie geht man dann vor ?
mfG.Andy

In the "Configure" Men u go to "Station options" and select the "Preferences"-Tab. Check the "Auto Increment Sequence File Version". Everytime a Sequence file is saved, it will automatically get a new Version Number. Unfortunately the user does not see a window where he can/must enter a description of the changes he made, as in labView. You would have to use a Source-Code Control Tool like VSS, Perforce to get a similar behaviour.

Similar Messages

  • SharePoint 2010 : How to display ALL Version History of a list item's multiline text box in a same list as a list view column?

    In SharePoint 2010 , I have version history enabled multiple text box 'issue details'.  Users mainly uses Data Sheet view and it does not show all version history of that multiple line text box, is there anyway we can display list view column in
    data sheet view to display all version history?
    2) If we can not display in datasheet view, in standard view, it should display all version history instead of just a link  to -view all entries'
    I have found one article here and it posts to use below line of code in sharepoint desinger
    <SharePoint:AppendOnlyHistory runat="server" ItemId="{$thisNode/@ID}" FieldName="Issue_x0020_Details" ControlMode="Display"></SharePoint:AppendOnlyHistory>
    WHen I use this line of code , it displays multiple line of same version history instead of each, please help.

    Hi
    Greetings. Hope it helps 
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/d1be5434-7dc9-4941-bf1d-8c12d7e6a155/display-version-history-in-list-view-column?forum=sharepointcustomizationlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to get the Version History of a stored document?

    Hi,
    I am trying to store and retrieve the content using Content Services features of ADEP 10.0.
    I am able to store and retrieve content where as I am not able to get the version of the document. I am trying to store same or different document, but I donot get the version history or version label. Please guide me how I can get  the version of a stored document.
    Also, please advise me if there are simple alternative to do the same in ADEP10.
    Please see below my sample code below:
    package test.sample;
    import java.io.File;
    import java.util.*;
    import com.adobe.idp.Document;
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactoryProperties;
    import com.adobe.livecycle.contentservices.client.CRCResult;
    import com.adobe.livecycle.contentservices.client.impl.DocumentManagementServiceClientImpl;
    import com.adobe.livecycle.contentservices.client.impl.UpdateVersionType;
    public class AddContent {
        public static void main(String[] args) {
            try{
                //Set connection properties required to invoke Document Services in EJB mode                                
                Properties connectionProps = new Properties();
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://localhost:1099");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,Service ClientFactoryProperties.DSC_EJB_PROTOCOL);          
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
                //Create a ServiceClientFactory object
                ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                //Create a DocumentManagementServiceClientImpl object
                DocumentManagementServiceClientImpl    docManager = new DocumentManagementServiceClientImpl(myFactory);
                //Specify the store and node name
                String storeName ="SpacesStore"; 
                String nodeName = "/Company Home/Test Directory";
                //Retrieve the document to store in /Company Home/Test Directory
                Document contentA =  new Document(new File("C://Adobe/New files/Data-A.pdf"), false);
                Document contentB =  new Document(new File("C://Adobe/New files/Data-B.txt"), false);
                Document contentC =  new Document(new File("C://Adobe/New files/Data-C.xlsx"), false);
                //Create a MAP instance to store attributes
                Map<String,Object> inputs = new HashMap<String,Object>();
                //Specify attributes that belong to the new content
                String creator = "{http://www.alfresco.org/model/content/1.0}creator";
                String description = "{http://www.alfresco.org/model/content/1.0}description"; 
                inputs.put(creator,"Veeraganteppa Sajjan");
                inputs.put(description,"A sample application form");
                //Store MortgageForm.pdf in /Company Home/Test Directory
                CRCResult resultA = docManager.storeContent(storeName, 
                         nodeName,
                        "dataA.pdf",
                        "{http://www.alfresco.org/model/content/1.0}content", 
                        contentA,
                        "UTF-8",
                        UpdateVersionType.INCREMENT_MAJOR_VERSION,
                        null,
                        inputs); 
                CRCResult resultB = docManager.storeContent(storeName, 
                        nodeName,
                       "dataB.pdf",
                       "{http://www.alfresco.org/model/content/1.0}content", 
                       contentB,
                       "UTF-8",
                       UpdateVersionType.INCREMENT_MAJOR_VERSION,
                       null,
                       inputs);
                CRCResult resultC = docManager.storeContent(storeName, 
                        nodeName,
                       "dataC",
                       "{http://www.alfresco.org/model/content/1.0}content", 
                       contentC,
                       "UTF-8",
                       UpdateVersionType.INCREMENT_MAJOR_VERSION,
                       null,
                       inputs);
                //Get the identifier value of the new resource
                String idA = resultA.getNodeUuid();
                String idB = resultB.getNodeUuid();
                String idC = resultC.getNodeUuid();
                System.out.println("A -The identifier value of the new content is "+idA);
                System.out.println("B - The identifier value of the new content is "+idB);
                System.out.println("C - The identifier value of the new content is "+idC);
               System.out.println("A - The Browse Link is "+resultA.getBrowseLink());
                System.out.println("B - The Browse Link is "+resultB.getBrowseLink());
                System.out.println("C - The Browse Link is "+resultC.getBrowseLink());
              System.out.println("A-The Version Label is "+resultA.getVersionLabel());
              System.out.println("B-The Version Label is "+resultB.getVersionLabel());
              System.out.println("C-The Version Label is "+resultC.getVersionLabel());
              System.out.println("The Version History is "+docManager.getVersionHistory(storeName,nodeName, true));
        }catch(Exception e)
            e.printStackTrace();
    Message was edited by: V B Sajjan

    Sorry I did not attach the output and errors. Please find the same below.
    A -The identifier value of the new content is f5427f5b-c7c1-4c3c-b959-cb84e4e49a13
    B - The identifier value of the new content is b237d22c-5ff5-4628-a83a-23f5e49ae48e
    C - The identifier value of the new content is 34a9992c-3705-4488-bb55-6dd7ddfa0517
    A - The Browse Link is http://localhost:8080/contentspace/wcs/api/node/content/workspace/SpacesStore/f5427f5b-c7c 1-4c3c-b959-cb84e4e49a13/dataA.pdf
    B - The Browse Link is http://localhost:8080/contentspace/wcs/api/node/content/workspace/SpacesStore/b237d22c-5ff 5-4628-a83a-23f5e49ae48e/dataB.pdf
    C - The Browse Link is http://localhost:8080/contentspace/wcs/api/node/content/workspace/SpacesStore/34a9992c-370 5-4488-bb55-6dd7ddfa0517/dataC
    A-The Version Label is null
    B-The Version Label is null
    C-The Version Label is null
    ALC-CSV-30015-000: com.adobe.livecycle.contentservices.client.exceptions.CSInvocationException: ALC-CSV-030-015-The node [/Company Home/Test Directory] is not versioned.
    at com.adobe.contentservices.webscripts.impl.AbstractContentManager.doGetVersionHistory(Abst ractContentManager.java:1362)
    at com.adobe.contentservices.webscripts.impl.ContentManagerImpl.executeParams(ContentManager Impl.java:198)
    at com.adobe.contentservices.webscripts.impl.CSRetryingTransactionCallback.execute(CSRetryin gTransactionCallback.java:45)
    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransacti onHelper.java:326)
    at com.adobe.contentservices.webscripts.impl.ContentManagerImpl.execute(ContentManagerImpl.j ava:114)
    at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:333)
    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransacti onHelper.java:326)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContaine r.java:386)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContai ner.java:404)
    at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java: 246)
    at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:294)
    at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:172)
    at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:86)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:183)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEs tablishmentValve.java:126)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEst ablishmentValve.java:70)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 158)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:598)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
    at java.lang.Thread.run(Thread.java:662)

  • How to design SSRS report using SharePoint 2010 List Version History

    Hello,
    I am using  Sharepoint 2010 list, i need to design SSRS report using Sharepoint List Version History. Could please let me know how to design.
    Thank you.
    Kind Regards

    You could do that with SQL Server Reporting Services, Please follow the instructions from the link below:
    http://www.mssqltips.com/sqlservertip/2068/using-a-sharepoint-list-as-a-data-source-in-sql-server-reporting-services-2008-r2/
    Hope that would work fro you.
    Please Mark as Answer, if the post works for you.
    Cheers,
    Amar Deep Singh

  • How to know whether file is modified or metadata from SharePoint Document Library version history

    I have uploaded a document in document library. I am writing code to retrieve the items from the library only if document is modified, not the metadata.
    So if for an item only metadata is modified then it should not come, if document is modified then it should come. I tried from version history but it doesnt work. Any idea?
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

    Each file has an associated SPListItem which contains the metadata. See if the SPFile.TimeLastModified reflects the file and not the metadata.
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.timelastmodified.aspx
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Get the Version history of a sharepoint 2013 Custom List item

    Hi All,
    I am having doubt to retrieve the field version information with the comments.
    For this field i am done like this
    1.Creating a custom list
    2.And enable versioning for the list
    3.And add a field with field type 'Multiple Lines of Text' and in the Addition Column Settings section 'select yes radio button option in 'Append changes to the Existing text'.
    4.If we done like this the changes to the list item are available outside of field control.
    Can any one help me regarding this field to get the all the versions of list item along with modified data.

    hi Asatish,
    Thanks for posting your issue, Kindly browse the below mentioned URLs to know about the fixes of this issue
    http://berg-henry.blogspot.in/2010/11/custom-list-form-with-version-history.html
    http://somnathmatere.blogspot.in/2013/10/sharepoint-2010-custom-display-form.html
    http://blog.qumsieh.ca/2009/01/29/understanding-the-append-changes-to-existing-text-option/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Sharepoint 2013 Document library view show version history

    Hello everyone,
    I have a document library view with many folders. Each folder is a procedure and have document attached to it.
    When I add a new version, I would like to show version history for each document contained in the folder. For example:
    There is a folder Procedure 123 which has three files ( File1, File2, and File3). After a week the user the user created new revisions for each document.
    I would like to have a document view with the following information
    File Name   version
    ======  ======
    File 01         0
    File 02         0
    File 03         0
    File 01         1
    File 02         1
    File 03         1
    File 01         2
    File 02         2
    File 03         2
    Thanks for your help.
    Jhonny Marcelo

    This is quite simple, you have to modify the current view (Modify this view) of document library and then you can select version column from available column list (make sure version is enabled). please check below picture for detail.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • SharePoint 2013 - Document Set Capture Version History. Does each version captured for each document set keep a copy of all the document stored in the document set?

    Hi All,
    We have currently encountered an issue where even though version control is turned on in a document library, changes made to the metadata of a document set is not tracked in a version history. 
    We have found that in order to this a user will need to manually click on the capture version history button. 
    With this in mind, we are concerned about the impact of this on our storage. The question we have been trying to answer is whether each document set version:
    stores the change in metadata of the document set and a copy of all the documents stored in the document set
    stores the change in metadata of the document set and a reference to the documents stored in the document set (making use of SharePoint 2013's shredded storage)
    The reason we ask this is that if a document set version stores a copy of all the document stored in a document set, a change in one of the fields in the document set could result in the storage used to grow exponentially. e.g. if the document set contains
    documents totaling 30MB, and if we have 10 versions of the document set, we could take up 300 MB in the content database for just one document set.
    We have tried to some searching around Google but wasn't able to find any answers around this question. Would appreciate some assistance from anyone who has knowledge around how document set version history works. 
    Thanks in advance.
    John

    i had a long thing written out, but submit failed.  suffice to say it does "2".  it only stores the changes with pointers to the documents. 
    Christopher Webb | Microsoft Certified Master: SharePoint 2010 | Microsoft Certified Solutions Master: SharePoint Charter | Microsoft Certified Trainer| http://tealsk12.org Volunteer Teacher | http://christophermichaelwebb.com

  • Document version history does not open

    Hello:
    In an on-premises SharePoint 2013 SP1 installation, a site using HTTPS has a particular document library with versioning turned on.  If a user views the version history for a particular file, each version is listed with a hyperlink to view.  However,
    on this site the document (in this case, a PowerPoint presentation) refuses to open.  An error message from the client application states that the document cannot be open.
    What is causing this behavior?  Another farm in this environment using HTTP does not experience this behavior.

    Hi,
    I recommend to reset the settings in Internet Explorer(IE) and then close(IE). After that re-open the site in IE and then open the previous version of the documents in the site.
    To reset IE, please go to Internet options in IE> click Advanced tab and then click Reset to reset the Internet Explorer settings.
    Here is a similar thread for you to take a look:
    http://social.technet.microsoft.com/Forums/en-US/d094d1ec-ae7f-4cd9-9cfa-68d44efa95dd/cannot-open-previous-document-versions-sharepoint-2013
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Unable to view version history if document status is in progress

    Hi,
    I have a SharePoint integrated workflow for document approval. The k2 workflow is working properly except there is an error when opening version history or document property of
    an item in SharePoint library while it is in progress (waiting for approval). Actually the error is not happening immediately after the workflow is kicked off. It only starts to happen after a period of time. (Probably few hours after) This error will disappear
    once the document is approved or the workflow is cancelled. I got error exception below: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.GetCurrentUserApprovalTask(CachedListItem
    listItem) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.IsApprovalWorkflowTaskActiveForUser(CachedListItem listItem) at Microsoft.SharePoint.Publishing.WebControls.ConsoleNode.CurrentState(Page currentPage, Boolean cacheResult) at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.PopulateDataSource()
    at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.GetHierarchicalView(String viewPath) at Microsoft.SharePoint.Publishing.WebControls.PublishingSiteActionsMenuCustomizer.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal()
    at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal()
    at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Does anyone know why this happens? Would you suggest any solution to fix this issue please? Thank in advance.
    Wandath

    Hi,
    How things are going? If you have any questions or concerns, please feel free to let me know.
    Paul Shui
    Microsoft Online Community Support
    Please remember to click “Mark as Answer?on the post that helps you, and to click “Unmark as Answer?if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread<o:p></o:p>

  • How to move offline files to sharepoint with same version history

    Hi,
    We have downloaded some of the file from sharepoint in our computer, now we have migrated the site to 2013 from 2010.
    Can we upload the offline files to new site with version history maintained.
    tks,
    vidhu

    I am not sure you can do this OOTB, either you need custom development or 3rd party tools.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Designer 6i + 9i: Java tools (Version History etc) do not work in 9i

    1.
    I have installed both Designer 6i (4.2) and 9i in different homes.
    6i works fine, but in the 9i installation the java tools, such as Version History Viewer etc. do not work. The java classes cannot be found.
    Any suggestions?
    2.
    6i R4.2 and 9i seem to work against the same repository version, so I can use 6i for the missing parts. Will this be working still after future patches of 9i?
    I need the combined 6i/9i installation because my laptop is used both for (6i) training and 9i development.

    Hi Peter,
    1) This is most probably caused by your java class path being longer than
    999 characters. We are aware of this problem and it is recorded as a bug.
    Simply reduce the length of your class path to less than 999 characters
    and the Java tools should start OK. The offending Registry variable you
    are looking for is:
    HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0\REPADM61\DEFAULT_JVM_PARAMS_THIN_JDBC
    JVM_CLASSPATH_DEFAULT_THIN_JDBC
    There is an also one or two issues with the JDBC thin drivers used and
    the 'increased sensitivity' of the 9i database tnsnames.ora file content
    and structure. The Release Notes for Designer 6i Release 4.3/9i Designer
    9.0.2.1.0 should more details on this and available workarounds.
    I suggest you look at these and implement the tnsnames.ora workaround at
    least, in order to protect against future connection problems. By the way
    - 8.1.7 works fine with respect to these connection issues.
    2) Please see this post from this forum for more details =>
    Re: Oracle 9i database problem
    Hope this helps.
    Regards,
    Dominic
    Designer Product Management
    Oracle Corp

  • Permission level version history

    In what permission level does one can see the version history for a list record where versioning is enabled.

    HI,Apart from the restricted permissions and Limited access set to users.All other permission levels of users can able to view  the version history.
    Anil Avula[MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • Issue related to "Document Set Version History" option for Video uploaded in Asset library

    Hi,
    When user clicks on ‘Document Set Version History’ option from context menu (ellipsis) of a particular video, ‘Sorry, something went wrong’ message is shown. The error message also says,
    versions are currently disabled for this document library.
    When we enabled version history for the video library, the functionality started working as expected.
    Ideally the context menu of video should not show ‘Document Set Version History’ option. But we are not sure why it is showing that option.
    Can anybody please explain, is it bug in sharepoint ? or any other approach we have to use.

    Hi Sanket,
    We need to configure the send to connections for the corresponding web application in Central Administration and then the locations will be available when clicking the Send To Other Location.
    Please go to Central Administration > General Application Settings > Configure send to connections.
    After configuring the send to connections for the web application where you need to use the Send To Other Location, the location will be available.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Document set items Version history

    Hi,
    I'm trying to to retrieve document set version history. here i need to retrieve all modified versions of a document in document set ? Can any body help?
    I have tried but didnt find anyway .. how to get version history of a document in document set.
    Thanks in advance.
    SPSite site = SPContext.Current.Site;
    SPWeb web = site.OpenWeb();
    string ver = web.Url + "/" + sharedDocs;
    //Get the selected document
    SPListItem listItem = SPContext.Current.Web.Lists["Contract Documents"].GetItemById(99);
    if (listItem.FileSystemObjectType == SPFileSystemObjectType.Folder)
    //Get the folder
    SPFolder myFolder = listItem.Folder;
    //Make sure the folder has items
    if (myFolder.ItemCount > 0)
    //For each item get the document name
    foreach (SPFile item in myFolder.Files)
    string name = item.Name;
    foreach (SPListItem vh in myFolder.Files)
    SPListItemVersionCollection coll = vh.Versions;
    foreach (SPListItemVersion version in coll)
    var VersionLabel =version.VersionLabel;

    No Jenkis,, No thats my fault.. I forgot to add code below.
    And I have tried the below code which is fine getting versions but it is not retrieving current version.
    My case, i have a document with versions 1.0, 1.1 but here 
    filecollection.Count is showing 1. that is 1.0 version. Is any other way to get current version?
    SPSite site = SPContext.Current.Site;
    SPWeb web = site.OpenWeb();
    //Get the selected document
    SPListItem listItem = SPContext.Current.Web.Lists["Contract Documents"].GetItemById(99);
    if (listItem.FileSystemObjectType == SPFileSystemObjectType.Folder)
    //Get the folder
    SPFolder myFolder = listItem.Folder;
    //Make sure the folder has items
    if (myFolder.ItemCount > 0)
    //For each item get the document name
    foreach (SPFile item in myFolder.Files)
    string name = item.Name;
    SPFileVersionCollection filecollection = item.Versions;
    if (filecollection.Count > 0)
    foreach (SPFileVersion v in filecollection)
    var VersionLabel =v.VersionLabel;
    Thanks in advance.

Maybe you are looking for

  • Error while strarting up DB

    We planned to upgrade DB to 11.2.0.4 In test DB, we took back up and deleted few old datas which was not used. At the time of restore we created some directories manually and moved the files like datafiles etc. Initially i changed the paths  directly

  • Photoshop CS6 (Mac) crashes when opening files with type or using the type tool

    Hi, Photoshop CS6 keeps crashing when using the type tool or when opening files with type on it. I've quit suitcase, disabled the suitcase plug-in, reset the preferences in Photoshop there's no crash report coming up either the application just dies!

  • Cancel PGI for outbound delivery

    Hi experts, Any indicator or something else can be found in the document against PGI when cancelling PGI? E.g. Document named A is generated once PGI. Document named B is generated when cancelling PGI. How can I know Document A has been cancelled whe

  • Promise to pay v/s Installment plan

    Dear Experts, Can you tell me whats the main difference between a Promise to pay and an Installment plan. Specifically I am working with FI-CA (contract accounts). Enh.pac.II. Rgs,

  • 16GB-what does that mean?

    Okay, so I am about to purchase an iPad, but I want to know if I get the 16GB will I just not be able to store as much information on it such as watching movies, taking photos, etc?