Francesco
14th February 2005, 20:04
For "example":
stpapi.put.field("tipcs2101m000", "tipcs020.cprj", project.series)
stpapi.put.field("tipcs2101m000", "tipcs020.dsca", customer.name)
stpapi.put.field("tipcs2101m000", "tipcs020.dscc", customer.address)
stpapi.put.field("tipcs2101m000", "tipcs020.refe", str$(tccom975.bono))
stpapi.put.field("tipcs2101m000", "tipcs020.seak", strip$(tccom976.part))
stpapi.put.field("tipcs2101m000", "tipcs020.kopr", "3")
stpapi.put.field("tipcs2101m000", "tipcs020.cuno", customer.number)
stpapi.put.field("tipcs2101m000", "tipcs020.ncmp", "001")
stpapi.put.field("tipcs2101m000", "tipcs020.ddat", str$(date.num()))
ret = stpapi.insert("tipcs2101m000", true, error.message)
stpapi.get.field("tipcs2101m000", tipcs020.cprj, project.number)
Obviously the last statement is not working (I knew that!), because the value in the field buffer for the key field (cprj) is the project series rather than the project number (I meant to do that!).
I want to somehow see what actual project number got assigned to my new record without having to do a full query again.
One would think there is an elegant way to do this....but there isn't...or is there?
stpapi.put.field("tipcs2101m000", "tipcs020.cprj", project.series)
stpapi.put.field("tipcs2101m000", "tipcs020.dsca", customer.name)
stpapi.put.field("tipcs2101m000", "tipcs020.dscc", customer.address)
stpapi.put.field("tipcs2101m000", "tipcs020.refe", str$(tccom975.bono))
stpapi.put.field("tipcs2101m000", "tipcs020.seak", strip$(tccom976.part))
stpapi.put.field("tipcs2101m000", "tipcs020.kopr", "3")
stpapi.put.field("tipcs2101m000", "tipcs020.cuno", customer.number)
stpapi.put.field("tipcs2101m000", "tipcs020.ncmp", "001")
stpapi.put.field("tipcs2101m000", "tipcs020.ddat", str$(date.num()))
ret = stpapi.insert("tipcs2101m000", true, error.message)
stpapi.get.field("tipcs2101m000", tipcs020.cprj, project.number)
Obviously the last statement is not working (I knew that!), because the value in the field buffer for the key field (cprj) is the project series rather than the project number (I meant to do that!).
I want to somehow see what actual project number got assigned to my new record without having to do a full query again.
One would think there is an elegant way to do this....but there isn't...or is there?