simona
9th October 2009, 15:37
Hello everybody,
With AFS, in a type 3 session (with view field) i have to execute a command without selecting a current record (if i select a record, the form command is executed only for the selected record, but i need to execute the command for all sets of the view field)
This is my code:
__________________________________
stpapi.put.field("whinh2110m000", "whinh210.orno", tditc244.orno)
stpapi.put.field("whinh2110m000", "whinh210.oset", str$(whinh200.oset))
ret2 = stpapi.change.view("whinh2110m000", error.msg)
if ret2 = 1 then
stpapi.form.command("whinh2110m000", 5, "receive.order.lines", error.msg)
endif
__________________________________
With function stpapi.change.view first record in that view is
selected. And command "Receive.order.lines" is executed only for selected record.
How can i do to select no record??!! ...for executing "Receive.order.lines" for all lines of the view field.
Please help.
Thanks
With AFS, in a type 3 session (with view field) i have to execute a command without selecting a current record (if i select a record, the form command is executed only for the selected record, but i need to execute the command for all sets of the view field)
This is my code:
__________________________________
stpapi.put.field("whinh2110m000", "whinh210.orno", tditc244.orno)
stpapi.put.field("whinh2110m000", "whinh210.oset", str$(whinh200.oset))
ret2 = stpapi.change.view("whinh2110m000", error.msg)
if ret2 = 1 then
stpapi.form.command("whinh2110m000", 5, "receive.order.lines", error.msg)
endif
__________________________________
With function stpapi.change.view first record in that view is
selected. And command "Receive.order.lines" is executed only for selected record.
How can i do to select no record??!! ...for executing "Receive.order.lines" for all lines of the view field.
Please help.
Thanks