StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
PanelManagerPage Deactivation event?
PanelManagerPage Deactivation event?
Post Reply
Like
0
PanelManagerPage Deactivation event?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
Topic Details
Share Topic
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Hi all,
I am working on a form with an interface look similar to the SF Localization & Messaging Editor, with a TreeView on the left and a Panel Manager on the right side.
Problem I have is how would I know when a page is being deactivated?
Ex: User is modifying a record in Page A, then user clicks on another node which will activate Page B, but there is dirty data in the BO for Page A.
Where do I put code to validate above scenario and avoid Page B from being activated until the conflict have been resolved in Page A?
The same thing is done in the Localization & Messaging Editor, if I am modifying a message then click on another node while the BO is dirty a broken rule is created and I cannot leave that page until I save or cancel the record. In which event should I put the code to validate this condition?
Thanks!
Edhy Rijo
Reply
Like
0
Reply
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Ivan George Borges (05/31/2010)
Every treeview I have worked with I populated with specific BOs, so I too added the PKs to the node.Tag and usually a BO.field_name to the Node.Text. After that, I only took care of the NodeStateChanged and did whatever was necessary when the node.StateImageIndex was Checked or Unchecked.
Thanks Ivan,
Yeap, in my case, there will be more data manipulation like adding/deleting/updating records which involve the same manipulation for the treeview nodes in order to keep it in sync with the current view, it will be fun, at least so far it looks much easier than when I did it with VFP
.
Edhy Rijo
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
PanelManagerPage Deactivation event?
Edhy Rijo
-
15 Years Ago
Hey Edhy. Maybe you could put code into your Treeview BeforeSelect...
Ivan George Borges
-
15 Years Ago
Hi Ivan,
Thanks, that will work. I was focused on the page...
Edhy Rijo
-
15 Years Ago
Glad it helped, Edhy. ;)
Ivan George Borges
-
15 Years Ago
Hi Ivan,
Moving this post more on the TreeView control I...
Edhy Rijo
-
15 Years Ago
Hi Edhy. I have worked with some treeviews so far, but never...
Ivan George Borges
-
15 Years Ago
[quote][b]Ivan George Borges (05/31/2010)[/b][hr]Every treeview I have...
Edhy Rijo
-
15 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