Navigation with the MaintenanceFormToolStrip Control


Author
Message
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
I removed the default control on the DevEx maintenance form and replaced it with the MaintenanceFormToolStrip control.  I have done this before without any issues.  Today, however, I have issues.  (Let's not dwell on that statement, ok?  Hehe )

My problem is that the window opens up without the navigation buttons lit up.  I can edit/add or delete, but not navigate.  If I do click edit, then undo, I have navigation back.  If I force the BO to navigate to the end of the collection (MoveLast) via code (FormLoad event), then the navigation buttons show up, but the FIRST record is showing on the screen...not the last...and the details in a list view reflect the LAST record...not the first.  This is quite odd.  If I then navigate away from the record, everything snaps back into shape and works as expected after that.  The workaround is quite simple and acceptable for little 'ole me, but not so acceptable to those nutty QA guys.  And, my boss just may mention something about it, too.

Is there a particlar property that I need to look at; or, perhaps I may have done something in my code to make this behavior occur?  Any direction on this would be much appreciated!

Thanks,
Bill

Replies
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hey Bill.

Just guessing. Have you got a DateTimePicker dropped on your form trying to deal with a NULL date?

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Hey Ivan,

Nope.  No date fields on this form.

The issue reported here (http://forum.strataframe.net/Topic13178-10-1.aspx) pops up every time I make a change to this form, too.  Quite annoying.

Oh, I did revert my changes on this form to last night (via VisualSVN...glad I added this all in to source code control yesterday).  It works.  Now, I am adding all my changes back in--one at a time--in order to see which one may have broken the form.  Tedious, but I need to find an answer so that I do not duplicate my problem elsewhere.

Bill

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Wow!  The code that I added to fix one problem (http://forum.strataframe.net/Topic13645-7-1.aspx) has created this one.  That's no fun.  Why would this code...

private void SketchPictureEdit_EditValueChanged(object sender, EventArgs e)
{
   
if (SketchPictureEdit.EditValue == new byte[] { })
    {
       
this.partsBO1.sketch = new byte[] { };
        SketchPictureEdit.EditValue =
string.Empty;
    }
   
else
   
{
       
this.partsBO1.sketch = (byte[])SketchPictureEdit.EditValue;
    }
}

...prevent the navigation from working.  I don't see the connection.

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
The first thing that the EditValueChanged event needs to check is the editing state of the BO.  If adding or editing, then the code can run; otherwise, it should skip it.  The editing state will be changed by the following line of code:

this.partsBO1.sketch = (byte[])SketchPictureEdit.EditValue;

That is why my navigation disappeared.  And, also explains the confirmation popup when closing the window.

Whew!  Glad that's over.
Bill

(note: cross-posted on purpose--http://forum.strataframe.net/Topic13645-7-1.aspx)

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Check the answer on the cross post Smile
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Well, it might not be an answer, but it's a reply at least Wink
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Glad you got it going.  Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Bill Cunnien - 17 Years Ago
Bill Cunnien - 17 Years Ago
StrataFrame Team - 17 Years Ago
Bill Cunnien - 17 Years Ago
Bill Cunnien - 17 Years Ago
Bill Cunnien - 17 Years Ago
Ivan George Borges - 17 Years Ago
                         Hey Ivan, Nope. No date fields on this form. The issue reported here...
Bill Cunnien - 17 Years Ago
                             Wow! The code that I added to fix one problem (...
Bill Cunnien - 17 Years Ago
                                 The first thing that the EditValueChanged event needs to check is the...
Bill Cunnien - 17 Years Ago
                                     Check the answer on the cross post :)
StrataFrame Team - 17 Years Ago
                                         Well, it might not be an answer, but it's a reply at least ;)
StrataFrame Team - 17 Years Ago
                                     Glad you got it going. :)
Trent L. Taylor - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search