Instructions for the Implementation of Data Validation

From OpenPetra Wiki
Jump to navigation Jump to search

DOCUMENTATION IS WORK IN PROGRESS

This wiki page is under construction. Information contained on it should not be relied on until this message is no longer present!!!


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