Design In Context
APIs
: GetDataForTag
GetDataForTag
Searches data on DashBoard site for given criteria and for given searchable object type.
Syntax:
Public static bool GetDataForTag (
string strURL,
string strCriteria,
string strObjectTypeHandle,
out string strErrorMessage,
out string strJSONReturn
)
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
strJSONReturn - When this method returns, contains the JSON response of data related to criteria from DashBoard, if tag has any data on DashBoard otherwise, contains String.Empty
Return value:
true if success; otherwise, false.
Example:
string strMessage = string.Empty;
string strJSON = string.Empty;
if (GetDataForTag (
"http://inhyzvms8r09:16000/",
"J-9002A",
"LOGICAL (& OTHER PHYSICAL) OBJECT",
out strMessage, out strJSON))
{
Console.WriteLine("Returned JSON - {0}", strJSON);
}
else
{
Console.WriteLine("Failed - Error - {0}", strMessage);
}
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.