Namespace: OpenEdge.DataAdmin.DataSource
Class
FieldChildDataSource
Parent classes:
Inherits: OpenEdge.DataAdmin.DataSource.FieldDataSource

/* Copyright (c) 2013 by progress Software Corporation.
/*
/* all rights reserved. no part of this program or document
/* may be reproduced in any form or by any means without
/* permission in writing from progress Software Corporation.
Purpose:data source for field as child of index-field
Author(s):hdaniels
Created:Jul 2013
Notes:extended to have _field first.
(probably not important at all performance wise...)




Method Summary
Options Name Purpose
AfterFieldRow (dataset-handle)
CHARACTER ColumnSource (character) /* undo the GetMappingHack in the query expression (blind assumption that the first one is the tablename - defined by dataset relation)*/
CHARACTER GetMappingHack () /* The dataset gives error if the paret join is mapped across multiple source tables when this is a child relation, because the fill-string generation requires that all fields in the parent relation is mapped to the source, so temporarily map the Tablename to the FieldName The columnSource override below fixes this back again so the query returns correct data */
PrepareBuffer (handle) /* override to set replaced false in case prepare is called again (not very common... ) */

Constructor Summary
Options Name Purpose
FieldChildDataSource () /* child of index - this is already filtered by parent so DatabaseInfo:FileExpression is not really necessary */


Method Detail
Top

AfterFieldRow (dataset-handle)

Parameters:
hds DATASET-HANDLE
Top

CHARACTER ColumnSource (character)

/* undo the GetMappingHack in the query expression
(blind assumption that the first one is the tablename - defined by dataset relation)
Parameters:
pcColumn CHARACTER
Returns CHARACTER
Top

CHARACTER GetMappingHack ()

/* The dataset gives error if the paret join is mapped across multiple source tables when
this is a child relation, because the fill-string generation requires that all fields in the parent
relation is mapped to the source, so temporarily map the Tablename to the FieldName
The columnSource override below fixes this back again so the query returns correct data
Returns CHARACTER
Top

PrepareBuffer (handle)

/* override to set replaced false in case prepare is called again (not very common... )
Parameters:
phBuffer HANDLE


Constructor Detail
Top

FieldChildDataSource ()

/* child of index - this is already filtered by parent so DatabaseInfo:FileExpression is not really necessary


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15