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



Top Method Summary
Options Name Purpose
+ CopyQuestions (handle, handle) Copies questions from a dataset with changes into the actual dataset
+ CopyToOwner (ListQuestion, TableModel, character, character) Copies questions received back from a consumer to the provided table model
+ FinalizeAllQuestions (ListQuestion, TableModel, 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, TableModel) Updates the List of Questions associated with the current record
+ Consultingwerk.Framework.MessageInteraction.ListQuestion GetAllQuestions (TableModel) 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 (TableModel) 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 () returnes 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, TableModel, 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.TableModel
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, TableModel, 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.TableModel
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, TableModel)

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.TableModel
The current TableModel instance
Top

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

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.TableModel
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 (TableModel)

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.TableModel
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-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:29:39