Unit 'msedb' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#msegui]

tdscontroller

[Properties (by Name)] [Methods (by Name)]

Extension attached to every MSEgui dataset (tmsesqlquery, tmsebufdataset...) through its controller property

Declaration

Source position: msedb.pas line 1412

type tdscontroller = class(tactivatorcontroller,idsfieldcontroller)

public

  constructor create();

  destructor destroy; override;

  function isutf8;

  function getfieldar();

  function filtereditkind;

  procedure beginupdate;

  procedure endupdate;

  function locate();

  procedure appendrecord();

  procedure appendrecord1();

  procedure appenddata();

  procedure getfieldclass();

  procedure beginfilteredit();

  procedure clearfilter;

  procedure endfilteredit;

  procedure begindisplaydata;

  procedure enddisplaydata;

  function getcanmodify;

  function updatesortfield();

  procedure modified;

  procedure dataevent();

  property recno: Integer; [rw]

  property recnozerobased: Integer; [rw]

  property recnooffset: Integer; [r]

  function findrecno();

  function findrecnozerobased();

  function moveby();

  function islastrecord;

  procedure internalinsert;

  procedure internaldelete;

  procedure internalopen;

  procedure internalclose;

  procedure closequery();

  function post();

  function delete();

  function posting;

  function posting1;

  procedure postcancel;

  procedure cancel;

  function canceling;

  function refreshing;

  function deleting;

  function emptyinsert;

  procedure refresh();

  procedure checkrefresh;

  procedure copyrecord();

  function copying;

  function assql();

  

Converts a value to an SQL literal in the syntax expected by the connected database

  function assqlcurrency(); overload;

  function assqldate();

  function assqltime();

  property noedit: Boolean; [rw]

  property noinsert: Boolean; [rw]

  property noappend: Boolean; [rw]

  property noupdate: Boolean; [rw]

  property nodelete: Boolean; [rw]

  property asmsestring []: msestring; [rw]

published

  property fields: tpersistentfields; [rw]

  

Indexing dataset.fields[n] instead of fieldbyname is faster but relies on a stable field order

  property options: datasetoptionsty; [rw]

  property onstatechanged: datasetstatechangedeventty; [rw]

  property onupdatemasteredit: masterdataseteventty; [rw]

  property onupdatemasterinsert: masterdataseteventty; [rw]

  property onbeforepost: tdatasetnotifyevent; [rw]

  property onafterpost: afterdbopeventty; [rw]

  property onbeforedelete: tdatasetnotifyevent; [rw]

  property onafterdelete: afterdbopeventty; [rw]

  property onbeforecopyrecord: tdatasetnotifyevent; [rw]

  property onaftercopyrecord: tdatasetnotifyevent; [rw]

end;

Inheritance

tdscontroller

  

Extension attached to every MSEgui dataset (tmsesqlquery, tmsebufdataset...) through its controller property

|

tactivatorcontroller,idsfieldcontroller

|

tlinkedpersistent

|

tnullinterfacedpersistent,iobjectlink

|

tvirtualpersistent,iunknown

|

tpersistent

|

TObject

Description

Extension attached to every MSEgui dataset (tmsesqlquery, tmsebufdataset...) through its controller property. It gives all datasets a common interface on top of tdataset: msestring (Unicode) handling of text fields, workarounds and extensions, options such as dso_local (in-memory dataset without database), and the persistent fields.

MSEgui knows three kinds of fields:

As soon as one persistent field exists, no field is created automatically: all the needed fields must be persistent. Persistent fields can be of kind calculated (computed in oncalcfields each time they are needed) or internal calc (stored in the dataset but not transferred to the server, useful to keep a selection state or values prepared for a report).


Documentation generated on: 2026-10-03