平台限制只能有10个页签,超过10个页签怎么增加呢,最近天天都有人问这个问题,虽然给了一些参考但是还是有疑问,这里分享一下我这个菜鸟成功增加的过程,保准大家照猫画虎,比真的老虎还真:P,废话少说上料:
--首先查找客户单据的FID,也就是FClassTypeID=1012000
select FID,* from ICClassType where FName_CHS like '%客户%'
--通过如下sql找商机的页签,找其他单据的页签请替换下面sql中的
--FCaption_CHS,FCaption_CHT,FCaption_EN,对应三种语言
--潜在机会|评估结果|销售阶段|活动|报价|任务|样品|联系人|协作员工|相关客户|竞争分析|处理过程|费用|项目总结|评论
--页签序号从开始,如活动的key为FTab,4
select FKey,FCaption_CHS,FCaption_CHT,FCaption_EN,* from ICClassCtl where FClassTypeID=1012000
---------在CRM客户表上增加“产品记录”页签
update ICClassCtl
set FCaption_CHS='联系人|商机|活动|报价|样品|产品列表|员工异动|交易概览|交易明细|应收账|往来邮件|客户地址|客户喜好|共享日志|产品记录',
FCaption_CHT='聯繫人|商機|活動|報價|樣品|產品列表|員工異動|交易概覽|交易明細|應收賬|往來郵件|客戶位址|客戶喜好|共用日誌|产品记录',
FCaption_EN='Contacts|Opportunities|Activity|Quotation|Sample|Products List|Employee Job Transfer|Transaction Overview|Transaction Details|A/R|Transaction Email|Customer Address|Customer Preference|Share Log|产品记录'
where FClassTypeID=1012000 and FKey ='FTab'
--------插入页签链接到产品单据(产品单据用BOS做,经过查询FClassTypeID=200000004,新增页签ftab=15)
insert ICClassTabCtlContent values (1012000,'FTab,15','../CRM/CusContactNew.aspx?FSurClassTypeID=1012000&FClassTypeID=200000004&FItemField=t_BOScp.FBase&LockField=FBase&FItemValue=GetFldValue(FItemid,0)')
GO
-----------------------------
select * from ICClassActionList where FClassTypeID=1012000 and FClassActionID=19 ---查询ACTION
DELETE FROM ICClassActionList WHERE FClassTypeID=1012000 and FClassActionID=19 and FAction='FTab,15' --删除新增页签action
INSERT INTO ICClassActionList (FClassTypeID, FClassActionID, FObject, FDefineType, FSourceType, FSourceField, FAction, FExpression, FOrder,FDescription)
VALUES (1012000,19,'FItemID',0,4096,'FLoadAction','FTab,15','',1,'Load') ----增加新增页签action
update ICClassType set FID=fid