hook_<libraryPrefix>_faceplateWindowTitle()
This function queries the text of the faceplate window title of the referenced data point.
Synopsis
string hook_<libraryPrefix>_faceplateWindowTitle(string
sDp);
Parameter
Parameter | Description |
---|---|
sDp | Referenced data point. |
Return Value
Text of the faceplate window title.
Description
This function queries the text of the faceplate window title of the referenced data point. By default the alias of the data point is used for the window title. If no alias is specified, the name of the data point is used (without system name).
You can find the function in the stdlib_hook_project.ctl under wincc_oa_path/Stdlib_3.19/scripts/libs/
langString hook_faceplateWindowTitle(string sDp)
{
langString lsWindowTitle = hook_getFaceplateWindowTitle(sDp);
if ( lsWindowTitle == "" ) lsWindowTitle = dpGetAlias(sDp);
if ( lsWindowTitle == "" ) lsWindowTitle = dpSubStr(sDp, DPSUB_SYS_DP);
return lsWindowTitle;
}