StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Business Object navigating in middle of adding new row
Business Object navigating in middle of adding new row
Post Reply
Like
0
Business Object navigating in middle of adding new row
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Ruchika Garg
Ruchika Garg
posted 13 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 17,
Visits: 70
I have a simple windows form with one primary BO and two child bo's. I have MaintenanceFormToolStrip on the form.
When i want to add new i click new on the MaintenanceFormToolStrip , which puts the controls bound to the parent bo in editable state. When i am entering values in the third control the bo suddenly navigates to next record and the state of the row changes from added to unchanged and then to modified. And the controls are filled with the next record values.When the BO navigates to the next record it does not invoke any events(navigating or navigated).
i know this is very confusing and weird.
Can someone please guide me how to fix it?
Reply
Like
0
Edhy Rijo
E
Edhy Rijo
posted 13 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Ruchika Garg (7/26/2011)
i know this is very confusing and weird.
Yeap, sounds very confusing.
The fastest way to deal with this is to create a small sample application using the StrataFrameSample database to simulate the functionality you are looking for, then post it in the forums so we can see and fix.
You said you have 1 parent and 2 child business objects, here are several questions:
Are you using any control in the form binded to the child BOs?
Are you setting the relationship between child and parent BO somewhere?
Are you handling any BO or Form events related to the BO navigation or alike?
As you can see this could be very tricky to figure out without looking at the code, but once you understand the Business Object logic and concept it is very easy to manage multiple relationships. There are several post in the forums related to that topic.
Edhy Rijo
Reply
Like
0
Ruchika Garg
Ruchika Garg
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 17,
Visits: 70
Thanks for the reply.
The form has a treeview and when some clicks a node on the treeview the right side of the form gets filled with data from the parent and child bo's.
Are you using any control in the form binded to the child BOs? - No none of the controls are bound to the child bo's.
Are you setting the relationship between child and parent BO somewhere? Yes i the parent child relation ship between the bos' is set at the bo level and at the form level.
Are you handling any BO or Form events related to the BO navigation or alike? yes i am and in that event i fill the child bo.
I am working on trying to create a small application and reproduce this issue there.
Reply
Like
0
Edhy Rijo
E
Edhy Rijo
posted 13 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Ruchika,
If you have a Treeview control,
then I am sure in one of the events you are either moving the record pointer and this could be tricky. Definately a quick sample would be the way to go if you can duplicate the problem in the sample and you are using the .Net TreeView control.
Edhy Rijo
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