How to get an data from input when i creating new meeting?

if(args.requestType === "eventCreate"){
let roomId = this.props.id;
let Subject = args.data.Subject;
let StartTime = args.data.StartTime;
let EndTime = args.data.EndTime;
let userId = 3;
let newData={
roomId,
Subject,
StartTime,
EndTime,
userId
};
console.log(newData);
this doesn't work

3 Replies

RV Ravikumar Venkatesan Syncfusion Team April 6, 2020 07:26 AM UTC

Hi Darkhan, 

Greetings from Syncfuison support. 

Based on your requirement we have prepared the below sample with help of actionBegin event like below code and the same made in the below sample. 

  onActionBegin(args) { 
    if (args.requestType === 'eventCreate') { 
      let data; 
      let eventData = args.data[0]; 
      let eventField = this.scheduleObj.eventFields; 
 
      let userId = 3; 
      let subject = eventData[eventField.subject]; 
      let startDate = eventData[eventField.startTime]; 
      let endDate = eventData[eventField.endTime]; 
      let roomId = eventData[this.scheduleObj.resourceCollection[0].field]; 
 
      let newData = { 
        userId, 
        subject, 
        startDate, 
        endDate, 
        roomId 
      } 
 
      console.log(newData); 
    } 
  } 


Kindly try the above sample and get back to us If you would require any further assistance. 


Regards, 
Ravikumar Venkatesan 



DM Darkhan Myrzabek April 6, 2020 08:55 AM UTC

Thanks)


VM Vengatesh Maniraj Syncfusion Team April 7, 2020 04:23 AM UTC

Hi Darkhan, 

You are most welcome. 

Please get in touch with us if you would require any further assistance. 

Regards, 
Vengatesh  


Loader.
Up arrow icon