Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Modify exiting events (Read 2998 times)
Ambieremm
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Sep 14th, 2020
Modify exiting events
Sep 14th, 2020 at 7:02pm
Print Post  
Hi, I am using jplaner to create evetns and saving them in a database, I can make them and show them but i couldn´t figure out how to change the text or date of the one that already exist. I will show you my code. I m using the dual view sample as a base
  

foro.PNG ( 48 KB | 130 Downloads )
foro.PNG
foro1.PNG ( 27 KB | 140 Downloads )
foro1.PNG
foro4.PNG ( 35 KB | 130 Downloads )
foro4.PNG
Back to top
 
IP Logged
 
Ambieremm
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Sep 14th, 2020
Re: Modify exiting events
Reply #1 - Sep 14th, 2020 at 7:03pm
Print Post  
More screencaps
  

foro5.PNG ( 31 KB | 134 Downloads )
foro5.PNG
foro3.PNG ( 41 KB | 129 Downloads )
foro3.PNG
foro6.PNG ( 16 KB | 133 Downloads )
foro6.PNG
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Modify exiting events
Reply #2 - Sep 15th, 2020 at 4:58am
Print Post  
Hi,

If you need to save immediately when an item is modified, handle the itemModified event. You could associate your appointments with database records by setting Id or Tag property to record's primary id. Then you can run UPDATE statements instead of INSERT when saving if you find the record exists. In other direction you can search Schedule.Items for appointment with respective id, change its date and text if already existing, or create a new one otherwise.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Ambieremm
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Sep 14th, 2020
Re: Modify exiting events
Reply #3 - Oct 20th, 2020 at 2:42am
Print Post  
HI, now I can change the date by  draging the appointment created but i can´t figure how to make the program register the name changing
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Modify exiting events
Reply #4 - Oct 20th, 2020 at 4:58am
Print Post  
Hi,

Try the CalendarListener.itemInplaceEdited event.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint