Namespace: Consultingwerk.OERA
Class 
TableModelQuestionProvider Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.OERA.ITableModelQuestionProvider

File:TableModelQuestionProvider
Purpose:Implementation of the ITableModelQuestionProvider service
based on the Consultingwerk SmartUiAction implementation
Description:Implements an Adapter between the TableModel:Get...Questions
methods and the Consultingwerk SmartUiAction implementation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Thu Mar 28 06:29:52 CET 2019
Notes:See TableModel:GetQuestions(), FinalizeQuestions() methods
Purpose: Copies questions from a dataset with changes into
the actual dataset
Notes: Called after SaveChanges () returns a row ERROR



Top Method Summary
Options Name Purpose
+ CopyQuestions (handle, handle) Copies questions from a dataset with changes into the actual dataset
+ CopyToOwner (ListQuestion, ITableModel, character, character) Copies questions received back from a consumer to the provided table model
+ FinalizeAllQuestions (ListQuestion, ITableModel, character) Updates the List of Questions associated for all records Iterates the query of the DatasetModel (does not perform batching)
# FinalizeBufferQuestions (ListQuestion, handle) Updates the List of Questions associated with the current record
+ FinalizeCurrentQuestions (ListQuestion, ITableModel) Updates the List of Questions associated with the current record
+ Consultingwerk.Framework.MessageInteraction.ListQuestion GetAllQuestions (ITableModel) Returns the List of Questions associated with the all records Iterates the query of the DatasetModel (does not perform batching)
+ Consultingwerk.Framework.MessageInteraction.ListQuestion GetBufferQuestions (handle) Returns the List of Questions associated with the current record
+ Consultingwerk.Framework.MessageInteraction.ListQuestion GetCurrentQuestions (ITableModel) Returns the List of Questions associated with the current record


Method Detail
Top

PUBLIC CopyQuestions (handle, handle)

Purpose: Copies questions from a dataset with changes into
the actual dataset
Notes: Called after SaveChanges () returns a row ERROR

Parameters:
phFromDataset HANDLE
The handle of the dataset with changes
phToDataset HANDLE
The handle of the original dataset
Top

PUBLIC CopyToOwner (ListQuestion, ITableModel, character, character)

Purpose: Copies questions received back from a consumer to the
provided table model
Notes:

Parameters:
poQuestions Consultingwerk.Framework.MessageInteraction.ListQuestion
The list of questions received from the UI
poTableModel Consultingwerk.OERA.ITableModel
The reference to the target TableModel instance
pcOwnerId CHARACTER
The ID of the Owner
pcContextField CHARACTER
The name of the context field name (e.g. SelfHdl)
Top

PUBLIC FinalizeAllQuestions (ListQuestion, ITableModel, character)

Purpose: Updates the List of Questions associated for all records
Iterates the query of the DatasetModel (does not perform batching)
Notes: See the Consultingwerk.Framework.MessageInteraction.IMessageInteractionService
The List of questions needs to be serialized to the Buffer using the
Consultingwerk.OERA.ITableModelQuestionProvider service implementation

Parameters:
poQuestions Consultingwerk.Framework.MessageInteraction.ListQuestion
The list of questions to update the buffer's from
poTableModel Consultingwerk.OERA.ITableModel
The current TableModel instance
pcContextField CHARACTER
The name of the context field name (e.g. SelfHdl)
Top

PROTECTED FinalizeBufferQuestions (ListQuestion, handle)

Purpose: Updates the List of Questions associated with the current record
Notes: See the Consultingwerk.Framework.MessageInteraction.IMessageInteractionService
The List of questions needs to be serialized to the Buffer using the
Consultingwerk.OERA.ITableModelQuestionProvider service implementation

Parameters:
poQuestions Consultingwerk.Framework.MessageInteraction.ListQuestion
The list of questions to store in the record
phBuffer HANDLE
The handle of the current buffer
Top

PUBLIC FinalizeCurrentQuestions (ListQuestion, ITableModel)

Purpose: Updates the List of Questions associated with the current record
Notes: See the Consultingwerk.Framework.MessageInteraction.IMessageInteractionService
The List of questions needs to be serialized to the Buffer using the
Consultingwerk.OERA.ITableModelQuestionProvider service implementation

Parameters:
poQuestions Consultingwerk.Framework.MessageInteraction.ListQuestion
The list of questions to store in the record
poTableModel Consultingwerk.OERA.ITableModel
The current TableModel instance
Top

PUBLIC Consultingwerk.Framework.MessageInteraction.ListQuestion GetAllQuestions (ITableModel)

Purpose: Returns the List of Questions associated with the all records
Iterates the query of the DatasetModel (does not perform batching)
Notes: See the Consultingwerk.Framework.MessageInteraction.IMessageInteractionService
The List of questions needs to be deserialized from the Buffer using the
Consultingwerk.OERA.ITableModelQuestionProvider service implementation

Parameters:
poTableModel Consultingwerk.OERA.ITableModel
The reference to the TableModel instance
Returns Consultingwerk.Framework.MessageInteraction.ListQuestion
The list of Questions associated with all records
Top

PUBLIC Consultingwerk.Framework.MessageInteraction.ListQuestion GetBufferQuestions (handle)

Purpose: Returns the List of Questions associated with the current record
Notes: See the Consultingwerk.Framework.MessageInteraction.IMessageInteractionService
The List of questions needs to be deserialized from the Buffer using the
Consultingwerk.OERA.ITableModelQuestionProvider service implementation

Parameters:
phBuffer HANDLE
The handle of the buffer with the current record
Returns Consultingwerk.Framework.MessageInteraction.ListQuestion
The list of Questions associated with the current record
Top

PUBLIC Consultingwerk.Framework.MessageInteraction.ListQuestion GetCurrentQuestions (ITableModel)

Purpose: Returns the List of Questions associated with the current record
Notes: See the Consultingwerk.Framework.MessageInteraction.IMessageInteractionService
The List of questions needs to be deserialized from the Buffer using the
Consultingwerk.OERA.ITableModelQuestionProvider service implementation

Parameters:
poTableModel Consultingwerk.OERA.ITableModel
The reference to the TableModel instance representing the current record
Returns Consultingwerk.Framework.MessageInteraction.ListQuestion
The list of Questions associated with the current record


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:00:44