Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2009
    Location
    Istanbul / Turkey
    Posts
    45
    Vote Rating
    0
    hazimdikenli is on a distinguished road

      0  

    Default ext.data.record conditional validation

    ext.data.record conditional validation


    Hello,
    I am working w/ Ext 3.3
    How can I do conditional value checking, on the Ext.data package level, like
    if person is married, require spouse name, otherwise let it be blank.

    The solution I am looking for should be on the data package. (lets say that I dont have much control about how data is edited, but I am responsible for validating it.)
    Ext.Data.Field lets me say allowBlank, true or false. I wonder if I can pass a function there which accepts the record, and returns true or false based on the other fields on the record.

    I am looking for an alternative solutions for this, on the Ext.data package, (on the Store or Record level).

  2. #2
    Sencha User
    Join Date
    Oct 2009
    Location
    Cambridge, UK
    Posts
    164
    Vote Rating
    0
    Uberdude is on a distinguished road

      0  

    Default


    I'd put complex logic like this in a validateForm function.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi