Control order of BO in _BusinessObjects collection


Author
Message
Chan
Chan
Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

Hi,

While waiting for response of one to one relationship thread, I tried to use IncludeInFormAdd, IncludeInFormDelete and etc property to achieve my goal (but I still hope someone can help on my previous posted issue). At first it works fine. But don't know why it just not working now.



I have the BO setting as below. After some debugging, I found that, BaseForm call child BO CompanyAddress.Add() before parent BO CompaniesBO.Add(). Even I set InitializationPriority.



Anyway ideas?



My topmost level BO - CompaniesBO is using PrimaryKeyIsAutoIncremented = true. My child BOs - CompanyAddress and CompanyContacts PK is composite key. Therefore, I set both PrimaryKeyIsAutoIncremented = false.



CompanyAddressBO - CompanyID, AddressTypeID

CompanyContactsBO - CompanyID, ContactTypeID



When I click on new button, I would get error



BusinessLayerException

   An error occurred while retrieving the primary key from the parent business object.

BusinessLayerException

   The CurrentRow could not be evaluated because the CurrentRowIndex is out of range. Business object record count: 0. CurrentRowIndex: -1.



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Chan - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Chan - 18 Years Ago
                 Hi,
Forgot to upload DDT package. Here it is.
Chan - 18 Years Ago
                     In case you need this.

Sorry for any inconvinience
Chan - 18 Years Ago
                         I cannot get your SQL backup to restore and I cannot use the PKG file...
Trent L. Taylor - 18 Years Ago
                             Sorry for that.

PKG is no password.
Attach...
Chan - 18 Years Ago
                                 [quote]Please check out CompanyMaintenance form. It demonstrates...
Trent L. Taylor - 18 Years Ago
                                     Hi,
Thank you for checking.

Any ideas for the issue...
Chan - 18 Years Ago
                                     hi,
I tried the "fixedInventory". FYI, it doesn't work. It still...
Chan - 18 Years Ago
                                         To turn off the business rules checking when adding a new row, you can...
StrataFrame Team - 18 Years Ago
                                             Give me a few minutes to check on the link label killing VS.
StrataFrame Team - 18 Years Ago
                                                 Hi,
[quote]Give me a few minutes to check on the link label...
Chan - 18 Years Ago
                                                     We could not reproduce this. I could not even reproduce this with your...
Trent L. Taylor - 18 Years Ago
                                                         Hi,
Are you dropping JK.Framework.UI.Windows.Forms.LinkLabel on...
Chan - 18 Years Ago
                                                         Hi,
Are you using WinXP SP2?
I tried to create an user...
Chan - 18 Years Ago
                                                             I am running WinXP SP2 and not having any trouble. Chan, create me...
Trent L. Taylor - 18 Years Ago
                                                                 Hi,
Here is the project, which have problem mentioned.
...
Chan - 18 Years Ago
                                                                     OK...this definitely failed and I was able to reproduce it. I see...
Trent L. Taylor - 18 Years Ago
                                                                         OK...here is the problem. It is the designer attribute of the...
Trent L. Taylor - 18 Years Ago
                                             Hi,
I managed to do New/Undo/Save in my CompanyMaintenance form....
Chan - 18 Years Ago
                                                 Yes, you will need to manually requery. The ChildAutoFilterOption only...
StrataFrame Team - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search