Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    BatchUploader - how to localize server validation?

    SmartClient 8.0 Power

    modify BatchUploader sample adding to gridProperties:
    Code:
    dateFormatter: "toEuropeanShortDate",
    dateTimeFormatter: "toEuropeanShortDateTime",
    dateInputFormat: "DMY"
    then use this .csv file:
    Code:
    "nextShipment","category","itemName","itemID","unitCost","description","SKU","inStock","units"
    "2009-01-21","Widget","Large grey widget",,0.41,"","45300","","EACH"
    "17/11/2008","Giz0x0D0Amo","Small blue gizmo",,-0.47,"","90600","","Ea"
    "","Gizmo","Large green gizmo",,0.61,"","135900","","Ea"
    "","Widget","Small red widget",,0.58,"","190000","","Ea"
    a) the 2nd date gets a validation error (not localized as the other validation error messages BTW), and the first not.
    b) But if you try calling validateRow...either rows pass validation.

    in case (a) the validation error arrives from server...how could I "localize" this?

    in case (b), I wonder why first date passes validation.

    But the problem is that the DD/MM/YYYY date gets a server validation error and nothing gets committed...without a warning client side. But, if I edit the date, then it gets committed! What's happening?
    Last edited by claudiobosticco; 16 Jun 2011, 06:47.

    #2
    Maybe the problem is in the parsing of the string representing a Date by the BatchUploader? Is it possible to localize it?

    Comment

    Working...
    X