Time Picker in Ofbiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Time Picker in Ofbiz

Ritesh K Kaushik
Hi,

 My requirment is to get a time-picker in ofbiz.I don't want to use external java scripts.
  Does anyone has an idea how to get a time picker in Ofbiz?
Reply | Threaded
Open this post in threaded view
|

Re: Time Picker in Ofbiz

Paul Piper
Hi,

I am not sure I understand the question, but basically there is a datetime picker built into ofbiz. The way it works, or rather, the way any datetimepicker works is by enhancing the standard html input field.

Within ofbiz this is done through the renderDateFindField macro that is available through htmlFormMacroLibary.ftl. Essentially that is also what is being called when you generate the field through Minilang.

Minilang example :

        <field name="fromDate" title="${uiLabelMap.CommonFromDate}"><date-time default-value="${groovy: org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/></field>

generates a field as generated here: /marketing/control/EditContactListParty


Unfortunately, all these solutions are actually based on Javascript, however. There is no standard date-time-picker in html available.