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?

mark_h
28th February 2011, 15:26
Is this the same topic as back in 2006 - see this thread (http://www.baanboard.com/baanboard/showthread.php?t=7101&highlight=whinh3120s000&page=2) and the replies to it. Plus you might need to post all the code for someone to see what might be wrong.