Our powerful JS Calendar component


Post by codevlabs »

I am setting the resourceField multiselect to true and selecting multiple calendars. On save, only one resource is being synced through crudmanager. Can anyone please help on this? Thanks.

items : 
				{
					nameField: {
						label			: '',
						required		: 'true',
						weight			:  100,
						type			: 'textareafield',
						placeholder		: 'Title'
					},
					typeSelector : {	
						name 			: 'eventType',						
						type  			: 'combo',
						label 			: 'Event Type',
						required		: true,
					
					value			: '1',
					editable    	: false,
					items         	: this.constantsService.listEventTypes,					
					weight 			: 110
				},
				resourceField: {
					label: "Calendar",
					multiSelect: true,
					required: true
				}
crudManager : {			 
			transport : {
				load : {
					url : environment.baseURL + '/1/getCalendar.php',
					fetchOptions: { credentials: "omit" },
					headers: { Authorization: 'Bearer ' + this.constantsService.access_token }										
				},
				sync : {
					url : environment.baseURL + '/1/postCalendar.php',
					fetchOptions: { credentials: "omit" },
					headers: { Authorization: 'Bearer ' + this.constantsService.access_token }
				}
			},
			autoLoad : true,
			autoSync : true,
			eventStore : {
				syncDataOnLoad : true,
				fields : [
					{ name : 'eventType' }
				]
			},
			resourceStore : {
				syncDataOnLoad : true
			}
		},
Attachments
Screenshot 2024-03-01 170210.png
Screenshot 2024-03-01 170210.png (27.02 KiB) Viewed 145 times
Screenshot 2024-03-01 170252.png
Screenshot 2024-03-01 170252.png (32.96 KiB) Viewed 145 times

Post by Animal »


Post by codevlabs »

The following screenshot shows a sample event and a resource. thanks.

Attachments
Screenshot 2024-03-01 175649.png
Screenshot 2024-03-01 175649.png (36.03 KiB) Viewed 140 times

Post by codevlabs »

to answer your question, no we are not loading assignments as shown in your link. We will work on this.

We still have the issue that crudmanager is not saving the multiple assignments on a new event.


Post by Animal »

When you fix the data, it will work. Specifying one direct resourceId link puts the data store in single assign mode. Tweaking the configuration of the input field won’t change that mode.


Post by codevlabs »

Thanks. I will confirm when we implement this change.


Post by marcio »

Hey codevlabs,

Please let us know about the updates. Hope everything goes with no problems. Don't hesitate to get in touch with us.

Best regards,
Márcio


Post Reply