Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

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