Hello,
I am looking for a way to identify a link in a search results window. In the example below, I have two links that are in two different folders. When I use Context.CurrentSelectionSet.ToList(), a list of ISelection of SelectionTypeId.File is returned in this case (the base file information is returned). So I can't tell which of the two links is selected.
Context.NavSelectionSet.ToList() does not seem to be useful in this case.
Alex.
Hello,
I am looking for a way to identify a link in a search results window. In the example below, I have two links that are in two different folders. When I use Context.CurrentSelectionSet.ToList(), a list of ISelection of SelectionTypeId.File is returned in this case (the base file information is returned). So I can't tell which of the two links is selected.
Context.NavSelectionSet.ToList() does not seem to be useful in this case.
Alex.
I think I found an old thread talking about this and there is still no workaround. (2015)
-->"Unfortunately i'm not aware of any possibility at this time to know wether the object you selected is a link or the object it self. From an API point of view it's always the object, never the link, but in some cases, like yours, it would be interesting to know wether it's a link or an object.
so, as for now, i don't think there is a way to figure this out. I would place a support request through ADN in order to get this as an API wish for a next Vault release."<--
I think I found an old thread talking about this and there is still no workaround. (2015)
-->"Unfortunately i'm not aware of any possibility at this time to know wether the object you selected is a link or the object it self. From an API point of view it's always the object, never the link, but in some cases, like yours, it would be interesting to know wether it's a link or an object.
so, as for now, i don't think there is a way to figure this out. I would place a support request through ADN in order to get this as an API wish for a next Vault release."<--
I was finally able to achieve my goal by displaying a dialog box after right-clicking in the folders context menu and launching FindFilesBySearchConditions and FindLinksBySearchConditions to list Files and Links of the folder. I can then make something of listed links.
I was finally able to achieve my goal by displaying a dialog box after right-clicking in the folders context menu and launching FindFilesBySearchConditions and FindLinksBySearchConditions to list Files and Links of the folder. I can then make something of listed links.
Can't find what you're looking for? Ask the community or share your knowledge.