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);