business-objects

DataMember property [ObjectName] cannot be found on the DataSource

I have a business object, which is a composite of child objects. I am using databinding in Visual Studio 2008 to bind to controls on a Windows form. But I am getting the above error in the InitializeComponent method of the form. Lets say I have an object called ParentObject which contains a generic list, ChildListObject. The ParentObj...

Do roles/views belong inside or outside of the Repository Pattern?

Does role / view logic belong inside or outside of the Repository Pattern? For example, I have a table of products, and each product has 5 price fields - one for each type of customer (wholesale, retail etc). I only want to show the appropriate price to the appropriate user. If I have a repository of these products, should the Product...

Techniques for dealing with anemic domain model

I've read some of the questions regarding anemic domain models and separation of concerns. What are the best techniques for performing/attaching domain logic on anemic domain objects? At my job, we have a pretty anemic model, and we're currently using "helper" classes to perform the database/business logic on the domain objects. For e...

Formatting Timespans within Business Objects Desktop Intelligence (BO Deski)

Can anyone tell me how to format a given number of seconds (for example 16742 seconds) in a human readable form (for example 1d 5h 2m 13s) using a BO field formula or from within a T-SQL SELECT statement (where the Duration as Seconds is from a SUM aggregate)? ...

Serializing business objects as JSON

I'm trying to serialize my business objects into JSON for consumption by a Javascript application. The problem is is that I'm trying to keep my business objects "pure" in the sense they are not aware of data access or persistence. It seems to me that "diluting" my objects with a toJSON() function would go against this goal. On the other ...

What is the point of a Data Transfer Object (DTO)?

Why should I use DTOs/Domain objects when I can just put all business classes in a class library, use them in the business logic, then also pass those same business objects on to boundary classes? UPDATE: All are great points, thanks for the help. A follow up question: Where do you typically place these DTOs? Alongside the Domain obj...

Abstracting Data Access Layer from Business Object

Hi It's nothing new to de-couple the data access code from your business objects, but I'm always on the look-out for the "best way" to achieve something. I have the following classes: Orange - this is my Business Object. OrangeList - this is a List of Oranges. The user would fetch Orange objects from the data store by calling Oran...

User Objects Dialog box - Doesn't opens up (Business Object)

In business Objects, When I click the User Objects icon in a query panel for a universe, the User Objects dialog box doesnt opens up, however, i checked with other universe, there user objects dialog opens up. I am not sure of what exactly the parameter of the universe in Designer, enables this feature in Business Objects. Can some one...

How to list BO XIR2 universe objects used in a webi report?

How to list universe objects from a webi report using the Business Objects SDK for XIR2? Is there is an automated way to do it without the sdk? With the SDK I've been able iterate through webi report and universe collections but do not see a native way to retrieve either the query objects or the report query. ...

Business Object - Void Data Provider

I am creating a BO report with six data providers. For Some reasons, there is a ghost data provider appears in the Report Manager which has same name as one other data provider but it has no objects in it. I couldn't able to edit/delete this data provider(ghost) as it is not appearing in the data manager. Any suggestion, for deleting...

How Can I Keep The 'GUI' Layer Out Of The 'Business Logic' Layer?

I currently have a project that is a 'Business Object' project, and our goal is to have a clear separation between the GUI and the Business Objects. However, my project has a reference to System.Windows.Forms and that's a big red flag to everyone that my project is poorly designed. My problem is that I'm using a 3rd party control calle...

Business/Domain Object in ASP.NET

Just trying to gather thoughts on what works/doesn't work for manipulating Business/Domain objects through an ASP.NET (2.0+) UI/Presentation layer. Specifically in classic ASP.NET LOB application situations where the ASP.NET code talks directly to the business layer. I come across this type of design quite often and wondering what is t...

Business Object - Shortcut Key for adding object to conditions section of query panel

In Business Object, is there any Shortcut Key for adding object to conditions section of query panel? ...

How to create a report in BusinessObjects and bind to xml data?

I am trying to create a report in Business Objects using Desktop Intelligence tool (version XI Release 2 on Windows XP). I selected xml data provider and pointed to an xml file. From my Asp.Net web application, I need to bind this report to some xml data which has the same schema. Is there any document or sample .Net source code which c...

Base business class: is it bad?

Hello, I would like to create my base business class, something like EntityBase, to have some common behavior, such as implementing interface to track changes in the object (IsNew, IsDirty) and INotifyPropertyChanges interface. But many people say it's a bad idea to have a base business class and derive all your business objects from i...

What pitfalls to expect from generation of classes from database tables using Reflection.Emit and xsd files ?!

I am playing with class generation ( one class for a table - inheritance etc. not to be considered for now ... ). So I copied shamelessly from here the Reflection.Emit code. Reworked it to be generated per table in a given database and created the files with the following batch call in the Project's bin folder : for /f "tokens=*" %%...

Universal method with lambda’s criteria at Business Objects Collection

I have abstract class for each Business Object in my app (BO) Also have parent (generic) collection to store all BOs (named BOC - Business Object Collection) What I would like to archive is created universal method iniside BOC similar to: public T GetBusinessObject (lambda_criteria) So I could call this method similar to: Employe...

Any suggestions for separating data access, business logic and GUI in Delphi

I want to separate data layer from business logic and business logic from GUI. Diving into web I stumbled upon a few resources but still unable to make my mind clear. Some people talk about patterns some others point various frameworks. My requirements are : manipulate data from rdbms (mysql mainly) CRUD operations dealing with id gen...

Are there any worthy CSLA alternatives available?

My company is interested in porting a large business application to .NET. We plan on developing a desktop version and a silverlight version. I mostly researched the CSLA framework (got rocky's book, halfway through already) and found it a bit over-engineered, the data layer side didn't seem so polished either. Is there any other framewo...

Alternate Row shading : Business Objects - WebIntelligence

Hello, I am a n00b on WebI. Could somebody please tell me how to do alternate row shading in a BO CrossTab. Thanks ...