Hi all,
Please follow the following steps to understand the problem - 1. Go to WorkEffort -> Calander. 2. Add new Event. The date-time field uses a time-dropdown input method. This lists the current time both the start and end time. This behavior is correct. 3. Change the start and end time of the event. Save it. 4. Edit the newly created event. Here, on the start and end time of the event, the current time is indicated, whereas I think it should display the time which was set for the event. How can this be fixed? Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com |
Hi Kranti,
I had gone through the steps you gave, and it showing the right start & end date which i set, & its working fine at trunk too, i think you are using old version. Please Check it at trunk https://demo-trunk.ofbiz.apache.org/workeffort/control/calendar -- Thanks& Regards: Ankit Jain Enterprise Software Developer Hotwax Media Pvt. Ltd. www.hotwaxmedia.com On Monday 21 June 2010 12:30 PM, Kranti Agrawal wrote: > Hi all, > > Please follow the following steps to understand the problem - > 1. Go to WorkEffort -> Calander. > 2. Add new Event. The date-time field uses a time-dropdown input method. > This lists the current time both the start and end time. This behavior is > correct. > 3. Change the start and end time of the event. Save it. > 4. Edit the newly created event. Here, on the start and end time of the > event, the current time is indicated, whereas I think it should display the > time which was set for the event. > How can this be fixed? > > Regards, > Kranti Agrawal > Student, IIIT Bangalore > krantiagrawal.blogspot.com > > |
Hi Ankit,
Please find the screenshot. Its not showing the correct values. Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com On Mon, Jun 21, 2010 at 1:25 PM, Ankit Jain <[hidden email]> wrote: Hi Kranti, |
In reply to this post by Ankit Jain-3
Oops, i got your problem in wrong way, Sorry!
But now I got your problem you were telling about the time not the date, and yes its showing the current time in the dropdown not the time which we set, I try to find out the reason & solution for it. -- Thanks& Regards: Ankit Jain Enterprise Software Developer Hotwax Media Pvt. Ltd. www.hotwaxmedia.com On Monday 21 June 2010 01:25 PM, Ankit Jain wrote: > Hi Kranti, > > I had gone through the steps you gave, and it showing the right start > & end date which i set, & its working fine at trunk too, i think you > are using old version. > > Please Check it at trunk > https://demo-trunk.ofbiz.apache.org/workeffort/control/calendar > |
In reply to this post by kranti
Hi Kranti,
The patch attached solves your problem. But I am trying to find a better solution at the framework level. -- Thanks & Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Kranti Agrawal wrote: > Hi all, > > Please follow the following steps to understand the problem - > 1. Go to WorkEffort -> Calander. > 2. Add new Event. The date-time field uses a time-dropdown input method. > This lists the current time both the start and end time. This behavior is > correct. > 3. Change the start and end time of the event. Save it. > 4. Edit the newly created event. Here, on the start and end time of the > event, the current time is indicated, whereas I think it should display the > time which was set for the event. > How can this be fixed? > > Regards, > Kranti Agrawal > Student, IIIT Bangalore > krantiagrawal.blogspot.com > > Index: applications/workeffort/widget/CalendarForms.xml =================================================================== --- applications/workeffort/widget/CalendarForms.xml (revision 956539) +++ applications/workeffort/widget/CalendarForms.xml (working copy) @@ -103,8 +103,8 @@ </entity-options> </drop-down> </field> - <field name="estimatedStartDate"><date-time input-method="time-dropdown" /></field> - <field name="estimatedCompletionDate"><date-time input-method="time-dropdown"/></field> + <field name="estimatedStartDate"><date-time input-method="time-dropdown" default-value="${workEffort.estimatedStartDate}"/></field> + <field name="estimatedCompletionDate"><date-time input-method="time-dropdown" default-value="${workEffort.estimatedCompletionDate}"/></field> <field name="actualStartDate" use-when="parentWorkEffortId!=null"><display type="date-time"/></field> <field name="actualCompletionDate" use-when="parentWorkEffortId!=null"><display type="date-time"/></field> <field name="addButton" use-when="workEffort==null"><submit/></field> |
Hi Atul,
The fix you provided fixes a part of my problem. In the case where I am editing an event, the time is displayed correctly as it is set for the event. In case I want to create a new event, The the estimatedStartDate should be set to the current time, whereas, with the fix provided, it sets it to the current date at midnight. Please guide me through it. Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com On Mon, Jun 21, 2010 at 7:21 PM, Atul Vani <[hidden email]>wrote: > Hi Kranti, > > The patch attached solves your problem. > But I am trying to find a better solution at the framework level. > > -- > Thanks & Regards > Atul Vani > Enterprise Software Developer > HotWax Media Pvt. Ltd. > http://www.hotwaxmedia.com/ > We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for > yourself. > > > Kranti Agrawal wrote: > >> Hi all, >> >> Please follow the following steps to understand the problem - >> 1. Go to WorkEffort -> Calander. >> 2. Add new Event. The date-time field uses a time-dropdown input method. >> This lists the current time both the start and end time. This behavior is >> correct. >> 3. Change the start and end time of the event. Save it. >> 4. Edit the newly created event. Here, on the start and end time of the >> event, the current time is indicated, whereas I think it should display >> the >> time which was set for the event. >> How can this be fixed? >> >> Regards, >> Kranti Agrawal >> Student, IIIT Bangalore >> krantiagrawal.blogspot.com >> >> >> > |
Hi Kranti,
you just need to provide the default-value to form-fields to display, i haven't looked at the code but i think you can do it yourself in the similar way the patch, for a little help, you have 'timeStamp' available in the context which is the current timeStamp. -- Thanks & Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Kranti Agrawal wrote: > Hi Atul, > > The fix you provided fixes a part of my problem. > In the case where I am editing an event, the time is displayed correctly as > it is set for the event. > In case I want to create a new event, The the estimatedStartDate should be > set to the current time, whereas, with the fix provided, it sets it to the > current date at midnight. > Please guide me through it. > > Regards, > Kranti Agrawal > Student, IIIT Bangalore > krantiagrawal.blogspot.com > > > On Mon, Jun 21, 2010 at 7:21 PM, Atul Vani <[hidden email]>wrote: > > >> Hi Kranti, >> >> The patch attached solves your problem. >> But I am trying to find a better solution at the framework level. >> >> -- >> Thanks & Regards >> Atul Vani >> Enterprise Software Developer >> HotWax Media Pvt. Ltd. >> http://www.hotwaxmedia.com/ >> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for >> yourself. >> >> >> Kranti Agrawal wrote: >> >> >>> Hi all, >>> >>> Please follow the following steps to understand the problem - >>> 1. Go to WorkEffort -> Calander. >>> 2. Add new Event. The date-time field uses a time-dropdown input method. >>> This lists the current time both the start and end time. This behavior is >>> correct. >>> 3. Change the start and end time of the event. Save it. >>> 4. Edit the newly created event. Here, on the start and end time of the >>> event, the current time is indicated, whereas I think it should display >>> the >>> time which was set for the event. >>> How can this be fixed? >>> >>> Regards, >>> Kranti Agrawal >>> Student, IIIT Bangalore >>> krantiagrawal.blogspot.com >>> >>> >>> >>> > > |
Free forum by Nabble | Edit this page |