Skip to main content
Solved

Error Adding Buttons

  • December 17, 2020
  • 1 reply
  • 81 views

SadokHanini
Freshman II

Hello

I dont know what wrong with this code : 

using System;

using PX.Data;

using System.Collections;



namespace Attributs

{

  public class AttributsForm : PXGraph<AttributsForm>

  {





    



    public PXSave<ZattributsPlan> Save;

    public PXCancel<ZattributsPlan> Cancel;

    public PXSelect<ZattributsPlan> MasterView;

    

    public PXFilter<DetailsTable> DetailsView;





    [Serializable]

    public class DetailsTable : IBqlTable

    {



    }

    

    public PXAction<ZattributsPlan> CalcPrice;

    public PXAction<ZattributsPlan> CalcTest;



    [PXButton(CommitChanges = true)]

    [PXUIField(DisplayName = "Param Liste 1")]

    protected void calcPrice()

    {



    }

      

    [PXButton(CommitChanges = true)]

    [PXUIField(DisplayName = "Param Liste 2")]

    protected void CalcTest()

    {



    }



  }

}

 

I have this Error: 

 

Best answer by Naveen Boga

Hi @SadokHanini ,

Action name is case- sensitive.

[PXButton(CommitChanges = true)]
    [PXUIField(DisplayName = "Param Liste 2")]
    protected void calcTest()

{
}

Small - calcTest()

Please verify.

View original
Did this topic help you find an answer to your question?

1 reply

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3410 replies
  • Answer
  • December 17, 2020

Hi @SadokHanini ,

Action name is case- sensitive.

[PXButton(CommitChanges = true)]
    [PXUIField(DisplayName = "Param Liste 2")]
    protected void calcTest()

{
}

Small - calcTest()

Please verify.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings