SubfileRecordModel class | QSYS API Reference Guide

Defines the SubfileRecordModel class

Namespace: ASNA.QSys.Expo.Model Assembly: ASNA.QSys.Expo.Model.dll

Inheritance: Object –> RecordModel

Remarks

SubfileRecordModel is a specialized class based on RecordModel.

The following excerpt shows the MSGSF SubfileRecordModel class, which describes the fact that this Subfile Record is the Message Subfile, which contains three fields: @MSGKY, @PGMQ and MessageText.

[
    SubfileRecord(IsMessageSubfile = true)
]
public class MSGSF_Model : SubfileRecordModel
{
    [Char(4, Alias = "@MSGKY")]
    public string aMSGKY { get; private set; }

    [Char(10, Alias = "@PGMQ")]
    public string aPGMQ { get; private set; }

    [Char(128)]
    public string MessageText { get; private set; }

}

Notes:

  1. SubfileRecordModel classes are expressed in the Model as nested C# classes inside their corresponding SubfileControl records.

  2. The field MessageText is added to the Subfile by the Migration process, to implement the assumed place (by IBM i design) where messages are displayed.

Constructors

Name Description
SubfileRecordModel(Int32) Initializes a new instance of the class SubfileRecordModel to the row-number initial value

SubfileRecordModel(Int32)

Initializes a new instance of the class SubfileRecordModel to the row-number initial value

SubfileRecordModel(Int32)

Parameters

Type Parameter name Description
Int32 rowNumber Initial row-number

Properties

Type Name Description
Int32 _RecordNumber Gets or sets the Record Number