TXFAHostModelState

Unit: HPDFXFAHostModel

Declaration

TXFAHostModelState= record
  Name, Version, AppType, Platform, Variation, Language, Title: UnicodeString;
  FocusIdentity: AnsiString;
  NumPages, CurrentPage: Integer;
  CalculationsEnabled, ValidationsEnabled: Boolean;
  class function Default: TXFAHostModelState; static;
end;

Behaviour

Default enables calculation and validation, identifies the host as HotPDF with Runtime application type, WIN platform and Full variation, and leaves the application version, language, title and focus empty

The embedding application supplies its actual application metadata; version identifies that application

Page indices start at zero, NumPages is nonnegative, and a document with zero pages uses CurrentPage zero

FocusIdentity identifies a live field using the script session's stable occurrence identity

TXFAWidgetRuntimeOptions.HostModel supplies initial application metadata, title and calculation/validation flags; TXFAWidgetRuntime.HostModel returns the current state, with the actual layout page count and current live focus identity

Mutable title, page and flags participate in runtime snapshot rollback; interaction state belongs to the runtime and is not encoded into saved XDP data

Related APIs

HPDFXFAHostModelJavaScript, TXFAJavaScriptSession and Explicit XFA Host Transport