I've been trying to create an event registration using the CRegistration class. The registration seems to work, but when looking in the iMIS desktop application the Total Registrants increases but the Attendees count does not. I'm not sure what I'm doing wrong. Also I'm doing this testing on a backup version of the production iMIS system where the credit card processing is not work. When I use a PO, the registration object saves, but the attendee isn't tied to the event. Any Ideas?
Registrations using CRegistration
Please clarify
Are you saying that the RegistrantClass property needs to be set to "REG" like below?
registration.RegistrantClass = "REG"?
No, I am talking about
No, I am talking about Events setup.
From event function detail window you see Type input box, where you have enter "REG" to record attendees
http://docs.imis.com/15.1.2/14495.htm
Thanks
That didn't work
Our event function has a type of "REG" but it still doesn't work. Also, when the code calls CRegistration.Save() an exception is thrown. The exception is "String or binary data would be truncated". The weird thing is that when you look at CRegistration.OrderNumber there is a value in this property so it looks like the registration saved. But the fact that this exception is being thrown makes me think that this is cause of the attendees not being linked. Ideas?
Finally Got it working
Well I finally found the problem. I had used somebody else's post as an example where the code was setting CRegistration.RegistrantClass = "RegistrantClass" and that was the problem. The exception went away and the attendees now show up under the registration.
I'm still not sure if the RegistrantClass needs to be set to something, but for now I'm just happy the code is working.
Attendees count gets