StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
getting the form name that called the BO
getting the form name that called the BO
Post Reply
Like
0
getting the form name that called the BO
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
posted 14 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 153,
Visits: 462
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....
Reply
Like
0
Replies
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 153,
Visits: 462
I need to get the name of the Me.ParentForm and save it to a string. How would I get this value? The is no such property as Me.ParentForm.Name
Reply
Like
0
Ivan George Borges
Ivan George Borges
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame MVPs
Posts: 1.9K,
Visits: 21K
That is strange, Ross. I get it here just fine.
Would you mind posting a sample of your code and tell us where you are coding it?
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
getting the form name that called the BO
Ross L. Rooker, Sr.
-
14 Years Ago
Hi Ross. Inside the BO, you will get it using Me.ParentForm
Ivan George Borges
-
14 Years Ago
I need to get the name of the Me.ParentForm and save it to a string....
Ross L. Rooker, Sr.
-
14 Years Ago
That is strange, Ross. I get it here just fine. Would you mind...
Ivan George Borges
-
14 Years Ago
tblActivityLog.ActivityLog_Source = this .ParentForm ; Gets "cannot...
Ross L. Rooker, Sr.
-
14 Years Ago
Got it, here is what is needed: tblActivityLog.ActivityLog_Source =...
Ross L. Rooker, Sr.
-
14 Years Ago
Glad you got it working. But are you sure that this:...
Ivan George Borges
-
14 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search