WebForms - multiple BO's on page with multiple DropDowns error


Author
Message
Jiri Brazda
Jiri Brazda
StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)
Group: StrataFrame Users
Posts: 78, Visits: 356
I have an application with a page that should allow user to manage many details of some selected entity. Therefore there are 7 BO's on base page and 3 dropdowns (2 of them have populationtype BusinessObject, one Enumeration).

The page is loaded correctly at first but during postbacks in many cases it ends up with error saying that some of DropDowns has a SelectedValue which is invalid because it does not exist in the list of items. In this post I have described the same problem and the solution was to specify the TopMostItem. However - all of dropdowns has the TopMostItem set up!

The page works correctly when I remove these 3 dropdowns. I'm really confused by this behavior and cannot find the cause of this error.

I can email You my project (I cannot post it to whole forum) if necessary.

Reply
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: 6.9K
Jiri,

I really don't know what else to say via the forum past taking the sample that you gave me and trying to point you in the right direction here.  This has more to do with how you dsign your application versus being anything related to StrataFrame.

You must take business logic and design into account here which includes the possibility that you do not have records in one BO while they are in the other.  Now, SF will take a no record situation into account automatically as the bindings get removed in this case to prevent an error.  But from what I can tell, and from the sample that you provided for me to look at, I don't see anything that is SF related.  You would have the exact same issue if you were using data adapters and standard .NET data binding.  I don't of any other way to say this or explain this.

To really help you understand the overall issues that you have within your application are more of a consulting and training issue versus any type of issue with StrataFrame.  The forum is not a good tool for this and is why we provide training classes and the occasional consulting (when we have the time).  But past creating some sample that more accuratly depicts your problem, I am at a loss as to what to add to my comments here.  Sorry Ermm

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Jiri Brazda - 17 Years Ago
Jiri Brazda - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Jiri Brazda - 17 Years Ago
                     Jim,

Your best bet would be to create a sample app that...
Greg McGuffey - 17 Years Ago
                         Trent, Greg, I have created a very simple testing application that...
Jiri Brazda - 17 Years Ago
                             Hi, I have made some more investigation and found that when BO's are...
Jiri Brazda - 17 Years Ago
                                 Jiri, I am going to load and run your sample, but I wanted to say one...
Trent L. Taylor - 17 Years Ago
                                     Jiri, There were a lot of issues that I saw just with how you have...
Trent L. Taylor - 17 Years Ago
                                         Hi Trent, Regarding to Your findings: Excuse me, that was a mistake...
Jiri Brazda - 17 Years Ago
                                             Jiri, I really don't know what else to say via the forum past taking...
Trent L. Taylor - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search