Sebastian Sajaroff
Legendary Poster
Hi everyone,
I have some doubts regarding BSFN F06116 Edit Line, I'd
be grateful to receive some hints from you guys!
There is a custom grid where users type a bunch of
TimeEntry records, this is done via F06116 Begin Doc,
F06116 EditLine and finally F06116 EndDoc.
After users click OK, code invokes F06116 Begin Doc,
then it calls F06116 EditLine as many times as rows in the
grid with JobNumber=nnnn (comes from BeginDoc), Action=A,
mnLineNumber=0 and mnLastLineNumber=0.
It always returns FlagError=0 or blank, so I assume
that everything is OK. There's no error on JDE.LOG neither.
After closing with F06116 EndDoc, I run an SQL query and
realize that only the last record was saved.
The other ones were lost in the JDE Bermuda Triangle.
No error message at all. Quite mysterious (to me).
I've got some feeling that it's sending the wrong
parameter to mnLineNumber or mnLastLineNumber.
Given that it just has to append records, my doubts are :
What value should passed as mnLastLineNumber? Always Zero?
Or should be passed the number of records? Does it start
counting from 0 or from 1?
What about mnLineNumber? Should pass 0? Or should pass
the Grid row Number? Does it start counting from 0 or
from 1?
Platform : AS/400 V5R3, OneWorld Xe SP23J1, Fat Clients.
Thanks a lot,
I have some doubts regarding BSFN F06116 Edit Line, I'd
be grateful to receive some hints from you guys!
There is a custom grid where users type a bunch of
TimeEntry records, this is done via F06116 Begin Doc,
F06116 EditLine and finally F06116 EndDoc.
After users click OK, code invokes F06116 Begin Doc,
then it calls F06116 EditLine as many times as rows in the
grid with JobNumber=nnnn (comes from BeginDoc), Action=A,
mnLineNumber=0 and mnLastLineNumber=0.
It always returns FlagError=0 or blank, so I assume
that everything is OK. There's no error on JDE.LOG neither.
After closing with F06116 EndDoc, I run an SQL query and
realize that only the last record was saved.
The other ones were lost in the JDE Bermuda Triangle.
No error message at all. Quite mysterious (to me).
I've got some feeling that it's sending the wrong
parameter to mnLineNumber or mnLastLineNumber.
Given that it just has to append records, my doubts are :
What value should passed as mnLastLineNumber? Always Zero?
Or should be passed the number of records? Does it start
counting from 0 or from 1?
What about mnLineNumber? Should pass 0? Or should pass
the Grid row Number? Does it start counting from 0 or
from 1?
Platform : AS/400 V5R3, OneWorld Xe SP23J1, Fat Clients.
Thanks a lot,