locked
Plugins RRS feed

  • Question

  • can we call a jscript function associated to a button onchange event using plugin in online crm2011? If so ... How can we do it?


    sand

    Wednesday, February 15, 2012 5:42 AM

Answers

All replies

  • Hello,

    I'm not sure what you wanted to achieve but checkfollowing article - http://mileyja.blogspot.com/2011/11/how-to-trigger-plug-in-from-jscript-in.html

    In the case I understood you wrong could you please describe what do you want to achieve more detailed?


    Microsoft CRM Freelancer

    My blog (english)
    Мой блог (русскоязычный)
    Follow Andriy on Twitter

    Wednesday, February 15, 2012 5:46 AM
    Moderator
  • Hi San,

    No you cant,

    instead of that what that js function does?

    can you please explain what do you need to achieve.

    Regards

    Sandeep


    By Sanz. -- If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".

    Wednesday, February 15, 2012 5:51 AM
  • What i want to do is ...

     

    created a plugin  and attached to create message for opportunity which changes  revenue of customer account on creating opportunity . Now i want to call the jscript function associated to on change event of revenue field.

    Is it possible?


    sand

    Wednesday, February 15, 2012 6:01 AM
  • To trigger plugin which is configured to handle some event you have to invoke this event in system, i.e. to trigger plugin which is configured to handle Create message of opportunity entity the only way to create opportunity. The way out is to redevelop your plugin to be triggered (for example) on Update of account (it could be even some fake field which is not used in your solution).


    Microsoft CRM Freelancer

    My blog (english)
    Мой блог (русскоязычный)
    Follow Andriy on Twitter


    Wednesday, February 15, 2012 6:06 AM
    Moderator
  • no it is not possible,

    but you can do one more thing,

    what you have done in js (so same thing has to be replicate in plugin)?.


    By Sanz. -- If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".

    Wednesday, February 15, 2012 6:08 AM
  • ok

    Thanks to eveyone


    sand

    Wednesday, February 15, 2012 6:15 AM
  • then is it possible to call viceversa

    i.e

    calling plugin from js?


    sand

    Wednesday, February 15, 2012 6:16 AM
  • calling plugin from js?
    Directly - no, indirectly - yes. I have already written all explanations and provided article with sample.

    Microsoft CRM Freelancer

    My blog (english)
    Мой блог (русскоязычный)
    Follow Andriy on Twitter

    Wednesday, February 15, 2012 6:17 AM
    Moderator
  • once again thanks..

    sand

    Wednesday, February 15, 2012 6:23 AM