Commit 3dd067e9 authored by prane's avatar prane

return error if no record found in while process

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@194696 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2b0409a7
...@@ -1267,6 +1267,12 @@ conn = getConnection(); ...@@ -1267,6 +1267,12 @@ conn = getConnection();
xmlString = getViewData(headerDom, detailDom, windowName, xtraParams, conn); xmlString = getViewData(headerDom, detailDom, windowName, xtraParams, conn);
detailDom = genericUtility.parseString(xmlString); detailDom = genericUtility.parseString(xmlString);
parentNodeList = detailDom.getElementsByTagName("Detail2"); parentNodeList = detailDom.getElementsByTagName("Detail2");
//Added to return error if no record found in while process
if(parentNodeList.getLength() == 0)
{
returnString = itmDBAccessEJB.getErrorString("", "VTNOREC1", "","", conn);
return returnString;
}
} }
else { else {
parentNodeList = detailDom.getElementsByTagName("Detail2"); parentNodeList = detailDom.getElementsByTagName("Detail2");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment