我在三个表上使用内部联接,并显示结果表。我为此使用 Xml。
<SQLInformation>
<Table>tblechecklistprogramworkpackagexref prwpxref</Table>
<TableJoins>
INNER JOIN tblechecklistprogram pr ON pr.ixProgram=prwpxref.ixProgram
INNER JOIN tblechecklistworkpackage wp ON wp.ixWorkPackage=prwpxref.ixWorkPackage
INNER JOIN tblechecklistworkpackageactivityxref wpaxref ON wpaxref.ixWorkPackage=wp.ixWorkPackage
INNER JOIN tblechecklistactivity act ON act.ixActivity=wpaxref.ixActivity
</TableJoins>
<WhereClause>
</WhereClause>
<GroupBy>
</GroupBy>
<OrderBy></OrderBy>
<HeaderInformation></HeaderInformation>
<FooterInformation></FooterInformation>
</SQLInformation>
<Columns>
<Column>
<Id>ProgramName</Id>
<Title>Program Name</Title>
<Table>pr</Table>
<Field>sName</Field>
<Alias>sName</Alias>
<Sortable>true</Sortable>
<GroupSort>true</GroupSort>
<ColumnWidth>100</ColumnWidth>
<JavascriptFormatter>
<![CDATA[
DesignDataFileFormatter = function(span,row,columns,data,item)
{
$(span).createAppend('a', {href: '../EcheckList/TemplateUsage.aspx?IxTemplate=' + 2, title: 'Go to Corresponding Schedule Item.', innerHTML:sName });
return true;
}
]]>
</JavascriptFormatter>
<Display>true</Display>
<Filter type="Database">
<FilterContainer name="Program" DisplayMember="sName" ValueMember="ixProgram" UseHavingClause="false" >
<FilterQuery>SELECT sName,ixProgram FROM tblechecklistprogram</FilterQuery>
</FilterContainer>
</Filter>
</Column>
我想使用输出表的列值之一创建一个超链接。每当我单击链接时,它都会给出格式异常。