Browse Dialog in a Child form


Author
Message
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
Never mind Trent, don't want to take your time with this.

Id doesn't change anything. I press the button to refresh but it seems it is stoped in the row it is showing.

I can continue with the forms and surely will find out what I did here.

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
Just to prove and see if the refresh fixes the issue, just put a button on your form and add the code to do the refresh when you come back from the browse.  If the refresh works then I will try to think of a place to add the code so it is automatically called.
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
I meant where (which method, event) in the parent should I put this line of code.

Well, I put it in the Activate method, no lucky.

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
It is on the business object.  For example:

MyBO.Refresh()

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
Trent L. Taylor (09/18/2006)
[quote]When you return from the browse, does the BO contain the correct data? 

Yes, it does, but not positioned in the correct row.

[It so, try calling the BO.Refresh()...this will force your bound controls to refresh to the current record in the BO.

Extremely sorry for the stupid question, but where could I call the Refresh?

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
Too confusing? Would you like me to try and explain in Portuguese? You can ask Steve to help in the translation...

LOL...yeah, I'll get him in here to translate for me.  When you return from the browse, does the BO contain the correct data?  It so, try calling the BO.Refresh()...this will force your bound controls to refresh to the current record in the BO.

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
Trent L. Taylor (09/18/2006)
Is the business object that is attached to the browse a translated business object?  This could possibly be a dangerous situation if you are changing the contents of the business object that is managed on the parent form.  However, if the child form has a browse that is not going to kill your parent/child logic you will be fine. 

If you look at the contents of the BO after the browse, does the record actually exist in the BO...first lets make sure that the data made it back.

Yes, it is a translated business object.Blush

It is a one-to-many situation. Have the parent, a button there calling the child form. This parent may have lots of kids, so I put a Browse dialog in the child ToolStrip. Then I set the BOToPopulate to the BO in the Child, and its Type. When I go to the Browse and do a Search, the grid gets populated alright. I click the chosen one and go back to the child form, that's when it doesn't show the record I chose, but it stays in the one it was already.

Too confusing? Would you like me to try and explain in Portuguese? You can ask Steve to help in the translation...BigGrin

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
(hope you notice when I say "all the other forms", I'm trying to show off)

That's funny!.....I noticed BigGrin 

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
Is the business object that is attached to the browse a translated business object?  This could possibly be a dangerous situation if you are changing the contents of the business object that is managed on the parent form.  However, if the child form has a browse that is not going to kill your parent/child logic you will be fine. 

If you look at the contents of the BO after the browse, does the record actually exist in the BO...first lets make sure that the data made it back.

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
(hope you notice when I say "all the other forms", I'm trying to show off)
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