Instructions for the Implementation of Data Validation

From OpenPetra Wiki
Revision as of 13:12, 15 May 2012 by Christiankatict (talk | contribs) (Created page with '==Overview== In OpenPetra, different aspects of Data Validation need to be implemented in several places to make the whole 'Data Validation Framework' work - on Client Side and S…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

In OpenPetra, different aspects of Data Validation need to be implemented in several places to make the whole 'Data Validation Framework' work - on Client Side and Server Side.

The sections below detail what needs to be done and in which places to make Data Validation work. Following the way that is presented in those sections will help you in creating Data Validation and should help the whole development team to code Data Validation in a common and standardised way.


Client Side

YAML File

TODO

*.ManualCode.cs File

TODO

For Information Only: Generated Form File

TODO

Shared Libraries

TODO

Special Functionality
Accessing a Cacheable DataTable
  • Use Ict.Petra.Shared.TSharedDataCache

TODO

Accessing Server-side Functionality that is exposed to the Client

Example: Calling the TServerLookup.TMPartner.VerifyPartner Method

  • PetraClientMain.cs, InitialiseClasses: TSharedPartnerValidationHelper.VerifyPartnerDelegate = @TServerLookup.TMPartner.VerifyPartner;
  • Ict.Petra.Shared.MPartner.Validation.TSharedPartnerValidationHelper
    • public static TVerifyPartner VerifyPartnerDelegate
    • public static bool VerifyPartner

TODO

Server Side

TODO