Design In Context
APIs
: DataSearchFilesOnly
DataSearchFilesOnly
Searches for count of files on DashBoard site for given criteria and for given searchable object type.
Syntax:
Public static bool DataSearchFilesOnly (
string strURL,
string strCriteria,
string strObjectTypeHandle,
out string strErrorMessage,
out bool strSearchCount
)
Parameters:
strURL - The dashboard URL to be queried for getting data
strCriteria - Tag to be searched
strObjectTypeHandle - Handle of object type to search data in
strErrorMessage - When this method returns, contains the error message, if fails otherwise, contains String.Empty
strSearchCount - When this method returns, contains list of count of files, if tag has files associated with it on DashBoard otherwise, contains String.Empty
Return value:
true if success; otherwise, false.
Example:
string strMessage = string.Empty;
string strSearchResult = string.Empty;
if (DataSearchFilesOnly (
"http://inhyzvms8r09:16000/",
"J-9002A",
" LOGICAL (& OTHER PHYSICAL) OBJECT",
out strMessage, out strSearchResult))
{
Console.WriteLine("Associated Files - {0}", strSearchResult);
}
else
{
Console.WriteLine("Failed - Error - {0}", strMessage);
}
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.