StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Problem with UserControl and BO
Problem with UserControl and BO
Post Reply
Like
0
Problem with UserControl and BO
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Trent Taylor
Trent Taylor
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
Glad you found the problem
Reply
Like
0
Rainer Kempf, RK
Rainer Kempf, RK
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 55,
Visits: 1.4K
Hello Trent,
Found Problem
Problem was wrong Initialization-Order
I called a method in Load Container Event and Object was not completly instanciated
I moved my call to Container.New method and it works as expected.
Thanks for your help
Rainer
Reply
Like
0
Trent Taylor
Trent Taylor
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
This sound smore like an issue within the definition of your data sources. But without a sample, it is going to be very difficult for me to determine what you are fighting. If you could please post a simple sample reproducing your issue that would be helpful.
Reply
Like
0
Rainer Kempf, RK
Rainer Kempf, RK
posted 15 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 55,
Visits: 1.4K
Hello,
I had a problem with a UserControl based on SFUserControl.
I use 3 Database. In the BO i set Datasourcekey always to the Databasename.
In my UserControl i dropped some BO to UserControl. All fine.
In Control no problems. I compile Control and Drop it on form.
Setup some Properties in Usercontrol on form and run form.
Form runs with no errors and COntrol works like it should.
Now i close Form.
When i next time load form in Designer i got errormessage.
The DataSourceKey [ERPSYSTEM] is not defined.
Warning An error occurred while creating a new DataLayer for the business object.D:\Projekte.Net\StrataTestForm\StrataTestForm\Form2.Designer.vb
this is Code from Designerfile :
Me.Controls.Add(Me.MksBaseGrid1)
MksBaseGrid1 is my Control. In this Control i had 1 BO where Datasourcekey ="ERPSYSTEM"
If i ignore the Error then Form will run with no errors but i am
not able to modify anything in designer for this form.
So what i wrong ??? I have really no idea
thanks for your help
Rainer
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