veyant
8th May 2006, 14:20
Hi,
I am working on AFS for session tdpur4000s000. It has 2 fields on the form
Ordered.quantity and delivery.date
delivery.date is a tcdate domain with 2 segments - one for date and one for time.
can anybody help me how to put values thru stpapi for the date variable.
I have utc value in one variable and tring to pass values as follows, but on stpapi.update, it thros a error "USE of NULL pointer"...
Pls help in correcting.. given below is the code..
yyyy = 2006
mm = 05
dd = 16
del.date = date.to.utc(yyyy,mm,dd,00,00,00)
stpapi.put.field("tdpur4000s000","ordered.quantity","2")
stpapi.put.field("tdpur4000s000","delivery.date.segment.1",str$(del.date))
stpapi.put.field("tdpur4000s000","delivery.date.segment.2","2359")
stpapi.update("tdsls4000s000",1,api.error)
as it goes to stpapi.update, i get error "use of Null pointer on "" and it terminates the session tdpur4000s000.
can somebody help me how to pass date in segments.
I am working on AFS for session tdpur4000s000. It has 2 fields on the form
Ordered.quantity and delivery.date
delivery.date is a tcdate domain with 2 segments - one for date and one for time.
can anybody help me how to put values thru stpapi for the date variable.
I have utc value in one variable and tring to pass values as follows, but on stpapi.update, it thros a error "USE of NULL pointer"...
Pls help in correcting.. given below is the code..
yyyy = 2006
mm = 05
dd = 16
del.date = date.to.utc(yyyy,mm,dd,00,00,00)
stpapi.put.field("tdpur4000s000","ordered.quantity","2")
stpapi.put.field("tdpur4000s000","delivery.date.segment.1",str$(del.date))
stpapi.put.field("tdpur4000s000","delivery.date.segment.2","2359")
stpapi.update("tdsls4000s000",1,api.error)
as it goes to stpapi.update, i get error "use of Null pointer on "" and it terminates the session tdpur4000s000.
can somebody help me how to pass date in segments.