Commit f2e3156a authored by manohar's avatar manohar

Changes done by Pragyan for implementing generalised validation in E12MOBILE interface merged


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95626 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 07df8d91
......@@ -676,12 +676,24 @@ public class GenVal
}
String tag = "Detail"+currentFormNo;
parentNodeList = dom.getElementsByTagName(tag);
//Changed By Pragyan 14-JUL-14 To support genvalidation for both MOBILEE12 and RCP.start
//changed by msalam on 26/09/07 start
//for getting value of focused Row rather than first row only
//commented next line and added lines
//parentNode = parentNodeList.item(0);
//added lines in place of previous line
//parentNode = parentNodeList.item( currentFormNo == 1 ? 0 : (this.formCtxFocusedRow - 1) );
if(parentNodeList != null && parentNodeList.getLength() < this.formCtxFocusedRow )
{
parentNode = parentNodeList.item( currentFormNo == 1 ? 0 : (parentNodeList.getLength() - 1) );
}
else
{
parentNode = parentNodeList.item( currentFormNo == 1 ? 0 : (this.formCtxFocusedRow - 1) );
}
//Changed By Pragyan 14-JUL-14 support genvalidation for both MOBILEE12 and RCP.end
//changed by msalam on 26/09/07 end
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
......@@ -774,4 +786,3 @@ public class GenVal
}//END OF EJB
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