Hi all,
What is the correct place to write the skipDatasourceValidateWrite method??
Actually I have a custom tab page, added to standard form(here SalesTable)
Where I am displaying data, which is actually not a particular record but I am displaying through a query by grouping records based on some fields and that table have some mandatory fields,
(These records actually shows the inventory information for the item in salesLine)
The table here is IntercompanyInventSum, where InventDimId(and few more fields), is mandatory, but I am grouping records from InventDim, based on site and warehouse, and creating Temp instance in this table, so InventDimId cannot have a particular value.
This tab page is only for viewing purpose, no write, edit or delete operations are to be performed, but when I click on save, It gives a warning - 'Field Dimension number' must be filled in'.......
Where Dimension number is nothing but InventDimId.
These validations are done in the ValidateWrite method, so I want to skip ValidateWrite call.
I tried calling skipDatasourceValidateWrite() from init of that dataSource, also AllowEdit, AllowCreate, AllowDelete......are set to 'NO'.
Any suggestions?
Thanks in advance,
Hardik