Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Cancelling Cases from the ribbon controller (Issue with 8.2)?

$
0
0

Hi all,

I'm having a issue with some JS code in the Ribbon controller and getting it to work.

I have a Cancel button on the case ribbon controller, and when I click on it - it does not seem to do anything.

The code behind is doing a check to make sure that a custom field on the form is populated before a cancel call is made.

In my JavaScript, I have tried both:

- Cancel()

and

- Mscrm.CommandBarActions.Cancel();

(Neither work)

I've tried removing all the code in the JavaScript, apart from the above, and still nothings happening. I've also added some Alert pop ups in the script to confirm I'm not going mad, and these pop ups work - the code just seems to stop at as soon as it tries to cancel a case. If I turn on legacy JavaScript form support, it works (which is what I am trying to remove!).

I've also got a similar button which does a resolve case (Mscrm.CommandBarActions.resolve) and this works fine.

I've noticed that the cancel functions works in my 2 other environments (both 8.0) - which is leading me to believe that this issue is related to 8.2 (My version is 8.2.1.411).

Anyone got any ideas? Am I missing a trick?

Thanks

Ian


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images