CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 Anyone UK Java JSP having Calendar problems?

Print topic Send  topic

Author Message
Cool-Cat

Posts: 9
Posted: 04/19/2007, 2:16 PM

Just thought that I would have a look at this v3.1.1.0 CCS Calendar for a new commission.

The (any day) day count of the week is not presented on the monthly title columns. Most months have only six column days but some have only five.

Should be a simple error, but can anyone else confirm this as a problem before I dig into the Java CCS JSP generated framework source?

T W T F S S <M>
1 2 3 4 ...

<M> is missing


TIA

Regards

Anton
_________________
A consultant contractor with 20+ years service now breathing life into legacy applications with CodeCharge Studio. You won't find better or simpler than CCS ?
View profile  Send private message
Joachim Uersfeld
Posted: 04/19/2007, 11:20 PM

This i the answer from support:

Please open code files and find
com.codecharge.components.action.CalendarAction class, here you will
see
private int getStartDateOffset(int dayOfWeek, int firstWeekday) {...}
method with the follwoing code:
if (result > 0) {
result -= 6;
}
Here replace 6 to 7, it should resolve the problem.


Joachim



>Cool-Cat wrote:

> Just thought that I would have a look at this v3.1.1.0 CCS Calendar
> for a new commission.
>
> The (any day) day count of the week is not presented on the monthly
> title columns. Most months have only six column days but some have
> only five.
>
> Should be a simple error, but can anyone else confirm this as a
> problem before I dig into the Java CCS JSP generated framework source?
>
> [img]C:\Documents and Settings\Anton Hinxman\My Documents\My
> Pictures\opps_cal.JPG
>
> TIA
>
> Regards
>
> Anton
> _________________
> A consultant contractor with 20+ years service now breathing life
> into legacy applications with CodeCharge Studio. You won't find
> better or simpler than CCS ?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/



--
negociant

Posts: 31
Posted: 04/19/2007, 11:44 PM

Seems it's real problem :(.
You can try correct method :

com.codecharge.components.action.CalendarAction.getStartDateOffset
And in this place
if (result > 0) {
result -= 6;
}
chande 6 to 7.

It should help, but i don't know what can happen with calendar component at all.
View profile  Send private message
Cool-Cat

Posts: 9
Posted: 04/20/2007, 1:11 AM

Thanks for the effort - seems correct place to look but did not fix.

I suspect that more consideration / time is needed to fix this.

Could be that the common error of 0 offset is here.

I have tried the:

if (result > 0) {
result -= 7; // days per week (for gregorian calendar) (begining from 0)
}

but suspect:

if (result >= 0) {
result -= 6; // days per week (for gregorian calendar) (begining from 0)
}

Not much time to check this ATM but will update when properly logic fix is checked out.

Calendar may be worth the effort but I also notice that the layout can be destroyed when descriptions of diary events are present. It would be so much better to have a simple background red link highlight to a SELECT DISTINCT mydate type of extract.

More time next week.

Regards

Anton
_________________
A consultant contractor with 20+ years service now breathing life into legacy applications with CodeCharge Studio. You won't find better or simpler than CCS ?
View profile  Send private message
negociant

Posts: 31
Posted: 04/23/2007, 5:35 AM

:D.
I did think CCS developer know his own code better....

I just have this problem in my project and it's best place that i found.
I hope developer solve this asap.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.