validations

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

validations

myofbiz
Hii all

Can someone explain me how we get the error messages..Where do we do the validations for the fields..

Thankyou



     
Reply | Threaded
Open this post in threaded view
|

Re: validations

Ravindra Mandre
Adithi,
You can use validations in FTL files by including Validation file into your screen file. if this is not sufficient then please provide some more information on your requirement.

--
Thanks & Regards,

Ravindra Mandre
HotWax Media, Inc.
http://www.hotwaxmedia.com
[hidden email]
-------------------------------------------
Mobile   : +91 - 9300023686

Reply | Threaded
Open this post in threaded view
|

Re: validations

Divesh Dutta
In reply to this post by myofbiz
Hi Adithi,
validations for field can be done using EVENTS. you can refer practice
applications.you can refer this below given link:
http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application
In part-3 you may get more details about EVENTS.Probably this may solve
your problem.

Thanks and Regards
Divesh Dutta
HotWax Media, Inc.
adithi agarwal wrote:

> Hii all
>
> Can someone explain me how we get the error messages..Where do we do the validations for the fields..
>
> Thankyou
>
>
>
>      
>  
Reply | Threaded
Open this post in threaded view
|

Re: validations

Surya Kusumakar-3
Hello Adithi,
Once your control has been passed through FTLand form ,validations  can
be done  at events using Simple Map Processors like this :
<simple-map-processor name="createPersonMap">
        <process field="firstName">
            <copy/>
                <not-empty>
                    <fail-property
property="PracticeFirstNameMissingError" resource="PracticeUiLabels"/>
                </not-empty>
        </process>  
        <process field="middleName"><copy/></process>
        <process field="lastName">
            <copy/>
                <not-empty>
                    <fail-property
property="PracticeLastNameMissingError" resource="PracticeUiLabels"/>
                </not-empty>
        </process>
    </simple-map-processor>
 and even in form you can specify which field is required :
<field name="salutation" required-field="true"><text/></field>
and in service :
<attribute name="firstName" mode="IN" type="String" optional="false"/>
This optional ="false" specifies this particular field is compulsory.

--
Thanks and Regards
Surya Kusumakar
Hotwax Media Pvt Ltd.
www.hotwaxmedia.com
Divesh Dutta wrote:

> Hi Adithi,
> validations for field can be done using EVENTS. you can refer practice
> applications.you can refer this below given link:
> http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application 
>
> In part-3 you may get more details about EVENTS.Probably this may
> solve your problem.
>
> Thanks and Regards
> Divesh Dutta
> HotWax Media, Inc.
> adithi agarwal wrote:
>> Hii all
>>
>> Can someone explain me how we get the error messages..Where do we do
>> the validations for the fields..
>>
>> Thankyou
>>
>>
>>
>>        
>