Hello guys,
There is situation currently facing in Part Entry Screen.
We have Part XXX for eg in database. Sometime, what happens is when I paste this XXX Part in Part Entry screen, it give error like Record not Found.
Not understanding why like this. In Code, we have use oTran.AfterAdapterMethod → GetByID case.
In this we are using
Dim edvPart as EpiDataView = CType(oTrans.EpiDataViews(“Part”), EpiDataView)
edvPart.Row = 1
After this line some field enable/disable code is written.
When I debug this code, in edvPart EpiDataview, record of this Part XXX is coming but Row is showing -1. If its already having 1 row displaying in EpiDataview, then why this edvPart.Row is displaying as -1.
So if this will delete edvPart.Row = 1 line from code, then this error is coming so forcefully if we are adding this line. So when adding edvPart.Row = 1 , its working but some time even for this error comes of Record Not Found.
Any suggestion to avoid this kind of error what can be check more in GetById case in oTrans.AfterADapter method.
Apart from GetByID, is there any other method due to which this Error can produce then also let us know