ArGri69
1st August 2008, 15:59
I try to locate a record with AFS in session cprpd2101m000 with stpapi.find()
But some how the record isn't found. The return is 2 (other record found).When I check this field it's always the first record. :confused:
this is the code I use:
o.item is a existing item!
stpapi.put.field("cprmp2101m000","cprmp300.plnc", "001")
stpapi.put.field("cprmp2101m000","cprmp300.plni", o.item)
ret = stpapi.find("cprmp2101m000",error.msg)
if ret=1 then
|record found perform action
stpapi.form.command("cprmp2101m000", 5, "update.plan", error.msg)
else
if ret=2 then
| Check which field is found
stpapi.get.field("cprmp2101m000","cprmp300.plni", i.item)
endif
endif
Anyone has an idea?
But some how the record isn't found. The return is 2 (other record found).When I check this field it's always the first record. :confused:
this is the code I use:
o.item is a existing item!
stpapi.put.field("cprmp2101m000","cprmp300.plnc", "001")
stpapi.put.field("cprmp2101m000","cprmp300.plni", o.item)
ret = stpapi.find("cprmp2101m000",error.msg)
if ret=1 then
|record found perform action
stpapi.form.command("cprmp2101m000", 5, "update.plan", error.msg)
else
if ret=2 then
| Check which field is found
stpapi.get.field("cprmp2101m000","cprmp300.plni", i.item)
endif
endif
Anyone has an idea?