Namespace: Consultingwerk.OERA
Interface 
ITableModelQuestionProvider Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implemented by: Consultingwerk.OERA.TableModelQuestionProvider

File:ITableModelQuestionProvider
Purpose:Interface for services deserializing or serializing the
ListQuestions associated with a buffer
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Thu Mar 28 06:24:08 CET 2019
Notes:See TableModel:GetQuestions(), FinalizeQuestions() methods
Purpose: Copies questions from a dataset with changes into
the actual dataset
Notes: Called after SaveChanges () returnes 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)
+ 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 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 () returnes a row ERROR

Parameters:
phChangesDataset HANDLE
The handle of the dataset with changes
phDataset 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

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 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       15.04.2024 05:52:42