BrowseDialog with Custom Fields in BO


Author
Message
Scott Hershberger
Scott Hershberger
StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)
Group: Forum Members
Posts: 10, Visits: 26
I think that a view is the best option.



Thanks for your help!
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
Using your example, the Customer_Name is a custom property which, I am guessing, concatinates several fields together.  So your browse could not pull from this property since this does not represent an actual field name.

What is the code behind Customer_Name field?  As for a view, this would be another option.

Scott Hershberger
Scott Hershberger
StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)
Group: Forum Members
Posts: 10, Visits: 26
Let's see if I can clear it up... Here's a simplified example



Customer Customer_Detail

--------- ----------------

CustomerID CustomerName

Customer No CustomerID



I create a CustomerBO. In that BO I create a Custom Field "Customer_Name". I then fill this with a query.



I now need to use the CustomerBO in a Browse Dialog with a search possible on Customer No and Customer Name.



I'm not sure this can be done. I think I will try a view next.
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
Does anyone know a way around this?

Any field that you want to search on MUST exist in the database since a query is dynamically created.  So in this case a custom property will not work.  I am not clear on what you are trying to accomplish.  You might give me some more details.  Thanks. Smile

Scott Hershberger
Scott Hershberger
StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)
Group: Forum Members
Posts: 10, Visits: 26
My latest weird problem involves a Browse Dialog. We have a Customer Table / BO that simply has a name id. I need to allow the user to search on customer name or Customer number (actually in the table/BO). To do this I created a custom fields of customer name that I populate in the BO. This works great under normal circumstances, but when I try to search on this fields, I obviously get a key error since it cannot create a where clause. Does anyone know a way around this?
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