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
Ivan George Borges
Ivan George Borges
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame MVPs
Posts: 1.9K,
Visits: 21K
Glad you got it working.
But are you sure that this:
tblActivityLog.ActivityLog_Source = this.ParentForm.
Name
;
wouldn't get you the desired results?
Reply
Like
0
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 153,
Visits: 462
Got it, here is what is needed:
tblActivityLog.ActivityLog_Source = this.ParentContainer.ToString();
Reply
Like
0
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 153,
Visits: 462
tblActivityLog.ActivityLog_Source = this
.ParentForm
;
Gets "cannot implicitly convert type 'MicroFour.StrataFrame.UI.Windows.Forms.BaseForm' to 'string'
Reply
Like
0
Ivan George Borges
Ivan George Borges
posted 13 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
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
posted 13 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 13 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame MVPs
Posts: 1.9K,
Visits: 21K
Hi Ross.
Inside the BO, you will get it using Me.ParentForm
Reply
Like
0
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
posted 13 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
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
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