关于CRM查找字段OnChange问​​题。 [英] About CRM lookup field OnChange Issue.

查看:66
本文介绍了关于CRM查找字段OnChange问​​题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用具有很多属性的表单。


我还有两个查找字段(A,B)和表格中的文本字段(C)。通过javascript附加OnChange事件。


像这样:


  crmForm.all.A.attachEvent(" onchange",[FunctionName1]);
  crmForm.all.B.attachEvent(" onchange",[FunctionName2]);


 


当有人打开表单时,表单加载.js文件。
然后,调用附加事件来自.js的功能文件。
我必须强调,我不使用表单字段OnChange Event。我只是使用attachEvent。左(当我使用表单字段OnChange Event时,一切都很好。)


我在Form OnLoad事件中运行FireOnChange()。
如下:
OnLoad = function()
{
crmForm.all.A.FireOnChange();
}


----------------------------------------------
 答:查询字段
  B:查询字段
  C:文本字段
------------------------------------------ ----


当我在查找视图中更改B的值时,在Form OnLoad事件中运行A的FireOnChange()之后。
在这种情况下, B的OnChange事件未被触发。


在下面两个案例中,OnChange事件没有问题。
1。 当我运行A的FireOnChange()时,在我更改B的值后(或运行B的FireOnChange(),在我更改A的值之后。什么字段不重要。)
2. 当我运行C的FireOnChange()后,我改变了A或B的值。(我认为,当字段类型不是查找时,它很好。)


在唯一一个案例中,OnChange事件未被解雇。
1. 当我更改查找字段的值时,在运行查找字段的FireOnChange()之后。


我在删除其他代码后也尝试了它。
它是CRM错误吗?


我已经找到了为什么会在上周发生这种情况。
请让我知道。
我真的想知道原因。



谢谢。
JE.Song


 

解决方案

< blockquote>你好JE,

你的帖子太复杂了,不能去除。您是否有我们可以尝试的示例测试工具的链接?

听起来像一个逻辑问题......一个设计模式问题。其他网页如何实现您想要实现的目标?

常用表格标签。我不认为我曾见过有人使用onchange_form事件处理程序。

问候。


Hi,

I'm using the form that have a lot of attributes.

and I also have two lookup fields(A,B) and a text field(C) in the form.
It was attached OnChange Event by javascript.

Like this:

 crmForm.all.A.attachEvent("onchange", [FunctionName1]);
 crmForm.all.B.attachEvent("onchange", [FunctionName2]);

 

When someone open the form, the form load .js file.
and then, call the function of attaching event from .js file.
I must stress that I don't use the form field OnChange Event. I'm just using attachEvent.
(When I use the form field OnChange Event, everything is fine.)

and I run the FireOnChange() in the Form OnLoad Event.
Like this:
OnLoad = function()
{
crmForm.all.A.FireOnChange();
}

----------------------------------------------
  A: lookup field
  B: lookup field
  C: text field
----------------------------------------------

When I change a value of B in the lookup view, after I run a FireOnChange() of A in the Form OnLoad Event.
In that case, OnChange Event of B is not fired.

In two of belowing cases, OnChange Event is fine.
1.  When I run a FireOnChange() of A, after I change a value of B
(or run a FireOnChange() of B, after I change a value of A. What's field dosen't matter.)
2.  When I change a value of A or B after I run a FireOnChange() of C.
(I think, It is fine when the field type is not lookup.)

In the only one case, OnChange Event is not fired.
1.  When I change a value of lookup field, after I run a FireOnChange() of lookup field.

I also tried it after I remove other code.
Is it CRM bug?

I have found why this is happend for last week.
Please, let me know it.
I really want to know why.


Thanks.
JE.Song

 

解决方案

Hi JE,

Your post is too complicated to decifer. Do you have a link to a sample test harness that we can try?

Sounds like a logic issue... a design pattern issue. How do other web pages do what you are trying to achieve?

Form tags are commonly used. I don't think I have ever seen someone use the onchange_form event handler though.

Regards.


这篇关于关于CRM查找字段OnChange问​​题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆