Andy..
28th February 2011, 12:35
Hi, in Baan5 receipt lines I finding the get.field returns nothing that is non-editable.
The get works fine on the first line below for lot number (generated), plus all the other ediable fields...
stpapi.get.field( "whinh3120s000", "whinh210.clot", get.clot )
stpapi.get.field( "whinh3120s000", "whinh210.cuni", get.cuni) |inv unit
stpapi.get.field( "whinh3120s000", "whinh210.rcun", get.rcun) |rec unit
... but nothing is returned on these UOM fields. I have tried saves & updates (before the get!) ...
ret=stpapi.save( "whinh3120s000", error )
ret=stpapi.update( "whinh3120s000", do.update, error2 )
... but whilst this saves the record and allows the receipt to progress it still doesnt seem to make the 'get' work.
Any ideas?
The get works fine on the first line below for lot number (generated), plus all the other ediable fields...
stpapi.get.field( "whinh3120s000", "whinh210.clot", get.clot )
stpapi.get.field( "whinh3120s000", "whinh210.cuni", get.cuni) |inv unit
stpapi.get.field( "whinh3120s000", "whinh210.rcun", get.rcun) |rec unit
... but nothing is returned on these UOM fields. I have tried saves & updates (before the get!) ...
ret=stpapi.save( "whinh3120s000", error )
ret=stpapi.update( "whinh3120s000", do.update, error2 )
... but whilst this saves the record and allows the receipt to progress it still doesnt seem to make the 'get' work.
Any ideas?