Hi Support,
Environment: VS2005, Vista, LLBGenPro v2.6 Runtime v2.0.50727, SQL Express 2005, oBout Grid V5.0
I'm using the oBout grid on a web page to show master/detail grids. I have two LLBLGen Pro datasource controls, one for the master entity collection, the other the detail entity collection. The entity collections are related with primary/foreign keys.
I can bring up the master grid data OK. I cannot get the detail grid to show any data.
If I set the default value of the Detail LLBgen control select parameter to a known value eg.
<SelectParameters>
<asp:Parameter Name="PoolNo" type="string" DefaultValue="PL714" />
</SelectParameters>
then I get all the related detail for that item in the detail grid OK. So I believe the data sources are OK and the grid is calling the LLBGen datasource control.
There appears to be a problem with the passing the parameters to the detail LLBgen control by the oBout control. To pass the parameter(s) the oBout control uses a "ForeignKeys" tag which identifies which detail items to fetch. This mechanism appears to be where the problem lies. Code for the page is below. Can you please advise?
regards Colin...
======================================
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="MasterDetail.aspx.vb" Inherits="TestWeb.MasterDetail" %>
<%@ Register Assembly="SD.LLBLGen.Pro.ORMSupportClasses.NET20" Namespace="SD.LLBLGen.Pro.ORMSupportClasses"
TagPrefix="llblgenpro" %>
<%@ Register Assembly="obout_Grid_NET" Namespace="Obout.Grid" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link display="all" href="mvwres:2-obout_Grid_NET.resources.styles.grand_gray.style.css,obout_Grid_NET, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5ddc49d3b53e3f98"
rel="stylesheet" type="text/css" />
<link display="all" href="mvwres:2-obout_Interface.OboutTextBox.resources.styles.grand_gray.style.css,obout_Interface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d5dff6913a9d6649"
rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<llblgenpro:LLBLGenProDataSource ID="LLBLGenProDataSource1" runat="server"
DataContainerType="EntityCollection" EntityCollectionTypeName="pat.danks.com.au.CollectionClasses.PatPoolCollection, pat.danks.com.au" CacheLocation="Session">
</llblgenpro:LLBLGenProDataSource>
<llblgenpro:LLBLGenProDataSource ID="LLBLGenProDataSource2" runat="server" DataContainerType="EntityCollection"
EntityCollectionTypeName="pat.danks.com.au.CollectionClasses.PatLayoutCollection, pat.danks.com.au" CacheLocation="Session">
<SelectParameters>
<asp:Parameter Name="PoolNo" type="string" />
</SelectParameters>
</llblgenpro:LLBLGenProDataSource>
<cc1:Grid ID="Grid1" runat="server" DataSourceID="LLBLGenProDataSource1">
<Columns>
<cc1:Column id=PoolNO DataField=PoolNo></cc1:Column>
<cc1:Column id=POOLNAME DataField=PoolName width=500></cc1:Column>
</Columns>
<MasterDetailSettings LoadingMode=OnCallback />
<DetailGrids>
<cc1:DetailGrid ID="DetailGrid1" runat="server" DataSourceID="LLBLGenProDataSource2" ForeignKeys="PoolNo">
<Columns>
<cc1:Column id=Column2 DataField=PoolNo></cc1:Column>
<cc1:Column id=Column1 DataField=PageNo></cc1:Column>
</Columns>
</cc1:DetailGrid>
</DetailGrids>
</cc1:Grid>
</form>
</body>
</html>