﻿<?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?)  » getting the form name that called the BO</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 13:46:35 GMT</lastBuildDate><ttl>20</ttl><item><title>getting the form name that called the BO</title><link>http://forum.strataframe.net/FindPost30217.aspx</link><description>How do I get a reference to the form or process that called the BO from inside the BO? IE... 1 BO can be called from many forms. I want to insert logic in the BO that requires knowing where the BO was called from. Also, I do not want to have to pass a parameter to the BO for this. somethong like this.bo.parent....</description><pubDate>Thu, 04 Aug 2011 06:27:12 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: getting the form name that called the BO</title><link>http://forum.strataframe.net/FindPost30223.aspx</link><description>Glad you got it working.&lt;br/&gt;&lt;br/&gt;But are you sure that this: &lt;br/&gt;&lt;br/&gt;[codesnippet]tblActivityLog.ActivityLog_Source = this.ParentForm.&lt;strong&gt;&lt;font style="background-color: rgb(255, 255, 0);"&gt;Name&lt;/font&gt;&lt;/strong&gt;;[/codesnippet]&lt;br/&gt;&lt;br/&gt;&lt;span&gt;wouldn't get you the desired results?&lt;/span&gt;</description><pubDate>Thu, 04 Aug 2011 06:27:12 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: getting the form name that called the BO</title><link>http://forum.strataframe.net/FindPost30222.aspx</link><description>Got it, here is what is needed:&lt;br/&gt;&lt;br/&gt;tblActivityLog.ActivityLog_Source = this.ParentContainer.ToString();&lt;br/&gt;&lt;br/&gt;&lt;font color="#171717" size="2" face="Consolas"&gt;&lt;font color="#171717" size="2" face="Consolas"&gt;&lt;font color="#171717" size="2" face="Consolas"&gt;&amp;nbsp;&lt;/font&gt;&lt;p&gt;&lt;/font&gt;&amp;nbsp;&lt;/font&gt;&lt;p&gt;&lt;font color="#171717" size="2" face="Consolas"&gt;&lt;font color="#171717" size="2" face="Consolas"&gt;&lt;font color="#171717" size="2" face="Consolas"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;font color="#171717" size="2" face="Consolas"&gt;&lt;font color="#171717" size="2" face="Consolas"&gt;&lt;font color="#171717" size="2" face="Consolas"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description><pubDate>Thu, 04 Aug 2011 05:40:06 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: getting the form name that called the BO</title><link>http://forum.strataframe.net/FindPost30221.aspx</link><description>&lt;font color="#171717" size="2" face="Consolas"&gt;&lt;font color="#171717" size="2" face="Consolas"&gt;&lt;font color="#171717" size="2" face="Consolas"&gt;tblActivityLog.ActivityLog_Source = this&lt;font style="background-color: rgb(255, 255, 0);"&gt;.ParentForm&lt;/font&gt;;&lt;p&gt;&amp;nbsp;&lt;p&gt;Gets "cannot implicitly convert type 'MicroFour.StrataFrame.UI.Windows.Forms.BaseForm' to 'string'&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description><pubDate>Wed, 03 Aug 2011 22:23:43 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: getting the form name that called the BO</title><link>http://forum.strataframe.net/FindPost30220.aspx</link><description>That is strange, Ross. I get it here just fine.&lt;br/&gt;&lt;br/&gt;Would you mind posting a sample of your code and tell us where you are coding it? </description><pubDate>Wed, 03 Aug 2011 19:58:21 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: getting the form name that called the BO</title><link>http://forum.strataframe.net/FindPost30219.aspx</link><description>I need to get the name of the&amp;nbsp; Me.ParentForm and save it to a string. How would I get this value? The is no such property as Me.ParentForm.Name</description><pubDate>Wed, 03 Aug 2011 18:45:44 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: getting the form name that called the BO</title><link>http://forum.strataframe.net/FindPost30218.aspx</link><description>Hi Ross.&lt;br/&gt;&lt;br/&gt;Inside the BO, you will get it using Me.ParentForm</description><pubDate>Wed, 03 Aug 2011 17:10:05 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>