Jump to content

UniCalendarPanel


cristianotestai

Recommended Posts

Hi Farshad,

 

I have two questions:

 

1) I need a property or field in the class TUniCalendarEvent to keep an identifier which i will use internally to find the record in my TClientDataSet.

I see the EventId property, but it is read only. What i can use?

 

2) There is a way to hide hours in UniCalendarPanel? For example, the hours of 12:00am until 06:00am they are not common activities.

 

These topics are very important for me.

 

Regards.

Link to comment
Share on other sites

  • Administrators
1) I need a property or field in the class TUniCalendarEvent to keep an identifier which i will use internally to find the record in my TClientDataSet.

I see the EventId property, but it is read only. What i can use?

 

I will add a custom property for this. A pointer to hold user data.

 

Logged #1067

 

2) There is a way to hide hours in UniCalendarPanel? For example, the hours of 12:00am until 06:00am they are not common activities.

 

I don't know. You can explore Ext JS docs for it and if there is a way for it I will try to implement it.

Link to comment
Share on other sites

I will add a custom property for this. A pointer to hold user data.

 

Logged #1067

 

 

 

I don't know. You can explore Ext JS docs for it and if there is a way for it I will try to implement it.

 

Hi,

 

I tried see the docs of Ext.Calendar, but don't found about hide the hours..

 

Farshad,

 

The property ShowNavBar = False hide All NavBar. I need an option para hide only the button prev and next, or better,

have the property ShowPrev and ShowNext para hide/show the buttons. This i need for allow the navigation only by UniCalendar.

 

I found other possible bugs:

1) Bug in OnDayClick Event(Sender: TUniCalendarPanel; ADate: TDateTime; Allday: Boolean), where in my tests the value Time of parameter ADate

always is 00:00:00.

 

2)In "sometimes" in my code in the unibutton:

 

dmSessionModule.cdsAtividade.Delete;

dmSessionModule.cdsAtividade.ApplyUpdates(0);

Close;

 

or

 

dmSessionModule.cdsAtividade.Cancel;

Close;

 

Ocours a "Object O6C7 not found in session list. It could be timed out, refresh page and try again."

 

If i did not put the "Close" statement to close the form, the error never occurs.

 

 

Tks for attention.

Link to comment
Share on other sites

  • Administrators

Hi,

 

I tried see the docs of Ext.Calendar, but don't found about hide the hours..

 

Farshad,

 

The property ShowNavBar = False hide All NavBar. I need an option para hide only the button prev and next, or better,

have the property ShowPrev and ShowNext para hide/show the buttons. This i need for allow the navigation only by UniCalendar.

 

 

In 0.86 it can be resolved like this:

 

function OnAfterrender(sender)
{
  var aa=document.getElementById(sender.id+'-tb-prev');
  var bb=document.getElementById(sender.id+'-tb-next');
  if (aa) aa.style.visibility="hidden";
  if (bb) bb.style.visibility="hidden";
}

 

I found other possible bugs:

1) Bug in OnDayClick Event(Sender: TUniCalendarPanel; ADate: TDateTime; Allday: Boolean), where in my tests the value Time of parameter ADate

always is 00:00:00.

 

Logged #1073

 

2)In "sometimes" in my code in the unibutton:

 

dmSessionModule.cdsAtividade.Delete;

dmSessionModule.cdsAtividade.ApplyUpdates(0);

Close;

 

or

 

dmSessionModule.cdsAtividade.Cancel;

Close;

 

Ocours a "Object O6C7 not found in session list. It could be timed out, refresh page and try again."

 

If i did not put the "Close" statement to close the form, the error never occurs.

 

Can you provide a Test case for this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...