StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Reading BO that is a property of a class
Reading BO that is a property of a class
Post Reply
Like
0
Reading BO that is a property of a class
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Greg McGuffey
Greg McGuffey
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 2K,
Visits: 6.6K
Glad you got it working!
Reply
Like
0
Ian Johnston
Ian Johnston
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 77,
Visits: 470
Had to declare it as
public
BusinessObjects.
Light_controlBO
LightBOname
Worked great.
Thanks
Reply
Like
0
Greg McGuffey
Greg McGuffey
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 2K,
Visits: 6.6K
You would just create a property that has the type of your BO.
public LightBO LightBOname { get; set; }
They you have a strongly typed property that you can use like:
string
pn =
this
.LightBOname
.light_com_port
;
You'd have to do the fill of the BO at the right time of course, but when doing that you again just access the fill method directly:
this.LightBOname.MyFillMethod();
Reply
Like
0
Ian Johnston
Ian Johnston
posted 14 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 77,
Visits: 470
Is there a way to use a BO as a property on a class and read the data? I thought I saw a constuct like
string
pn = ((
this
.LightBOname)+
".light_com_port"
);
where LightBOName is a property on the subclass of
System.IO.Ports.
SerialPort
pn is assigned the string "LightBO1.light_com_port" instead of Com9.
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