gpt4 book ai didi

Javascript 格式化异常

转载 作者:数据小太阳 更新时间:2023-10-29 02:11:17 24 4
gpt4 key购买 nike

我在三个表上使用内部联接并显示结果表。我为此使用 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>

我想使用输出表的列值之一创建超链接。每当我单击链接时,它都会给出格式异常。

最佳答案

我已经找到了问题出在虚拟路径上的解决方案..

$(span).createAppend('a', { href : 'Customer.aspx?ixProgram=' + row[columns.ixProgram] }).text(data); 返回真; } ]]>

关于Javascript 格式化异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10430294/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com