StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
BrowseDialog with BO question
BrowseDialog with BO question
Post Reply
Like
0
BrowseDialog with BO question
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
StarkMike
StarkMike
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 436,
Visits: 944
I have a BrowseDialog that is based on a BO that is based on a view and when I click 'Ok' in the browse dialog I get this error:
"The PrimaryKeyFields property must have exactly 1 field to use the PrimaryKeyField property."
Because the BO is based on a view there really isnt a primary key... not sure what to do from here just looking for some guidance. ;-)
Reply
Like
0
Trent Taylor
Trent Taylor
posted 17 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
This is why we added the ability to override the primar key through the BO mapper....for BOs that are based on views. To set a primary key field do the following:
Open the BO Mapper
Select the BO which is based on the view
Open the BO properties
Show the Advanced Options
Click the Override Primary Key Specification
Choose the field which will "act" as the primary key
Click OK
Rebuild the partial
You now have a BO based on a view with a primary key
Reply
Like
0
StarkMike
StarkMike
posted 17 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 436,
Visits: 944
GREAT! Thanks!
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search