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, "[email protected]")
    val.PutString(acon.ATTENDEE_EMAIL,"[email protected]")
    val.PutString(acon.ATTENDEE_EMAIL, "[email protected]")
    val.PutString(acon.ATTENDEE_EMAIL, "[email protected]")
    Dim attendee As Uri =cr.Insert(acon.CONTENT_URI,val)
    Dim attendeeID As Int = attendee.ParseId
    Log($"attendeeID: ${attendeeID}"$)
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Solution

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, "[email protected]")
    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,"[email protected]")
    Dim attendee As Uri =cr.Insert(acon.CONTENT_URI,val)
    Dim attendeeID As Int = attendee.ParseId
    Log($"attendeeID: ${attendeeID}"$)
 
Upvote 0
Top