getProviderData
getProviderData
Reads a Provider Instance's current response data directly.
Parameters
path(String): The Provider Instance name
Returns: dynamic — the PI's current response data (a JSON object or array), or null if there is no data
Description
Fetches the PI's raw response data directly, without going through DataSet binding. You can reach it with just the PI name, even if you do not know the DataSet path.
Example
// stockProvider의 현재 데이터 확인
var data = $vm.getProviderData("stockProvider");
$log.i("데이터:", JSON.stringify(data));
// 특정 필드 접근
if (data && data.list) {
$log.i("항목 수:", data.list.length);
}
Related
$vm.evalProviderJsonPath(recvPath, regularPath)— read a value from PI data with JSONPath$vm.requestData(provInstName)— request data from a PI