How to build Relation between Business Object in .frx model

edited 2:23AM in FastReport .NET
public class Category
{
private string FName;
private string FDescription;
private List<Product> FProducts;

private Product FProduct;

public string Name
{
get { return FName; }
}

public string Description
{
get { return FDescription; }
}

public List<Product> Products
{
get { return FProducts; }
}

public Category(string name, string description)
{
FName = name;
FDescription = description;
FProducts = new List<Product>();
}
}

public class Product
{
private string FName;
private decimal FUnitPrice;

public string Name
{
get { return FName; }
}

public decimal UnitPrice
{
get { return FUnitPrice; }
}

public Product(string name, decimal unitPrice)
{
FName = name;
FUnitPrice = unitPrice;
}
}

Just like the two class in example code. We got a "Category category" object for example. In .frx model, how to build relation between category and category.Products?
The method in FRNetUsermanual doesn't work.

Comments

  • edited 2:23AM
    Hello,

    You don't need to create relations between business objects. The relation editor works with table datasources only. Just put two data bands (master-detail), connect the master to Category, the detail to Category.Products.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.