Ankita
2nd February 2008, 07:11
I am passing value for an enumerated field which is mandotary through stpapi.put.field(). The value i have to send is kpyesno.yes. I have put it in " " while sending to the session. This isn't working. As i am getting error message for the corresponding mandatory field.

stpapi.put.field("######", "######.molt", "kpyesno.no")

Thanks.

Ankita
2nd February 2008, 08:06
I got the solution from one of the developer guides for AFS, where i found following way to send value of enumerated field to a session through AFS.

stpapi.put.field("######", "######.molt", str$(etol(kpyesno.no")))


Regards.

lanare
15th February 2008, 15:08
your solution is the next:

stpapi.put.field("XXXXX", "XXXXX", str$(etol(kpyesno.no)))

your welcome...