How to set id for calendar input box? since calendar can not pop up

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

How to set id for calendar input box? since calendar can not pop up

edward wang
Hi Folks,

I am using old ofbiz.
Right now there is a problem.

in Order-->Reports.

there are a few of calendar input boxes.  From Date and Thru Date
but only the first  calendar pair input box (  From Date and Thru Date)  can
pop up calendar .

The rests can not pop up calendar.
When I view source file:

the ids are the same for different report areas, i think this is a reason.
id="fromOrderDate", or  id="thruOrderDate.

<input type="text" id="fromOrderDate" maxlength="30" size="25"
title="Format: MM/dd/yy HH:mm:ss.S" name="fromOrderDate" class="inputBox"
gtbfieldid="185">
<input type="text" id="thruOrderDate" maxlength="30" size="25"
title="Format: MM/dd/yy HH:mm:ss.S" name="thruOrderDate" class="inputBox"
gtbfieldid="186">

But in ReportForms.xml file. there is no id set

  <field name="fromOrderDate"
title="${uiLabelMap.CommonFromDate}"><date-time type="timestamp"/></field>
        <field name="thruOrderDate"
title="${uiLabelMap.CommonThruDate}"><date-time type="timestamp"/></field>


I don't know how to set ids.


I checked the new version of ofbiz. ids are different for different report
areas in reports page,.
<input type="text" id="SalesByStoreReport_fromOrderDate" maxlength="30"
size="25" title="Format: yyyy-MM-dd HH:mm:ss.SSS" name="fromOrderDate"
gtbfieldid="79">

<input type="text" id="OpenOrderItemsReport_fromOrderDate" maxlength="30"
size="25" title="Format: yyyy-MM-dd HH:mm:ss.SSS" name="fromOrderDate"
gtbfieldid="84">

where are these ids like SalesByStoreReport_fromOrderDate and
OpenOrderItemsReport_fromOrderDate from?
Thanks,

Chwang