Ribbon button EnabledScript not working

Custom Ribbon controls EnabledScript no longer works due to a change in sp.ribbon.js.
In one environment, it is using an older version of the script and it works.  In another environment, there is a more recent script version and the button EnabledScript does not run.
I found a difference between old and new in sp.ribbon.js (starting at line 246):
OLD:
if (!SP.Ribbon.SU.$0($v_1) && $v_1.toLowerCase().startsWith("javascript:")) {
           window.g_CUIcommandId = $p1;
           var $v_5 = eval($p0.EnabledScript);
           window.g_CUIcommandId = null;
           return $v_5
NEW:
if (!$v_4 && !SP.Ribbon.SU.$0($v_1) && $v_1.toLowerCase().startsWith("javascript:")) {
  window.g_CUIcommandId = $p1;
  var $v_8 = eval($p0.EnabledScript);
  window.g_CUIcommandId = null;
  return $v_8
The $v_4 is true, causing my script to not run.  Here
is additional information (from sp.debug.js) that was added to the new script:
var $v_2 = $p0.CommandAction;
var $v_3 = !SP.Ribbon.SU.$0($v_2) && $v_2.startsWith('javascript:LaunchApp(');
var $v_4 = $v_3 && !SP.PageContextInfo.get_isAppWeb();

Hi Jeff,
I saw your post on
http://community.office365.com/en-us/f/154/t/252409.aspx and i am also experiencing the same in my app since last week(earlier it was working fine). As this seems to be caused by some Microsoft update, any idea if they will be releasing another
patch to fix this problem.
Thanks in advance.
Akshat

Similar Messages

  • I have updated itunes and the newest software. My home button does not work.  Please help

    I have updated itunes and the newest software. My home button does not work.  Please help

    It could be that your button has justy gone out.  You may try getting compressed air to blow out any dust in there.  If that doesn't work, you may have to get your button and ribbon replaced.

  • I bought my iphone 5s a week before and now its volume "up" button is not working when pressed.Does anybody know what to do to make it work?I have a one year warranty.Should i give it to apple retail shop or is there any way to solve this problem?

    I bought my iphone 5s a week before and now its volume "up" button is not working when pressed.Does anybody know what to do to make it work?I have a one year warranty.Should i give it to apple retail shop or is there any way to solve this problem?

    IF it is a manufacturing defect and you bought the device from Apple or an authorized Apple retailer, then take it into Apple.

  • TA44551 My 1-year ipod nano locked up and would not start overnight. The on/off button will not work and stopped holding charge. No water damage, no fall, nothing unusual. I restored it (twice) but it will still not hold charge and on/off does not work.

    My 1-year ipod nano locked up and would not start overnight. The on/off button will not work and stopped holding charge. No water damage, no fall, nothing unusual. I restored it (twice) but it will still not hold charge and on/off does not work. I tried to restore it again and charged it in three different locations with different cables. etc but nothing. Suggestions?

    - After charging for 1/2 hour or so, does iTunes see the iPod?  If yes, restore the iPod from backup.
    - If no, se if placing the iPod in recovery mode will make it visible so you can restore the iPod.  For recovery mode see:
    iPhone and iPod touch: Unable to update or restore

  • Why cant I add contacts on the iphone4? the mail contacts calendars button unders settings, the contacts button, the add a contacts button under message and the phone button will not work to add a contact.

    Why cant I add contacts on the iphone4? the mail contacts calendars button unders settings, the contacts button, the add a contacts button under message and the phone button will not work to add a contact.

    Have you attempted a restore?

  • VS2005 Crystal Report Print Report Button is not working on Windows 7 x64

    Hi There,
    My application is written in VS2005 C# on x86 machine. It runs smoothly on XP pro and Vista x86 machine.
    I deployed the same to windows 7 x64 machine with CRRedist2005_x64.msi and found that the Print Report button is not working.
    So, I re-compiled my application to x64 target platform, and reinstall the application to the same machine. But nothing changed. I have surf for answer over the web but nothing found.
    Please help urgently. Any helps is much appreciated. Thks in advance.
    Edited by: chanpyvivian on Mar 26, 2010 11:14 AM

    I follow your instruction as below:
    1) download the sample app vbnet_win_printtoprinter.zip to dev computer and compile it to .NET 2005.
    - Run from my dev computer
    - Click "Print Report" button
    - Error message display - please see below
        The error was due to the default printer name hard coded in the program was not found. I have edited to my printer name and it can be printed out with no error.
    2) Use a "saved data" report so that you do not have to worry about database logon.
    can't find the "saved data", please elaborate
    3) Then copy the exe to the 64 bit box and try to print using this sample app.
    -do you mean copy the exe to the 64 bit computer for testing ?
    ERROR Message
    CrystalDecisions.CrystalReports.Engine.InvalidArgumentException:
    Invalid printer specified. ---> System.Runtime.InteropServices.COMException (0x80000201):
    Invalid printer specified.
       at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)
       at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)
       at CrystalDecisions.CrystalReports.Engine.PrintOptions.Copy(PrintOptions src)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_FormatEngine()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       at PrintToPrinter.Form1.Button1_Click(Object sender, EventArgs e) in C:\Crystal\CRNET\vbnet_win_printtoprinter\vbnet_win_printtoprinter\Form1.vb:line 91
    OK  
    Edited by: chanpyvivian on Mar 30, 2010 6:18 PM

  • My G4 powerbook starts up but with a black screen. The reset button does not work. Does anyone know the keys to press on restart please ?

    My G4 powerbook running OSX 10.3.9 starts up with  a black screen. The reset button is not working. Does anyone know which keys to press on restart please.?

    Try holding the shift key while booting to get Safe mode if possible.
    See links for more info.
    http://support.apple.com/kb/ht1564
    http://support.apple.com/kb/ht1455

  • Froze on black screen and power button does not work

    my sons ipod touch is stuck on a black screen when plugged into the computer got a spinning wheel and will not connect now spinning wheel will not go away the power button does not work so can not reset it manually
    any suggestions would be appreciated

    - iOS: Not responding or does not turn on
    Neglect the reset and when it says place the iPod in recovery mode use one of thes programs
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Is there anyway to power off an I-phone 4s if the power button is not working?

    Is there anyway to power off the phone if the power button is not working?

    Assistive Touch. Tap Settings App > General > Accessibility > Assistive Touch > ON > at bottom of screen tap button > Device > press and hold Lock Screen icon > when slide to power off appears > slide it. To turn iPhone ON connect to Power Source with USB cable, charger or USB port of computer.
    All iPhone 4S have full Warranty Coverage. Make Genius Reservation and take iPhone to Apple for resolution.

  • I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

    I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

    I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

  • With version 5 of Firefox, if I open more than 1 session, most of the time I cannot see anything in the navigation bar and my back and forward buttons do not work.

    I open 1 session of Firefox 5.0.1 and everything seems to work fine. Then I open a second session of Firefox and most of the time the navigation bar does not show the page that I am on and the back and forward buttons do not work. When this happens, the first session always remains working. I am an internet marketer so I have at least 2 or 3 sessions going at any given time.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page...

    Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page..

    [BUG FIXED, see "EDIT 2" at the end of my post]
    I'm on Firefox 3.6.21, and I got this problem today after a Greasemonkey update (To version 0.9.10, apparently).
    Disabling Greasemonkey solved the problem, and re-enabling it reproduced the problem (middle-clicking links to open in new tab did not work, merely highlighted the link).
    I should also note that while Greasemonkey was enabled and the bug was affecting me, Ctrl+Click to open links in new tabs was also broken.
    I hope this helps!
    EDIT: It appears this is a known incompatibility/conflict bug between current versions of Greasemonkey and Tab Mix Plus. Read more here:
    https://github.com/greasemonkey/greasemonkey/issues/1406
    EDIT 2: GREASEMONKEY HAS NOW BEEN UPDATED with a workaround to fix the problem. Go to https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/ to install the update manually. It hasn't been reviewed by Mozilla yet, so it won't be an automatic update for another day or two. All credit to "cannonfodder" below for noticing this; please mark his post as helpful!

  • Help button is not working in Infoview

    Hi All ,
    I am working on BO XI R2 environment and help button is not working properly in my infoview.
    I can get help files from Admin console but the same is not true with infoview.I got two different server installations, one of them its working fine but not for the other.
    I checked for help files in IIS and they are there , even I verified web.config file as well for infoview and it also seems to be correct.
    Please advice what could be the reason.
    Thanks,
    Vivek.

    CLOSED

  • Centre button is not working properly in my iphone . . what can i do for that ?

    centre button is not working properly in my iphone . . what can i do for that ?

    Get it serviced.

  • My lock screen button is not working and i turned off my iphone with assistive touch. Now i cant turn my phone back on!

    I used assistive touch to turn off my iphone, because my lock screen button is not working, so now i cant turn it back on! What i did was, i went to assistive touch, then i held down the lock screen button to turn it off. Now i can't turn it back on.

    To turn it back on when you use assistive touch, all you have to do is plug your iphone into a charger and it will power back on

Maybe you are looking for

  • Problem in creating a java proxy for PHP web service

    This is a problem in generating a java proxy for a PHP webservice. I have a PHP service running on Wamp Server and also a PHP client which is able to call the service. The WSDL for the PHP web service is also generated . I am trying to create a java

  • PANIC: fatal region error detected

    i encoutered this error for stress testing. in the project, we used the transaction and cursor. when the application is runing for a long time, i will receive the err about "PANIC: fatal region error detected". i change the max numbers of transaction

  • PRE7 Organiser error [...winfile.cpp-507]

    Here's an oddity, whenever I started PRE7 it kept throwingup a dialog box that PRE had encountered a problem [..\..\SFX\Win\winfile.cpp-507]. This seemed to loop indefinitely until I realised that there were some disconnected items showing. So, with

  • JDeveloper Oracle ESB Designer calling SOAP with SSL

    Hi, I am new to Oracle ESB. I am creating a SOAP serving in Jdeveloepr ESB designer to invoke a WSDL. That url needs a user id/ pwd to be accisible. How can I enable this in Jdeveloper ESB designer Thanks!

  • Copy to IP failed - error message

    I have recently changed my laptop and now cannot upload my tracks from my pc back onto my ipod. I keep receiving the following error message; attempting to copy to the disk 'McCabe's IP failed' you do not have enough access privelliges. itunes could