FocusControlOnAdd, FocusControlOnEdit


Author
Message
Scott
Scott
StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
I seems that the focuscontrolonadd and focuscontrolonedit are not behaving the same way as they did since the update.  Control would be moved to the control selected.  Is there a new setting that I am missing.  I am using a maintenance form.
StrataFrame Team
S
StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Nope, you're not missing anything, I just tried it in the sample and it works on this end. Do you have the control in a parent container, like a user control? Or is this on a child form using the ChildFormDialog?
Scott
Scott
StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
When I create a new form everything works just fine.  I must have messed something up when I did the update.  Is there anything that I should be looking at?
StrataFrame Team
S
StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Not that I can think of... I'm sure you rebuilt your project before you ran it after you got the update installed. The editing state changed event handler's signature changed, so if the project wasn't rebuilt before you ran it, it might not work properly. If you have a handler on the editing state changed, then it's possible you might be overriding what's happening.



If you're doing this on a child form dialog, then it's possible that the event handlers might not be getting copied correctly; we did make a change to the way the event handlers were copied from one business object to another during the business object translations after the update yesterday (Child forms needed to push and pop them, while user controls needed to copy them). The install that's currently out there includes fixes this, but it would only fix your problem if you're setting the focus controls on a child form shown through the ChildFormDialog.
Scott
Scott
StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
Maybe this might give you some ideas.  I have a rule setup for this form,  a field must have a value,  using the require fields of the BO.  The arrow is showen but the little box that pops up in the lower right corner of the form isn't showing up.  It DOES show up on the new form that I created.

At this point I am sure it is something I did or didn't do,  I just am at a lost as to how to correct the issue.

StrataFrame Team
S
StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Ah, this is the AutoShowBrokenRulesAlert property, not the FocusControls properties... Make sure that you're AutoShowBrokenRulesAlert property is set to True. Out of curiosity, is this just a plain form, or is this a child form that you're showing through the ChildFormDialog? It makes a difference how the event is handled.
Scott
Scott
StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
My focus now works and so does the little message window in the lower right corner.

I had to clear the businessobject property of the maintenancetoolstrip.  I had set that property to the value of the BO for the form, the primary businessobject (the only bo on the form).

How would this property be used,  is this used only if there are multipule business objects on the page?

Sorry about the trouble, but this was a hard one to track down for a newbie like myself.

Scott

StrataFrame Team
S
StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Ah, yes, we added that property so that you can create a user control and drop a maintenance form toolstrip on it... then when you drop a couple different user controls on the form, you can have more than one maintenance form toolstrip and each one talks to a different business object. Yeah, that one would have been a toughy. You can either leave the BusinessObject property on the MaintenanceFormToolStrip as null or nothing (and it will use the primary business object on the form), or you can set the business object property to a specific business object you want the toolstrip to talk to.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search