最新评论
if(action != null && action.indexOf(relId) > 1)
这句代码有错误吧,是不是relId改成nnid
1:N的关系可以这样做吗?
我想实现双击可用的记录就可建立关系而不是打开这条记录,应该怎么做呢?
谢谢
Re:CRM 4.0 Lookup 的过滤功能 o自由自在o 2010-07-31 08:08
在MSCRM4.0中导入实体时CPU一直停留在100% 阶段 然后 看系统应用程序日志 显示
"Customization Import failed. Error: 正在中止线程"
请问是什么原因所致哦?
Re:在 CRM 4.0 打印预览页面隐藏字段 o自由自在o 2010-04-20 10:55
HI jim :
请问如何在搜索功能里边限制搜索的数据范围,
只是在我当前的默认视图内呢?
这个sure step是什么,是crm的下一版规划吗?
Re:在N:N Lookup 里使用自定义视图 Jim Wang 2009-11-10 14:33
多谢指出,我重新copy了一遍。
Re:在N:N Lookup 里使用自定义视图 zw3004 2009-11-10 14:19
for (var i = 0; i < action =" li[i].getAttribute("> 1)
这句代码拷贝错了吧?应该是什么呢?看到这里卡壳了。
请问, 如何在Entity里新增一个像Task里的Regarding 这样的属性。
例如说我有个审核Entity. 有属性
1.审核结果Result (Picklist: pass, not pass)
2.相关资料Regarding(lookup, N: 1 , 连接的Entity不只一个 可能是Contact, Account, Product.....就像是Task里的Regarding一样。)
Re:神秘的 CRM Lookup (III) tuberosa 2009-10-10 06:01
请问,代码中的lookuptypes和lookuptypeIcons 属性是在哪里可以查到,我在sdk中没找到啊。
Re:CRM: 创建CheckBox样式的下拉列表 Jim Wang 2009-10-03 16:13
在系统实体里创建也没有问题,你再仔细检查一下Account里是否有脚本冲突。
Re:CRM: 创建CheckBox样式的下拉列表 Lion Liu 2009-10-03 11:36
Jim,
在Account系统实体中使用这种方法始终无法成功,在新建的实体就可以完成此脚本,请问一下,这个是什么原因?是否有办法解决。谢谢!
Re:在CRM 4.0 里用导入向导功能更新数据 zw3004 2009-09-15 08:16
在导入数据时候选择不导入重复记录,为什么还是会有重复记录导进去呢?
Re:CRM: 创建CheckBox样式的下拉列表 Lion Liu 2009-09-08 07:39
Thank you very much.
Re:在 CRM 4.0 打印预览页面隐藏字段 一千零一夜 2009-08-24 10:36
非常感谢Jim. 可以了.
Re:在 CRM 4.0 打印预览页面隐藏字段 Jim Wang 2009-08-24 09:03
这样也可以,但是要用不同的代码;具体的情况只能自己调试了。(IE Developer Toolbar可以帮你分析tag)
Re:在 CRM 4.0 打印预览页面隐藏字段 一千零一夜 2009-08-24 07:05
@Jim Wang
我用的隐藏语句是crm.Form.all.lastname.parentElement.parentElement.style.display = 'none';
是不是我用的这个隐藏方式不可以
Re:在 CRM 4.0 打印预览页面隐藏字段 Jim Wang 2009-08-22 11:44
不需要啊,比如你要在FORM上隐藏lastname字段,那么在onload里你应该这样写:
crmForm.all.lastname_c.style.display = "none";
crmForm.all.lastname_d.style.display = "none";
_c 就是label
_d 就是text
这样才可以隐藏一个完整的字段,打印预览也不会显示这个字段了。
Re:在 CRM 4.0 打印预览页面隐藏字段 一千零一夜 2009-08-21 12:03
我用了这个方法,可是每次必须要把实体里面需要隐藏的字段的Display label on the form取消掉,否则每次打印都显示他的Label...不知道这个问题怎么解决???
Re:在 IFrame里显示实体关联视图 一千零一夜 2009-08-07 14:17
[quote]Jim Wang:可以啊,那直接用IFRAME包含这个新实体URL即可,当然还有一些配套代码。[/quote]
就是这些代码,我不知道如何去调用,就是设置这个URL显示的时候是与当前的account里面的某些信息是有关联的,比如负责人,联系人之类的。能否在您有空闲时间的时候写篇blog介绍一下相关信息
Re:在 IFrame里显示实体关联视图 Jim Wang 2009-08-07 14:05
那个天数的问题可以用plugin来实现,论坛里搜一下,以前有人问过。
我2年前也写过一个方法:http://jianwang.blogspot.com/2007/11/microsoft-crm-filter-on-last-30-days.html
Re:在 IFrame里显示实体关联视图 Jim Wang 2009-08-07 14:01
可以啊,那直接用IFRAME包含这个新实体URL即可,当然还有一些配套代码。
Re:在 IFrame里显示实体关联视图 一千零一夜 2009-08-07 13:59
@Jim Wang
还有一个问题,就是用你的方法去用IFRAME显示了Activities之后,里面默认是显示最近30天,或者今后30的activities,可是销售想看all activities,然后自己再选择哪一天的。他说这样方便一些.问一下jim,如何改变这个默认值呢?
Re:在 IFrame里显示实体关联视图 一千零一夜 2009-08-07 13:55
@Jim Wang
而且添加完了之后还要显示在那个新实体的列表当中,也就是用IFRAME在account里面用你的方法调用的界面。就是说销售想在同一张页面当中或者同一个页面的另一个tab当中,当他输入了信息之后点击保存,然后保存的信息自动显示到另一个IFRAME的列表当中。这两部分他想在一个页面中显示,不想开多个窗口点来点去,填来填去。
Re:在 IFrame里显示实体关联视图 一千零一夜 2009-08-07 13:52
@Jim Wang
自动弹出是没有问题的,一切都好,activity没问题,不过现在给公司加了一个新的实体,是专门记录客户需求的,销售说这样每次打开那个新实体去添加信息太浪费时间了,而且crm4.0运行的太慢,他说想直接加到account里面去,直接填写保存,自动存储到新实体的列表当中.所以才想到能不能用IFRAME去显示这个谈出来新建窗口.
Re:在 IFrame里显示实体关联视图 Jim Wang 2009-08-07 13:30
点击Activity,然后自动弹出这个窗体应该没有问题,但是不应该镶嵌到IFRAME里面,否则你的Activity列表怎么办啊。
Re:在 IFrame里显示实体关联视图 一千零一夜 2009-08-07 12:36
用你的方法在IFRAME里面显示了activities,就是navid = "navActivities"这个.显示出来之后,IFRAME里面的左上角有一个新建,点击之后弹出来窗口填写activity的信息.可能这个activities的实体例子有点特殊,弹出来的窗口是可以选择 Task, Fax, Phone Call 等等.我的意思指的是能不能把1:N关系的实体中的“新建”也就是new Entity(这里的Entity指的是自己新建或者系统自带的实体的名称),点击他们之后出现相应的新建窗口能否直接调用显示到IFRAME里面。
Re:在 IFrame里显示实体关联视图 Jim Wang 2009-08-07 10:52
这个new activity是指什么?
Re:在 IFrame里显示实体关联视图 一千零一夜 2009-08-07 10:46
Jim 您好,
我在Account里面用IFRAME显示了activities,但是现在有个问题,每次打开一个account之后我都需要点击 new Activity 去打开一个新窗口去填写信息.
我现在想把这个new Activity的窗口在IFRAME里面显示出来,这样我每次打开一个Account之后就能直接输入信息然后保存.
不知道能否实现?
Re:在 CRM 4.0 打印预览页面隐藏字段 一千零一夜 2009-07-30 14:51
Jim 你太强了,非常感谢!
这个Sean 当时讲作时,我听过 最近也在修改
分派销售机会(Sales Opportunities) 不是太明白,请详解,THS
封了函数时
PL.nextSibling.appendChild(addInput);
这怎么总是过不去呢
Thank you soooooooooooooo much Jim. It works well.
re: CRM: 创建CheckBox样式的下拉列表 Jim Wang 2009-05-20 09:47
To: 狐狸糊涂
你可以写个函数:
function checkList(PL, PLV)
{
if( PL != null && PLV != null )
{....}
}
然后一一调用:
checkList(crmForm.all.picklist1, crmForm.all.picklistvalue1);
checkList(crmForm.all.picklist2, crmForm.all.picklistvalue2);
checkList(crmForm.all.picklist3, crmForm.all.picklistvalue3);
checkList(crmForm.all.picklist4, crmForm.all.picklistvalue4);
Cheers,
Jim
Hello, Jim.
I want to set 4 checkbox style picklist in a form, but get problems.....
At first, I simply copy-past your code into onLoad event 4 times .... only the 4th picklist can store selected value to PLV, but none of them display in default view
Then, I changed variable names, for example, PL1, PL2, PL3, PL4..... this time, only the first one displayed as a checkbox, others are in picklist format
my question is .... how to set 4 checkbox style picklist in a form? .... @.@!
狐狸糊涂.
re: 重要:欢迎光临新版微软中文CRM论坛! 刀客(batistuta) 2009-03-30 06:16
Jim 我剽窃了你的这个文章到我的blog^o^
这个思想很好,最近才知道微软有这样的DD,很多客户确实有这个概念在应用,之前都是靠开发,现在可以在售前的时候给客户看看蛮好的喏!
哈哈!曾经也被这个问题困扰过许久,最终只能选择放弃一边,今天在这里找到解决的办法!真是开心!:)
re: 在CRM 4.0 里用导入向导功能更新数据 pandababy 2009-03-26 09:12
学习了很多!但是我在用你指导的方法做更新的时候发现一个问题:
Lookup类型的字段是没有办法被更新的,CRM是有这样的问题么?还是我操作的问题?
PickList我测试过了,完全没有问题。
re: CRM: 创建CheckBox样式的下拉列表 pandababy 2009-03-26 09:07
高级查找的时候还是会出一些问题的,但是已经相当不错了!
谢谢!:)
这两个服务器需要打上相同版本的补丁;否则如果有错误发生就要手工修改customization.xml文件,删除有问题的flag.
郁闷死啦,打了补丁一后就不能导入实体到另外的服务器!!!
HI Jim,
如果要对多条记录执行同一个工作流,是不是修改如下代码:
<EntityId>" + entityId1 + "</EntityId>" +
<EntityId>" + entityId2 + "</EntityId>" +
<EntityId>" + entityId3 + "</EntityId>" +
。。。
<SavedQueries>
<savedqueries entity="SavedQuery" morerecords="0" paging-cookie="" version="3.0">
<savedquery>
<iscustomizable name="否">0</iscustomizable>
<isquickfindquery name="否">0</isquickfindquery>
<isuserdefined name="是">1</isuserdefined>
<isprivate>0</isprivate>
<isdefault name="否">0</isdefault>
<returnedtypecode formattedvalue="112">112</returnedtypecode>
<savedqueryid>{00000000-0000-0000-00AA-000010001032}</savedqueryid>
<queryapi />
<savedqueryidunique>{951A82DB-2EB5-4562-84CC-0E99A3E891D2}</savedqueryidunique>
<layoutxml>
<grid name="resultset" object="112" jump="title" select="1" icon="1" preview="1">
<row name="result" id="incidentid">
<cell name="title" width="300" />
<cell name="ticketnumber" width="150" />
<cell name="prioritycode" width="150" />
<cell name="createdon" width="150" />
</row>
</grid>
</layoutxml>
<customizationlevel formattedvalue="0">0</customizationlevel>
<querytype formattedvalue="0">0</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="incident">
<attribute name="incidentid" />
<attribute name="prioritycode" />
<attribute name="ticketnumber" />
<attribute name="title" />
<attribute name="createdon" />
<filter>
<condition attribute="statecode" operator="eq" value="0" />
</filter>
<order attribute="title" descending="false" />
</entity>
</fetch>
</fetchxml>
<LocalizedNames>
<LocalizedName description="Active Cases" languagecode="1033" />
<LocalizedName description="アクティブなサポート案件" languagecode="1041" />
<LocalizedName description="可用案例" languagecode="2052" />
</LocalizedNames>
</savedquery>
<savedquery>
<iscustomizable name="否">0</iscustomizable>
<isquickfindquery name="否">0</isquickfindquery>
<isuserdefined name="是">1</isuserdefined>
<isprivate>0</isprivate>
<isdefault name="否">0</isdefault>
<returnedtypecode formattedvalue="112">112</returnedtypecode>
<savedqueryid>{00000000-0000-0000-00AA-000010001030}</savedqueryid>
<queryapi />
<savedqueryidunique>{A771E6BE-4D4A-4DAC-B058-BAB9FB5B6A0C}</savedqueryidunique>
<layoutxml>
<grid name="resultset" object="112" jump="title" select="1" icon="1" preview="1">
<row name="result" id="incidentid">
<cell name="title" width="300" />
<cell name="statecode" width="100" />
<cell name="ticketnumber" width="150" />
<cell name="prioritycode" width="150" />
<cell name="createdon" width="150" />
</row>
</grid>
</layoutxml>
<customizationlevel formattedvalue="0">0</customizationlevel>
<querytype formattedvalue="0">0</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="incident">
<attribute name="prioritycode" />
<attribute name="ticketnumber" />
<attribute name="title" />
<attribute name="createdon" />
<order attribute="title" descending="false" />
<attribute name="statecode" />
<attribute name="incidentid" />
</entity>
</fetch>
</fetchxml>
<LocalizedNames>
<LocalizedName description="All Cases" languagecode="1033" />
<LocalizedName description="すべてのサポート案件" languagecode="1041" />
<LocalizedName description="所有案例" languagecode="2052" />
</LocalizedNames>
</savedquery>
<savedquery>
<iscustomizable name="否">0</iscustomizable>
<isquickfindquery name="否">0</isquickfindquery>
<isuserdefined name="是">1</isuserdefined>
<isprivate>0</isprivate>
<isdefault name="是">1</isdefault>
<returnedtypecode formattedvalue="112">112</returnedtypecode>
<savedqueryid>{00000000-0000-0000-00AA-000010001028}</savedqueryid>
<queryapi />
<savedqueryidunique>{9B710A53-912F-4A6D-A5EF-1CB425896A84}</savedqueryidunique>
<layoutxml>
<grid name="resultset" object="112" jump="title" select="1" icon="1" preview="1">
<row name="result" id="incidentid">
<cell name="title" width="300" />
<cell name="ticketnumber" width="150" />
<cell name="prioritycode" width="150" />
<cell name="createdon" width="150" />
</row>
</grid>
</layoutxml>
<customizationlevel formattedvalue="0">0</customizationlevel>
<querytype formattedvalue="0">0</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="incident">
<attribute name="incidentid" />
<attribute name="prioritycode" />
<attribute name="ticketnumber" />
<attribute name="title" />
<attribute name="createdon" />
<order attribute="title" descending="false" />
<filter>
<condition attribute="ownerid" operator="eq-userid" />
<condition attribute="statecode" operator="eq" value="0" />
</filter>
</entity>
</fetch>
</fetchxml>
<LocalizedNames>
<LocalizedName description="My Active Cases" languagecode="1033" />
<LocalizedName description="自分のアクティブなサポート案件" languagecode="1041" />
<LocalizedName description="我的可用案例" languagecode="2052" />
</LocalizedNames>
</savedquery>
<savedquery>
<iscustomizable name="否">0</iscustomizable>
<isquickfindquery name="否">0</isquickfindquery>
<isuserdefined name="是">1</isuserdefined>
<isprivate>0</isprivate>
<isdefault name="否">0</isdefault>
<returnedtypecode formattedvalue="112">112</returnedtypecode>
<savedqueryid>{00000000-0000-0000-00AA-000010001029}</savedqueryid>
<queryapi />
<savedqueryidunique>{CC9EEFCC-286E-486C-B0AC-EF2380D80F97}</savedqueryidunique>
<layoutxml>
<grid name="resultset" object="112" jump="title" select="1" icon="1" preview="1">
<row name="result" id="incidentid">
<cell name="title" width="300" />
<cell name="ticketnumber" width="150" />
<cell name="prioritycode" width="150" />
<cell name="createdon" width="150" />
</row>
</grid>
</layoutxml>
<customizationlevel formattedvalue="0">0</customizationlevel>
<querytype formattedvalue="0">0</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="incident">
<attribute name="incidentid" />
<attribute name="prioritycode" />
<attribute name="ticketnumber" />
<attribute name="title" />
<attribute name="createdon" />
<order attribute="title" descending="false" />
<filter>
<condition attribute="ownerid" operator="eq-userid" />
<condition attribute="statecode" operator="eq" value="1" />
</filter>
</entity>
</fetch>
</fetchxml>
<LocalizedNames>
<LocalizedName description="My Resolved Cases" languagecode="1033" />
<LocalizedName description="自分の解決済みサポート案件" languagecode="1041" />
<LocalizedName description="我的已解决案例" languagecode="2052" />
</LocalizedNames>
</savedquery>
<savedquery>
<iscustomizable name="否">0</iscustomizable>
<isquickfindquery name="否">0</isquickfindquery>
<isuserdefined name="是">1</isuserdefined>
<isprivate>0</isprivate>
<isdefault name="否">0</isdefault>
<returnedtypecode formattedvalue="112">112</returnedtypecode>
<savedqueryid>{00000000-0000-0000-00AA-000010001034}</savedqueryid>
<queryapi />
<savedqueryidunique>{D6CB76E0-E8B1-43FA-ADDE-A7E5E3F6FF80}</savedqueryidunique>
<layoutxml>
<grid name="resultset" object="112" jump="title" select="1" icon="1" preview="1">
<row name="result" id="incidentid">
<cell name="title" width="300" />
<cell name="ticketnumber" width="150" />
<cell name="prioritycode" width="150" />
<cell name="createdon" width="150" />
</row>
</grid>
</layoutxml>
<customizationlevel formattedvalue="0">0</customizationlevel>
<querytype formattedvalue="0">0</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="incident">
<attribute name="incidentid" />
<attribute name="prioritycode" />
<attribute name="ticketnumber" />
<attribute name="title" />
<attribute name="createdon" />
<filter>
<condition attribute="statecode" operator="eq" value="1" />
</filter>
<order attribute="title" descending="false" />
</entity>
</fetch>
</fetchxml>
<LocalizedNames>
<LocalizedName description="Resolved Cases" languagecode="1033" />
<LocalizedName description="解決済みサポート案件" languagecode="1041" />
<LocalizedName description="已解决案例" languagecode="2052" />
</LocalizedNames>
</savedquery>
<savedquery>
<iscustomizable name="否">0</iscustomizable>
<isquickfindquery name="否">0</isquickfindquery>
<isuserdefined name="是">1</isuserdefined>
<isprivate>0</isprivate>
<isdefault name="是">1</isdefault>
<returnedtypecode formattedvalue="112">112</returnedtypecode>
<savedqueryid>{00000000-0000-0000-00AA-000000666200}</savedqueryid>
<queryapi />
<savedqueryidunique>{6A077980-A384-478B-893E-ADD3CE4A0FE9}</savedqueryidunique>
<layoutxml>
<grid name="resultset" object="112" jump="title" select="1" icon="1" preview="1">
<row name="result" id="incidentid">
<cell name="title" width="300" />
<cell name="ticketnumber" width="150" />
<cell name="createdon" width="150" />
</row>
</grid>
</layoutxml>
<customizationlevel formattedvalue="0">0</customizationlevel>
<querytype formattedvalue="1">1</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="incident">
<attribute name="title" />
<attribute name="ticketnumber" />
<attribute name="createdon" />
<attribute name="incidentid" />
<order attribute="title" descending="false" />
</entity>
</fetch>
</fetchxml>
<LocalizedNames>
<LocalizedName description="Case Advanced Find View" languagecode="1033" />
<LocalizedName description="サポート案件の高度な検索ビュー" languagecode="1041" />
<LocalizedName description="案例高级查找视图" languagecode="2052" />
</LocalizedNames>
</savedquery>
<savedquery>
<columnsetxml>
<columnset version="3.0" distinct="true">
<column>title</column>
<column>statecode</column>
<column>ticketnumber</column>
<column>createdon</column>
<column>incidentid</column>
<ascend>title</ascend>
</columnset>
</columnsetxml>
<iscustomizable name="否">0</iscustomizable>
<isquickfindquery name="否">0</isquickfindquery>
<isuserdefined name="是">1</isuserdefined>
<isprivate>0</isprivate>
<isdefault name="是">1</isdefault>
<returnedtypecode formattedvalue="112">112</returnedtypecode>
<savedqueryid>{00000000-0000-0000-00AA-000010003501}</savedqueryid>
<queryapi>AUTO</queryapi>
<savedqueryidunique>{0F44ED74-7CF6-4AEA-80C9-CF673810DEFF}</savedqueryidunique>
<layoutxml>
<grid name="incidents" object="112" jump="title" select="1" icon="1" preview="1">
<row name="incident" id="incidentid">
<cell name="title" width="300" />
<cell name="statecode" width="100" />
<cell name="ticketnumber" width="150" />
<cell name="createdon" width="150" />
</row>
</grid>
</layoutxml>
<customizationlevel formattedvalue="0">0</customizationlevel>
<querytype formattedvalue="2">2</querytype>
<LocalizedNames>
<LocalizedName description="Case Associated View" languagecode="1033" />
<LocalizedName description="サポート案件関連ビュー" languagecode="1041" />
<LocalizedName description="案例关联视图" languagecode="2052" />
</LocalizedNames>
<Descriptions>
<Description description="Displays information about cases in the detail form of any associated account, contact, product, or contract record. This view is in the Service side tab." languagecode="1033" />
<Description description="関連付けられた任意の取引先企業、取引先担当者、製品、または契約の詳細なフォームで、サポート案件についての情報を表示します。このビューは [サービス] サイド タブにあります。" languagecode="1041" />
<Description description="在任何关联客户、联系人、产品或合同记录的详细信息表单中显示案例的相关信息。此视图位于“服务”选项卡上。" languagecode="2052" />
</Descriptions>
</savedquery>
<savedquery>
<iscustomizable name="否">0</iscustomizable>
<isquickfindquery name="是">1</isquickfindquery>
<isuserdefined name="是">1</isuserdefined>
<isprivate>0</isprivate>
<isdefault name="否">0</isdefault>
<returnedtypecode formattedvalue="112">112</returnedtypecode>
<savedqueryid>{D95D47EF-4A1D-479E-9065-B9CEA0089048}</savedqueryid>
<queryapi />
<savedqueryidunique>{808ABBCA-8165-4735-9CBF-2AA1F6BE1722}</savedqueryidunique>
<layoutxml>
<grid name="resultset" object="112" jump="title" select="1" icon="1" preview="1">
<row name="result" id="incidentid">
<cell name="title" width="300" />
<cell name="ticketnumber" width="150" />
<cell name="prioritycode" width="150" />
<cell name="createdon" width="150" />
</row>
</grid>
</layoutxml>
<customizationlevel formattedvalue="0">0</customizationlevel>
<querytype formattedvalue="4">4</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="incident">
<attribute name="incidentid" />
<attribute name="prioritycode" />
<attribute name="ticketnumber" />
<attribute name="title" />
<attribute name="createdon" />
<filter>
<condition attribute="statecode" operator="eq" value="0" />
</filter>
<filter type="or" isquickfindfields="1">
<condition attribute="title" operator="like" value="{0}" />
<condition attribute="ticketnumber" operator="like" value="{0}" />
</filter>
<order attribute="title" descending="false" />
</entity>
</fetch>
</fetchxml>
<LocalizedNames>
<LocalizedName description="Quick Find Active Cases" languagecode="1033" />
<LocalizedName description="アクティブなサポート案件の簡易検索" languagecode="1041" />
<LocalizedName description="快速查找可用案例" languagecode="2052" />
</LocalizedNames>
</savedquery>
<savedquery>
<iscustomizable name="否">0</iscustomizable>
<isquickfindquery name="否">0</isquickfindquery>
<isuserdefined name="是">1</isuserdefined>
<isprivate>0</isprivate>
<isdefault name="是">1</isdefault>
<returnedtypecode formattedvalue="112">112</returnedtypecode>
<savedqueryid>{9AC51863-58C7-49A0-ADCC-AFD9A4C3EE59}</savedqueryid>
<queryapi />
<savedqueryidunique>{4ABA7159-85A0-4DDE-8A46-356C43BB09C3}</savedqueryidunique>
<layoutxml>
<grid name="resultset" object="112" jump="title" select="1" preview="0" icon="1">
<row name="result" id="incidentid">
<cell name="title" width="100" />
<cell name="customerid" width="150" />
</row>
</grid>
</layoutxml>
<customizationlevel formattedvalue="0">0</customizationlevel>
<querytype formattedvalue="64">64</querytype>
<fetchxml>
<fetch version="1.0" mapping="logical">
<entity name="incident">
<attribute name="title" />
<attribute name="customerid" />
<attribute name="incidentid" />
<filter type="or" isquickfindfields="1">
<condition attribute="title" operator="like" value="{0}" />
<condition attribute="ticketnumber" operator="like" value="{0}" />
</filter>
</entity>
</fetch>
</fetchxml>
<LocalizedNames>
<LocalizedName description="Case Lookup View" languagecode="1033" />
<LocalizedName description="サポート案件検索ダイアログ ビュー" languagecode="1041" />
<LocalizedName description="案例查找视图" languagecode="2052" />
</LocalizedNames>
</savedquery>
</savedqueries>
</SavedQueries>
请看我导出的XML内容。可用案例、我的可用案例、快速查找可用案例中是包含
<filter>
<condition attribute="statecode" operator="eq" value="0" />
</filter>
但是我要的案例查找视图中确实是没有类似的condition.
re: 怎样在快速查找里搜索Inactive的数据? Jim Wang 2009-03-12 16:55
@秀天下
Are you sure? If you export the case entity from CRM 4.0, the xml should contains something like:
<filter>
<condition attribute="statecode" operator="eq" value="0" />
</filter>
Then all you need to do is remove this section, and import.
Cheers,
Jim
你好,我导出了案例的customization.xml。可是在查找视图中没有你说的查找条件。这种情况要如何显示Inactive呢?
<savedquery>
<iscustomizable name="否">0</iscustomizable>
<isquickfindquery name="否">0</isquickfindquery>
<isuserdefined name="是">1</isuserdefined>
<isprivate>0</isprivate>
<isdefault name="是">1</isdefault>
<returnedtypecode formattedvalue="112">112</returnedtypecode>
<savedqueryid>{9AC51863-58C7-49A0-ADCC-AFD9A4C3EE59}</savedqueryid>
<savedqueryidunique>{78FD311B-46DF-41D2-BA31-D129B8641915}</savedqueryidunique>
<layoutxml>
<grid name="resultset" object="112" jump="title" select="1" preview="0" icon="1">
<row name="result" id="incidentid">
<cell name="title" width="100" />
<cell name="customerid" width="150" />
<cell name="ownerid" width="100" />
<cell name="createdby" width="100" />
</row>
</grid>
</layoutxml>
<customizationlevel formattedvalue="1">1</customizationlevel>
<querytype formattedvalue="64">64</querytype>
<fetchxml>
<fetch version="1.0" mapping="logical">
<entity name="incident">
<attribute name="title" />
<attribute name="customerid" />
<attribute name="incidentid" />
<filter type="or" isquickfindfields="1">
<condition attribute="ownerid" operator="like" value="{0}" />
<condition attribute="title" operator="like" value="{0}" />
<condition attribute="createdby" operator="like" value="{0}" />
<condition attribute="customerid" operator="like" value="{0}" />
</filter>
<order attribute="title" descending="false" />
<attribute name="createdby" />
<attribute name="ownerid" />
</entity>
</fetch>
</fetchxml>
<LocalizedNames>
<LocalizedName description="案例查找视图" languagecode="2052" />
</LocalizedNames>
</savedquery>
--引用--------------------------------------------------
Jim Wang: @shanzhengyi
对,这个是个问题。其实按钮也可以通过JScript在onload()时间里动态生成,不一定用到isv.config.xml。
--------------------------------------------------------
Hi Jim,如何实现你说的这种动态生成按钮?
另外,在ISV里面的按钮的js元素中,如何调用form onload里面定义的js函数?谢谢