Android Question AttendeesConstants

ddefrain

Member
Licensed User
Longtime User
Hi, is this the correct way to add attendee mails?

Thank's in advance!
Regards


B4X:
    Dim acon As AttendeesConstants
    Dim val As ContentValues
    Dim event As Int = eventID 'EventID
    val.Initialize
    val.PutString(acon.EVENT_ID, event)
    val.PutInteger(acon.ATTENDEE_TYPE, acon.TYPE_REQUIRED)
    val.PutString(acon.ATTENDEE_NAME, "Jhon")
    val.PutString(acon.ATTENDEE_EMAIL, "jhon@gmail.com")
    val.PutString(acon.ATTENDEE_EMAIL,"jane@mymail.com")
    val.PutString(acon.ATTENDEE_EMAIL, "jake@msn.com")
    val.PutString(acon.ATTENDEE_EMAIL, "sales@msn.com")
    Dim attendee As Uri =cr.Insert(acon.CONTENT_URI,val)
    Dim attendeeID As Int = attendee.ParseId
    Log($"attendeeID: ${attendeeID}"$)
 

ddefrain

Member
Licensed User
Longtime User
Try to add them one by one. Means add only ONE email and use Insert.

You probably find some info in the Documentation!


ok Thank's @DonManfred

This is the way I Create the new ones

B4X:
Dim acon As AttendeesConstants
    Dim val As ContentValues
    Dim event As Int = eventID 'EventID
    val.Initialize
    val.PutString(acon.EVENT_ID, event)
    val.PutInteger(acon.ATTENDEE_TYPE, acon.TYPE_REQUIRED)
    val.PutString(acon.ATTENDEE_NAME, "Jhon")
    val.PutString(acon.ATTENDEE_EMAIL, "jhon@gmail.com")
    Dim attendee As Uri =cr.Insert(acon.CONTENT_URI,val)
    Dim attendeeID As Int = attendee.ParseId
    Log($"attendeeID: ${attendeeID}"$)


    val.Initialize
    val.PutString(acon.EVENT_ID, event)
    val.PutInteger(acon.ATTENDEE_TYPE, acon.TYPE_REQUIRED)
    val.PutString(acon.ATTENDEE_NAME, "Jane")
    val.PutString(acon.ATTENDEE_EMAIL,"jane@mymail.com")
    Dim attendee As Uri =cr.Insert(acon.CONTENT_URI,val)
    Dim attendeeID As Int = attendee.ParseId
    Log($"attendeeID: ${attendeeID}"$)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…