Re: SmartGWT SimpleCalendar widget help

2010-05-07 Thread R Naveenshankar
Solution ::

Found the solution:




CalendarEvent calevent=event.getEvent();

eventname=calevent.getName();


Window.alert(eventname ::+eventname);

eventdescription=calevent.getDescription();

Window.alert(eventdesc ::+eventdescription);



Date startdate=calevent.getStartDate();

startdayofweek=startdate.getDay();
starthoursofday=startdate.getHours();
startminsofhour=startdate.getMinutes();


Window.alert(startdate ::+startdate);
System.out.println(+startdate);

//Wed May 05 06:00:00 IST 2010

Date endDate=calevent.getEndDate();

enddayofweek=endDate.getDay();
endhoursofday=endDate.getHours();
endminsofhour=endDate.getMinutes();



Window.alert(enddate ::+endDate);


Now I have an other question

Scenario is : When a user creates a new event and refreshes the page I
require the event to stay.. can anyone help me on this..

Regards
naveen

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



SmartGWT SimpleCalendar widget help

2010-05-06 Thread Naveen
Let me explain my requirements. I am working on an appointment
scheduling project which is totally on struts frame work. We have
a daily view page of appointments were in i am planing to use GWT
simple calendar widget. Now I have successfully worked out how to
deploy this into tomcat using the build from webappcreator. All I want
to know is how can i communicate between the client and the server..
To explain in detail.. say a person logs in and creates a appointment
(GWT simple calendar event ) i should be able to catch this in java
side so that i can send this across to my db where i can store it...

Please check this link :  
http://www.smartclient.com/smartgwt/showcase/#simple_calendar_category

you can view the code in the above link..

On click on the body of the calendar there is a pop panel where in we
can give certain details.. I just want to catch these details in java
side..

I worked on the basic example which comes along with eclipse plugin to
understand RPC .. In that we have a text box from which we can get the
entered value .. I am not able to understand the same in simple
calendar as some Datasource has been used.. Can anyone explain this
please..

Regards
Naveen

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SmartGWT SimpleCalendar widget help

2010-05-06 Thread Sanjiv Jivan
Try calendar.addEventClickHandler(..) and call CalendarEventClick.getEvent()
to obtain the CalendarEvent instance.

In the future please post Smart GWT related questions on the Smart GWT forum
: http://forums.smartclient.com/forumdisplay.php?f=14

Thanks,
Sanjiv

On Thu, May 6, 2010 at 4:14 AM, Naveen r.naveens...@gmail.com wrote:

 Let me explain my requirements. I am working on an appointment
 scheduling project which is totally on struts frame work. We have
 a daily view page of appointments were in i am planing to use GWT
 simple calendar widget. Now I have successfully worked out how to
 deploy this into tomcat using the build from webappcreator. All I want
 to know is how can i communicate between the client and the server..
 To explain in detail.. say a person logs in and creates a appointment
 (GWT simple calendar event ) i should be able to catch this in java
 side so that i can send this across to my db where i can store it...

 Please check this link :
 http://www.smartclient.com/smartgwt/showcase/#simple_calendar_category

 you can view the code in the above link..

 On click on the body of the calendar there is a pop panel where in we
 can give certain details.. I just want to catch these details in java
 side..

 I worked on the basic example which comes along with eclipse plugin to
 understand RPC .. In that we have a text box from which we can get the
 entered value .. I am not able to understand the same in simple
 calendar as some Datasource has been used.. Can anyone explain this
 please..

 Regards
 Naveen

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.