2

Resolved

Small bug in RibbonCustomAction.cs, Creating EditForm/NewForm etc, only ribbon changes.

description

Using build: spribbon_80d4bf45aad8
Bug: Cant add ribbon changes to the list forms. Can add then to all forms when using listforms.all. (e.g. listforms.editform does not work)

Sollution:

File: RibbonCustomAction.cs
Method:

private string GetRibbonLocationByListForms(ListForms whichForms)
    {
        switch (whichForms)
        {
            case ListForms.ListView:
            case ListForms.NewForm:
            case ListForms.EditForm:
            case ListForms.DisplayForm:
                return "CommandUI.Ribbon<ADDED-->.<--ADDED>" + whichForms.ToString();
            case ListForms.All:
                return "CommandUI.Ribbon";
            default:
                throw new Exception("Impossible list forms value.");
        }
    }
After adding the "." the function works properly,

Regards,

M.v.Steenis

comments

omlin wrote Oct 24, 2011 at 10:07 AM

Thank you so much for your feedback! What a miss :(
And, my apologies for the late response. For some reasons, Codeplex haven't sent me any notification on this issue.

The bug fix commited Oct 24: http://spribbon.codeplex.com/SourceControl/changeset/changes/1856bfe27fac
Compiled binary files can be downloaded from 1.4 Release page: http://spribbon.codeplex.com/releases/view/75638