Tag Info

Hot answers tagged

3

You can parse the ID parameter from query string in Dispform.aspx, once you have the ID value you can update "Add new Item" link and pass ID from DispForm.aspx. Please refer to Parse Query String from Javascript to parse URL and get value from Query String.


3

Enabling document id on a hierarchy of sites is not as straight forward as one should think. I have digged pretty deep into this one more than one occasion (might collect it to a blog post later), and it all boils down to the SPWorkItems that the timer job uses to enable document id on the sites/subsites and the timer job that sets the document id on each ...


3

The only time I've seen this happen I've had duplicate documents (usually with duplicate Document IDs). This was either caused by Actually having duplicate document IDs, seemingly caused by some defect in SharePoint Search not crawling the documents properly This may not be the cause of your issue, especially if you only have a single result, but have a ...


2

Yes - you can use the file's GUID. Retrieve the GUID of an existing file using SPFile.UniqueId and open the file using SPSite.OpenFile(GUID).


2

Based on what you describe, it would make more sense to reformat the search results to include the link to the documents the way you describe. By adding a calculated column to every single Document Library, you're incurring unnecessary overhead. In SharePoint 2007 search (I just haven't looked at 2010, but I'm guessing it's the same), the search results are ...


2

Marco, this is unfortunately functionality you need to "live" with. We created our own unique document ID service application that ensures document ID's are maintained through the lifecycle even when moved to the records centre. We also created a configuraiton page to allow unique numbering to be set at a content type level therefore you are not restricted ...


2

The document IDs are assigned and updated based on a timer job. If deactivating and then activities the job did not update the Document IDs with the new path and info, I would focus on reviewing the status and result of the Timer Jobs. Please note that these jobs run daily by default, though they should also be triggered by the activation process. If they ...


2

Depending on your settings, the newform.aspx page will either open in a dialog (iframe) or open in a new page. Here is how I address this issue in my SPELL library: I don't pass the ID in the URL, but instead I run a script on newform.aspx that follows these steps: When the new form opens, check the parent window if the parent exist (dialog), then the ID ...


2

We've recently released a free HTML Calculated Column; it acts just like a calculated column, but won't escape HTML: Pentalogic's SharePoint HTML Calculated Column To produce a clickable link, you'd use the following formula: ="<a href=\"https://portal/sites/search/Pages/results.aspx?k="&[Document ID Value]&"\">Link</a>" Disclaimer: ...


1

Do you want to construct a clickable url in the search center? Then you need to modify the XSLT of the Search Core Results WebPart like Marc said. You can build the following url for instance: http:///_layouts/DocIdRedir.aspx?ID=[DocumentID]. You can reveal the document id with his managed property. If you want a "clickable" column within a sharepoint list ...


1

You can get the ID from newFile, check out SP.File.listItemAllFields You'll need to include the property in your load: clientContext.load(newFile, 'ListItemAllFields'); Then you can access the ID with: newFile.get_listItemAllFields().get_id();


1

The Document ID Service feature is enabled at the site collection level. Whether or not that site collection consumes content types from a hub is irrelevant. The document ID will get a prefix unique to the site collection (which can be changed). When the Document ID Service feature is enabled, the document ID column will be added to all documents created ...


1

Yes, create a managed property for the field and call it e.g. ArticleID. Then map the crawled property for the field with the id: 1d22ea11-1e32-424e-89ab-9fedbadb6ce1 to the managed property ArticleID. Then you can search for ArticleID:123 in the searchcenter or with a search webpart and get the item.


1

My issue resolved. thanks for your effort and reply. Explanation: I have "Link to Document" content type. Before asking the question I was thinking that "Link To Document" content type will have link of document Eg: "http://{yourserve}/{documentLibrary}/ABC.txt" . After creating the link, original document name can be changed (i.e. ABC.txt to ABC1.txt ...


1

DocumentId is populated by "Document ID Service" feature in SharePoint that can be turned on and off at the site collection level which means that the field may or may not be populated. When active, it provides a way to locate the document regardless of its current name or location. Item Id provides a unique integer for the document within a specific list ...


1

OK, So I figured out a solution to this problem. I really don't know what caused it (I am thinking someone made a copy or something and for whatever reason when they uploaded the copy SharePoint didn't change the ID) because I wasn't able to reproduce the issue with newer documents. The solution: Find your doucments with non-unique ID’s either by ...


1

Document Sets basically are a specialized version of a standard folder. You should be able to reference the container document set by first getting the reference to the container folder (doc sets doesn't support sub-folders, so the first parent folder for the file should be the document set) and then using the static DocumentSet.GetDocumentSet Method to ...


1

try this if it helps public static SPFile FindFileWithDocumentID(string docID) { SPFile file = null; string url = string.Empty; using (SPSite site = new SPSite("http://basesmc2008")) { string[] urls = Microsoft.Office.DocumentManagement.DocIdLookup.DoSearch(site, docID); if (urls != null && urls.Length ...


1

There wouldn't really be anyway to prevent them from doing so. However, you could use the suggestion in the answer here: Regex Query Against FAST Search 2010. That is to create an external processor for the search engine that sets a flag true on the indexed item if content on the page matches a regular expression that identifies a link to a local drive. ...


1

There are a couple of things you could check here. Check the Document ID settings (under site collection administration) to make sure its enabled here as well. If you click OK you it may tell you the job needs to process In central administration you can manually start the jobs associated with the appropriate web application. Go to Central Administation ...


1

I am presuming that you have followed activating the Document ID Feature as described in your links above and/or here - SharePoint 2010 – Activating the Document ID Feature. And also, recycling the timer jobs. The next would be to examine if the Document ID feature has been properly deployed to your Documents library. You could use the SharePoint 2010 ...


1

I had a similar problem with PDF documents and clicking their DocumentID link. In that case, it turned out to be that the PDF file type (or in your case, the EMF file type) was not listed in the File Types section of the Search Service Application in SharePoint 2010's Central Administration. Edit: I believe we also rebuilt the search index once this new ...


1

There is CodePlex project I used to solve something similar: Lookup Field with Picker 2010 Features Single- and multi-Selection Mode Cross site picking Search in picker dialog Search Operators: equals, not equal, contains, begins with, greater than, greater or equal than, less than, less or equal than. Select fields you would like to ...


1

Are these documents stored in a document library? The list entry ID will never change, no matter how many times you change the name, meta data, etc. So you can always use a link such as http://sitecollection/library/forms/dispform.aspx?id={0} to show the "View Properties" screen for any file; there people can view the meta data and/or open the file.


1

You could use the Document ID Service that will uniquely identify a document. This will generate a unique identifier for the document and give it a distinct URL, from the referenced blog post, it'll look like, http://sitecollectionurl/_layouts/DocIdRedir.aspx?ID=MFSHF5F7ZUF5-1-1.



Only top voted, non community-wiki answers of a minimum length are eligible