Skip to main content
Answer

Missing Toolbar buttons missing after creating a tab grid by extending to an existing customization

  • March 14, 2023
  • 9 replies
  • 268 views

Forum|alt.badge.img

I have an existing custom customisation I have to work with.  

Below is the Dac for the grid I want to add and the graph extension to be used

  [Serializable]

    [PXCacheName("TestTable")]

    [PXPrimaryGraph(typeof(TSSTStudentEntryExt))]

    public class TestTable : IBqlTable

    {

        #region LineNbr

 

        [PXDBIdentity(IsKey = true)]

        [PXUIField(DisplayName = "Line Nbr")]

        public virtual int? LineNbr { get; set; }

        public abstract class lineNbr : PX.Data.BQL.BqlInt.Field<lineNbr> { }

        #endregion

 

        #region StudentType

        [PXDBString(2, IsFixed = true, IsKey = true)]

        [PXDefault(typeof(TSSTStudent.StudentType))]

        [PXUIField(DisplayName = "Student Type", Visible = false, Enabled = false)]

        public virtual string StudentType { get; set; }

        public abstract class StudentType : PX.Data.BQL.BqlString.Field<StudentType> { }

        #endregion

 

        #region StudentNbr

        [PXDBString(15, IsKey = true, IsUnicode = true, InputMask = "")]

        [PXDBDefault(typeof(TSSTStudent.StudentNbr), DefaultForUpdate = false)]

        [PXParent(typeof(SelectFrom<TSSTStudent>.Where<TSSTStudent.StudentNbr.IsEqual<TestTable.StudentNbr.FromCurrent>.

            And<TSSTStudent.StudentType.IsEqual<TestTable.StudentType.FromCurrent>>>))]

        public virtual string StudentNbr { get; set; }

        public abstract class StudentNbr : PX.Data.BQL.BqlString.Field<StudentNbr> { }

        #endregion

 

}


 

  public class TSSTStudentEntryExt : PXGraphExtension<TSSTStudentEntry>

    {

 

    public PXSelect<TestTable,

        Where<TestTable.StudentType, Equal<Current<TSSTStudent.StudentType>>,

            And<Where<TestTable.StudentNbr, Equal<Current<TSSTStudent.StudentNbr>>>>>> TestDetail;

    }

 

TSSTStudent DAC has StudentType and StudentNbr as keys in its DAC.

Problem :  I am able to get the grid to show with the column but the standard toolbar for add and remove does not show. 

   

Best answer by Naveen Boga

@robert38  Can you please provide like below and check?

 

 

9 replies

Forum|alt.badge.img+9
  • Semi-Pro III
  • March 14, 2023

Hi @robert38,

You need to add your Custom DAC to the graph extension.

 public class TSSTStudentEntryExt : PXGraphExtension<TSSTStudentEntry, CustomDAC>

Then you don’t need to define actions separately.

Hope, It will helps!

Regards,

Sweta


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • March 14, 2023

Hi @robert38  Can you please share the screenshot, which will be more helpful.


Forum|alt.badge.img
  • Author
  • Freshman II
  • March 14, 2023

@Naveen Boga  the tab grid only shows a grid without a toolbar (+ and remove)


Forum|alt.badge.img
  • Author
  • Freshman II
  • March 14, 2023

@sweta68 that doesnt work the CustomDac would conflict with the Dac it inherits from. It shows as error code 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • March 14, 2023

Hi @robert38  What is the Skin ID, you have mentioned for that grid in the design page?


Forum|alt.badge.img
  • Author
  • Freshman II
  • March 14, 2023

@Naveen Boga  I don’t have a skinId


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • March 14, 2023

@robert38  Can you please provide like below and check?

 

 


Forum|alt.badge.img
  • Author
  • Freshman II
  • March 14, 2023

@Naveen Boga worked now.. thanks


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • March 14, 2023

Awesome :) Thanks for sharing the update @robert38