List Population With A Business Object Problem


Author
Message
fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
I'm trying to setup a combobox to be populated with a BO.  I set the PopulationType to BusinessObject and then try and set the PopulationDataSourceSettings.  The List Population Dialog displays for a second and then is replaced with a messagebox that says "Searching for Business Objects, Please wait...".  Well it never comes back.  The only way to get rid of it is to close VS.  When I reopen VS and try the same operation, the same problem keeps happening.  What's up???  I'm using the 1.6.5.0 beta.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Well, it sounds as though you are getting an error.  The DTE is bad about snuffing out errors (even legitmate ones).  The very first thing I would do is rebuild your solution, then go back into the form where you are having the issue and try again.  This would just ensure that all of your BOs are built.

The 1.6.5 beta should not be related to your issue here...so if this doesn't work then we will want to dig around a little bit more.

fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
I rebuilt all my BOs in the Business Object Mapper.  Rebuilt my BO project and then rebuilt the entire solution.  Problem stills exists.  Here's ALL the details.  This combobox had it's PopulationDataSourceSettings set to a method in a BO that I deleted from the BO's Data Retrieval Section.  So I cleared the PopulationDataSourceSettings for this combobox and now I'm trying to reset it to a new method in the same BO.  
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Actaully if that method cannot be found it will not produce an error...we take that into account.  I think that the error is coming from enumerating through the BOs.  If you drop on a new combo on a test form, does the issue persist?
fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
Yes, if a create a new form and drop a combobox on it the problem persists.  But here's what I can do.  If I go into the form.designer.vb code I can add a ListPopulationSettings object, set the proper properties on it then set the comboxes PopulationDataSourcesSettings to the ListPopulationSettings object.  Probably a dangerous thing to do but I have it semi-working as a work-around for now.
fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
I created a new project, added a new BO connected to a different database, added a combobox to the form, bound the combobox to the new BO then tried to set the PopulationDataSourceSettings and I get the same problem.  So it appears that the problem is NOT with the BOs in my original project but may have something to do with SF itself. 

For what it's worth, all the PopulationDataSourceSettings in my solution were originally set when I was using SF 1.6.1.  This is the 1st time I'm trying to set them using 1.6.5.

StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
I've added a try/catch to the method that populates the lists within the type editor dialog.  It will force the wait window to go away and it will also show the red exception dialog when you receive an error while it's loading the dialog.  Hopefully that will give us some more insight into what's causing the issue.  It will be part of 1.6.5 when it's released.
fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
What do I do in the meantime?  I need to get this working.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I rebuilt the installation with the changes so you can see what error you are getting.  You can get it here: http://forum.strataframe.net/FindPost14525.aspx .
fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
Thanks Trent!!  Attached is a copy of the error and stack trace that is being generated.
Attachments
PopulationSettingsError.txt (135 views, 2.00 KB)
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