ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shubham Dubey <shubham.du...@hotwaxmedia.com>
Subject Re: Where from the field id is getting populated in an xml file form?
Date Tue, 08 Jun 2010 05:30:02 GMT
If you specify your own id name then it gets displayed else it is 
generated as follows
 
 see : ModelFormField.java  ( 1102  )


 public String getIdName() {
        if (UtilValidate.isNotEmpty(idName)) {
            return idName;
        } else {
            *return this.modelForm.getName() + "_" + this.getFieldName();*
        }
    }


Thanks &  Regards:
Shubham Dubey
Enterprise Software Developer
Hotwax Media Pvt. Ltd.
www.hotwaxmedia.com


Shubham Dubey wrote:
> Hi Deepika
>
> This id is generated as follows
> id= formName +"_" + fieldName
>
>
>
> Thanks
> Shubham Dubey
>
>
> Deepika1234 wrote:
>> In form  CommForms.xml at no place <auto-fields-service >  is specified.
>> Please let me know from where the form id is getting populated in the 
>> view
>> source.
>> <forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd" 
>>
>>    <form name="EditCommEvent" type="single" 
>> target="updateCommunicationEvent"
>> default-map-name="communicationEvent">
>>         <alt-target target="createCommunicationEvent"
>> use-when="communicationEvent==null"/>
>>                
>> ------------------------------------------------------------------
>> <field name="roleTypeIdFrom" widget-style="length1">
>>             <drop-down no-current-selected-key="_NA_">
>>                 <entity-options description="${description}"
>> entity-name="RoleType" key-field-name="roleTypeId">
>>                     <entity-order-by field-name="description"/>
>>                 </entity-options>
>>             </drop-down>
>>         </field>
>>                  <field name="roleTypeIdTo" position="2" 
>> widget-style="length1" >
>>             <drop-down no-current-selected-key="_NA_">
>>                 <entity-options description="${description}"
>> entity-name="RoleType" key-field-name="roleTypeId">
>>                     <entity-order-by field-name="description"/>
>>                 </entity-options>
>>             </drop-down>
>>         </field>
>>
>>
>>
>>   

Mime
View raw message