PanelManagerPage Deactivation event?


Author
Message
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
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
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
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 w00t.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Edhy Rijo - 15 Years Ago
Ivan George Borges - 15 Years Ago
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

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search