问题描述:当定单状态为完成时,在定单记录下没有出现创建按钮.
直接创建相关记录时,打开定单属性Lookup 视图 只能查询到状态为活动的定单.
解决方法:通过ISV扩展在定单工具栏增加一个创建相关记录按钮
步骤一 导出ISV.config文件
步骤二 修改ISV.config
<IsvConfig>
<configuration version="3.0.0000.0">
<Root/>
<Entities>
<Entity name="salesorder">
<ToolBar ValidForCreate="0" ValidForUpdate="1">
<Button Icon="http://192.168.1.1:5555/_Common/icon.aspx?objectTypeCode=10001&iconType=DBGridIcon&inProduction=1&cache=1" JavaScript="openObj(10001,null,'new_salesorderid='+crmForm.ObjectId+'&new_salesorderidname='+crmForm.all.name.DataValue,null,null)">
<Titles>
<Title LCID="1033" Text="Create Receivable Record" />
</Titles>
<ToolTips>
<ToolTip LCID="1033" Text="创建收款记录(方法一)" />
</ToolTips>
</Button>
<Button Icon="http://192.168.1.1:5555/_Common/icon.aspx?objectTypeCode=10001&iconType=DBGridIcon&inProduction=1&cache=1" JavaScript="locAddRelatedToNonForm(10001,1088,crmForm.ObjectId,'')">
<Titles>
<Title LCID="1033" Text="Create Receivable Record" />
</Titles>
<ToolTips>
<ToolTip LCID="1033" Text="创建收款记录(方法二)" />
</ToolTips>
</Button>
</ToolBar>
</Entity>
</Entities>
</configuration>
</IsvConfig>
<configuration version="3.0.0000.0">
<Root/>
<Entities>
<Entity name="salesorder">
<ToolBar ValidForCreate="0" ValidForUpdate="1">
<Button Icon="http://192.168.1.1:5555/_Common/icon.aspx?objectTypeCode=10001&iconType=DBGridIcon&inProduction=1&cache=1" JavaScript="openObj(10001,null,'new_salesorderid='+crmForm.ObjectId+'&new_salesorderidname='+crmForm.all.name.DataValue,null,null)">
<Titles>
<Title LCID="1033" Text="Create Receivable Record" />
</Titles>
<ToolTips>
<ToolTip LCID="1033" Text="创建收款记录(方法一)" />
</ToolTips>
</Button>
<Button Icon="http://192.168.1.1:5555/_Common/icon.aspx?objectTypeCode=10001&iconType=DBGridIcon&inProduction=1&cache=1" JavaScript="locAddRelatedToNonForm(10001,1088,crmForm.ObjectId,'')">
<Titles>
<Title LCID="1033" Text="Create Receivable Record" />
</Titles>
<ToolTips>
<ToolTip LCID="1033" Text="创建收款记录(方法二)" />
</ToolTips>
</Button>
</ToolBar>
</Entity>
</Entities>
</configuration>
</IsvConfig>
其中10001为new_receivablerecord的ObjectTypeCode 1008为Salesorder的ObjectTypeCode.
步骤三 导入ISV.config文件
效果如下: