This is a migrated thread and some comments may be shown as answers.

Retrieving a Single Document

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael Webster
Top achievements
Rank 1
Michael Webster asked on 08 Dec 2009, 08:12 PM

I am populating a drop down list box with the ID and want to be able to link to the document if it is selected.  I have other locations where I will display the document name that has been saved (ID) and will need to retrieve information related to that specific document.  I am able to pull the list of documents for the category, but not a single document.  Can you provide an example of a single document call?

This is how I am pulling the data for the category and this works.
        var lManager = new LibraryManager();
        var filter = new List<IMetaSearchInfo>();

        filter.Add(new MetaSearchInfo(MetaValueTypes.ShortText, "Category", "SectionName",
                                      SearchCondition.Equal, JoinType.And));
       
        IList listOfDocs = lManager.GetContent(0, 0, string.Empty,
                                   "LocationName",
                                   null, string.Empty,
                                   null, filter.ToArray());
This is what I was trying to do to make the call for one document.  This does not work.
 

 

var lManager = new LibraryManager();

 

var filter = new List<IMetaSearchInfo>();

 

Guid[] docGuid = new Guid[1];

docGuid[0] =

new Guid(txtDocId.Text);

 

 

 

filter.Add(

 

 

new MetaSearchInfo(MetaValueTypes.ShortText, "ID", docID, SearchCondition.Equal, JoinType.And));

 

 

franchiseQueryString = Request.QueryString[

"location"];

 

 

IList listOfEmploymentDocs = lManager.GetContent(0, 1, "Name ASC", docGuid);

1 Answer, 1 is accepted

Sort by
0
Tsviatko Yovtchev
Telerik team
answered on 09 Dec 2009, 08:25 AM
Hi Mike,

 What product are you trying to get support for? Is your issue related to JustCode?


Greetings,
Tsviatko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Michael Webster
Top achievements
Rank 1
Answers by
Tsviatko Yovtchev
Telerik team
Share this question
or