Forums de discussion

Dev Query with respect to Liferay AUI Scheduler

Jayaram L G, modifié il y a 6 années.

Dev Query with respect to Liferay AUI Scheduler

New Member Envoyer: 1 Date d'inscription: 12/10/17 Publications récentes
Hi

I am using Liferay- AlloyUI Framework - AUI Scheduler for displaying events in the calendar.

Calendar has rows and columns as time Vs Feednames.

Every event have starttime, endtime and Feedname and type and status and other parameters.
All the events are present in SQL DB.

Feednames are like A,B,C,D,E,Undefined.
Type is like Type1 and Type2.
Status is like Status1 and Status2.

In the graphical ordering of displaying events to the calendar, I want Type1 and Status1 should be on top of other combinations.
I had written SQL Query which will return the events in the order I required.

If the event donot have a feedname it should belong to Undefined Feed name.

I am adding every events by creating SchedulerEvent to the instance.
I am trying to sync the events to the calendar, by using instance.resetevents(events).

It is internally calling the AlloyUI Framework and reset method of Modellist is triggered.
Reset method is changing the order. So I changed the default comparator method of Modellist to maintain the order.

Now for every Calendar event, it is added to the corresponding feedname and undefined feedname.
I dont want them to be added to Undefined, if feedname is present.

Please suggest me solutions or way to go forward.