﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Custom relationships</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 25 Sep 2026 18:00:07 GMT</lastBuildDate><ttl>20</ttl><item><title>Custom relationships</title><link>http://forum.strataframe.net/FindPost5057.aspx</link><description>We have a couple of tables to support various types lookups.&amp;nbsp; Here is the schema:&lt;/P&gt;&lt;P&gt;PolTable: (Header Table)&lt;BR&gt;DepartmentID&amp;nbsp;&amp;nbsp;&amp;nbsp; TinyInt&lt;BR&gt;TableNumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Int&lt;BR&gt;Description&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Varchar(50)&lt;/P&gt;&lt;P&gt;PolTableD: (Detail/Child records to PolTable)&lt;BR&gt;DepartmentID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TinyInt&lt;BR&gt;TableNumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Int&lt;BR&gt;LineItem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VarChar(3)&lt;BR&gt;Description&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Varchar(50)&lt;/P&gt;&lt;P&gt;The relationship is a one to many:&lt;BR&gt;PolTable.DepartmentID = PolTableD.DepartmentID&lt;BR&gt;PolTable.TableNumber = PolTableD.TableNumber&lt;/P&gt;&lt;P&gt;In our entry forms we have several fields on the form that look to PolTableD with the current department (determined at logon) and a hardcoded value for PolTableD.TableNumber.&lt;/P&gt;&lt;P&gt;In StrataFrames relationship designer can we specify values instead of table fields to define the relationship?&amp;nbsp; This is an enhancement request I am sure ;)&lt;/P&gt;&lt;P&gt;If not how can we code it once in the BO so when a BO is used on a form with multiple relationships back to PolTableD using differing TableNumber's it is automatically related for our programmers?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ben, Emergitech</description><pubDate>Thu, 07 Dec 2006 11:48:56 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Custom relationships</title><link>http://forum.strataframe.net/FindPost5071.aspx</link><description>[quote]In StrataFrames relationship designer can we specify values instead of table fields to define the relationship?&amp;nbsp; This is an enhancement request I am sure [/quote]&lt;/P&gt;&lt;P&gt;No.&amp;nbsp; This is why StrataFrame is so extensible and interfaces very well with .NET so you can provide additional functionality outside of the norm.&amp;nbsp; This is more than likely something that will not be added to the framework.&lt;/P&gt;&lt;P&gt;If you are referring to data loading, this is a different issue.&amp;nbsp; You can look at the documentation and all of the intrinsic Fill() methods.&amp;nbsp; Additionally there are controls, such as the BusinessLayerLinkManager that will auto load child tables based on an established relationship (within the control).&amp;nbsp;</description><pubDate>Thu, 07 Dec 2006 11:48:56 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>