gous99
17th April 2002, 20:50
Hi, here is my problem,
I'm trying to use this dll (ottstpapihand) to create Purchase Orders/Lines.
Everything go smooth except for one thing. There is a few field that do not get updated. They stay blank or 0 or keep the default.
If I create a new Purchase Order manually, I can change those fields and the session lets me, so how come I can't replicate the same with calls to this dll, and only for those fields?
Here are the fields:
tdpur040.cdec Keeps the default value
tdpur040.cpay Stays blank
tdpur040.cfrw Stays blank
tdpur040.ccty Keeps the default value
tdpur040.ccur Keeps the default value
tdpur040.ccor Stays blank
tdpur040.ccon Stays at 0
Here is my call to feed these fields. Also, when inserting, they're is no error message. All the values are valid values.
stpapi.put.field("tdpur4101m000", "tdpur040.ccur", hold.ccur)
stpapi.put.field("tdpur4101m000", "tdpur040.cfrw", hold.cfrw)
stpapi.put.field("tdpur4101m000", "tdpur040.cpay", hold.cpay)
stpapi.put.field("tdpur4101m000", "tdpur040.cdec", hold.cdec)
stpapi.put.field("tdpur4101m000", "tdpur040.ccty", hold.ccty)
stpapi.put.field("tdpur4101m000", "tdpur040.ccon", str$(hold.buyr))
stpapi.put.field("tdpur4101m000", "tdpur040.ccor", hold.ccor)
I'm trying to use this dll (ottstpapihand) to create Purchase Orders/Lines.
Everything go smooth except for one thing. There is a few field that do not get updated. They stay blank or 0 or keep the default.
If I create a new Purchase Order manually, I can change those fields and the session lets me, so how come I can't replicate the same with calls to this dll, and only for those fields?
Here are the fields:
tdpur040.cdec Keeps the default value
tdpur040.cpay Stays blank
tdpur040.cfrw Stays blank
tdpur040.ccty Keeps the default value
tdpur040.ccur Keeps the default value
tdpur040.ccor Stays blank
tdpur040.ccon Stays at 0
Here is my call to feed these fields. Also, when inserting, they're is no error message. All the values are valid values.
stpapi.put.field("tdpur4101m000", "tdpur040.ccur", hold.ccur)
stpapi.put.field("tdpur4101m000", "tdpur040.cfrw", hold.cfrw)
stpapi.put.field("tdpur4101m000", "tdpur040.cpay", hold.cpay)
stpapi.put.field("tdpur4101m000", "tdpur040.cdec", hold.cdec)
stpapi.put.field("tdpur4101m000", "tdpur040.ccty", hold.ccty)
stpapi.put.field("tdpur4101m000", "tdpur040.ccon", str$(hold.buyr))
stpapi.put.field("tdpur4101m000", "tdpur040.ccor", hold.ccor)